Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009069/0.000907, allocations: 175.8 kB / 16.76 MB, free: 5.047 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.479/1.479, allocations: 205.4 MB / 222.9 MB, free: 9.035 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007421/0.0007418, allocations: 85.05 kB / 271.3 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3484/0.3484, allocations: 43.57 MB / 363.1 MB, free: 52.21 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003645/0.0003647, allocations: 8 kB / 432.6 MB, free: 5.219 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1228, allocations: 58.85 MB / 491.5 MB, free: 10.28 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.343/0.4658, allocations: 86.42 MB / 0.5643 GB, free: 15.58 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00023/0.4661, allocations: 67.97 kB / 0.5644 GB, free: 15.51 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006427/0.4725, allocations: 2.504 MB / 0.5669 GB, free: 13.03 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4726, allocations: 0 / 0.5669 GB, free: 13.03 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.045e-05/0.4726, allocations: 0 / 0.5669 GB, free: 13.03 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0004539/0.473, allocations: 421.6 kB / 0.5673 GB, free: 12.57 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.4731, allocations: 8.031 kB / 0.5673 GB, free: 12.57 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.479e-05/0.4731, allocations: 16.75 kB / 0.5673 GB, free: 12.55 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000195/0.4733, allocations: 208.8 kB / 0.5675 GB, free: 12.31 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.525e-05/0.4734, allocations: 8.375 kB / 0.5675 GB, free: 12.3 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.742e-05/0.4734, allocations: 12.38 kB / 0.5675 GB, free: 12.29 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002514/0.4737, allocations: 130.2 kB / 0.5676 GB, free: 12.16 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.4737, allocations: 4.859 kB / 0.5676 GB, free: 12.15 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.714e-05/0.4737, allocations: 7.938 kB / 0.5676 GB, free: 12.14 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-06/0.4737, allocations: 4 kB / 0.5676 GB, free: 12.14 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001989/0.4739, allocations: 94.06 kB / 0.5677 GB, free: 12.05 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007028/0.4746, allocations: 464.1 kB / 0.5682 GB, free: 11.55 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002181/0.4749, allocations: 118.5 kB / 0.5683 GB, free: 11.42 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001252/0.475, allocations: 66.2 kB / 0.5683 GB, free: 11.36 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.056e-05/0.475, allocations: 6.953 kB / 0.5684 GB, free: 11.35 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.943e-05/0.4751, allocations: 42.44 kB / 0.5684 GB, free: 11.3 MB / 394.7 MB Notification: Performance of pre-optimization done (n=13): time 2.054e-06/0.4751, allocations: 0 / 0.5684 GB, free: 11.3 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.001526/0.4766, allocations: 0.8074 MB / 0.5692 GB, free: 10.4 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.648e-05/0.4767, allocations: 59.41 kB / 0.5692 GB, free: 10.33 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001376/0.4768, allocations: 141 kB / 0.5694 GB, free: 10.18 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.677e-05/0.4768, allocations: 25.7 kB / 0.5694 GB, free: 10.15 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.066e-05/0.4769, allocations: 116.3 kB / 0.5695 GB, free: 10.04 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.902e-05/0.477, allocations: 59.11 kB / 0.5696 GB, free: 9.977 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.356e-06/0.477, allocations: 4 kB / 0.5696 GB, free: 9.973 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.4771, allocations: 322.8 kB / 0.5699 GB, free: 9.648 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001038/0.4772, allocations: 51.97 kB / 0.5699 GB, free: 9.598 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000115/0.4774, allocations: 79.28 kB / 0.57 GB, free: 9.512 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002184/0.4776, allocations: 136.2 kB / 0.5701 GB, free: 9.367 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.4776, allocations: 4 kB / 0.5701 GB, free: 9.363 MB / 394.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003722/0.478, allocations: 216.1 kB / 0.5703 GB, free: 9.148 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.478, allocations: 4 kB / 0.5703 GB, free: 9.145 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.478, allocations: 4 kB / 0.5703 GB, free: 9.141 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001547/0.4782, allocations: 42.78 kB / 0.5704 GB, free: 9.098 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001654/0.4784, allocations: 43.94 kB / 0.5704 GB, free: 9.055 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00155/0.4799, allocations: 1.563 MB / 0.572 GB, free: 7.363 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.195e-05/0.48, allocations: 4 kB / 0.572 GB, free: 7.359 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.398e-05/0.48, allocations: 8 kB / 0.572 GB, free: 7.352 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001217/0.4802, allocations: 129.7 kB / 0.5721 GB, free: 7.215 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.335e-05/0.4802, allocations: 7.906 kB / 0.5721 GB, free: 7.207 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.417e-05/0.4803, allocations: 25.17 kB / 0.5721 GB, free: 7.184 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.4803, allocations: 64 / 0.5721 GB, free: 7.184 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.4803, allocations: 8 kB / 0.5721 GB, free: 7.176 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.4803, allocations: 0 / 0.5721 GB, free: 7.176 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007917/0.4811, allocations: 0.563 MB / 0.5727 GB, free: 6.551 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.4811, allocations: 4 kB / 0.5727 GB, free: 6.547 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001618/0.4813, allocations: 31.98 kB / 0.5727 GB, free: 6.516 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.686e-05/0.4814, allocations: 28.83 kB / 0.5727 GB, free: 6.484 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.766e-05/0.4814, allocations: 8 kB / 0.5728 GB, free: 6.477 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001098/0.4825, allocations: 1.375 MB / 0.5741 GB, free: 4.969 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.4825, allocations: 0 / 0.5741 GB, free: 4.969 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004884/0.483, allocations: 354.2 kB / 0.5744 GB, free: 4.602 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.852e-05/0.4831, allocations: 92.89 kB / 0.5745 GB, free: 4.492 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.05e-05/0.4831, allocations: 11.94 kB / 0.5745 GB, free: 4.48 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.481e-05/0.4832, allocations: 11.98 kB / 0.5745 GB, free: 4.469 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.761e-05/0.4833, allocations: 11.92 kB / 0.5746 GB, free: 4.457 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.355e-06/0.4833, allocations: 4 kB / 0.5746 GB, free: 4.453 MB / 394.7 MB Notification: Performance of sorting global known variables: time 7.899e-05/0.4834, allocations: 113.6 kB / 0.5747 GB, free: 4.344 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4834, allocations: 0 / 0.5747 GB, free: 4.344 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003513/0.4837, allocations: 47.98 kB / 0.5747 GB, free: 4.297 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001453/0.4839, allocations: 99.25 kB / 0.5748 GB, free: 4.188 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004848/0.4844, allocations: 264.8 kB / 0.5751 GB, free: 3.922 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.4844, allocations: 0 / 0.5751 GB, free: 3.922 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00026/0.4847, allocations: 195.9 kB / 0.5752 GB, free: 3.719 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003518/0.485, allocations: 20.64 kB / 0.5753 GB, free: 3.699 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008713/0.4859, allocations: 0.5098 MB / 0.5758 GB, free: 3.156 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003434/0.4863, allocations: 0.7207 MB / 0.5765 GB, free: 2.406 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 5.797e-05/0.4863, allocations: 13.36 kB / 0.5765 GB, free: 2.395 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.017e-05/0.4864, allocations: 15.44 kB / 0.5765 GB, free: 2.379 MB / 394.7 MB Notification: Performance of SimCode: time 4.81e-07/0.4864, allocations: 4 kB / 0.5765 GB, free: 2.375 MB / 394.7 MB Notification: Performance of Templates: time 0.004134/0.4905, allocations: 1.474 MB / 0.5779 GB, free: 0.918 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches