Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001688/0.001688, allocations: 197.2 kB / 18.11 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 226.5 MB / 245.4 MB, free: 6.531 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008919/0.0008919, allocations: 95.83 kB / 297.5 MB, free: 6.699 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3961/0.3961, allocations: 44.82 MB / 394.3 MB, free: 35.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004014/0.0004015, allocations: 12 kB / 467.9 MB, free: 12.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3421/0.3425, allocations: 62.95 MB / 0.5184 GB, free: 37.56 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1146/0.4572, allocations: 88.4 MB / 0.6047 GB, free: 0.9492 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002375/0.4575, allocations: 79.94 kB / 0.6048 GB, free: 0.875 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00713/0.4647, allocations: 2.674 MB / 0.6074 GB, free: 14.19 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.965e-06/0.4647, allocations: 0 / 0.6074 GB, free: 14.19 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.555e-05/0.4647, allocations: 8 kB / 0.6074 GB, free: 14.18 MB / 426.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.0005491/0.4653, allocations: 415 kB / 0.6078 GB, free: 13.73 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.4653, allocations: 12.03 kB / 0.6078 GB, free: 13.71 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001707/0.4655, allocations: 28.73 kB / 0.6079 GB, free: 13.69 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002227/0.4657, allocations: 200.1 kB / 0.6081 GB, free: 13.45 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.094e-05/0.4658, allocations: 16.38 kB / 0.6081 GB, free: 13.44 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.459e-05/0.4658, allocations: 12.38 kB / 0.6081 GB, free: 13.43 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00029/0.4661, allocations: 130.6 kB / 0.6082 GB, free: 13.29 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.992e-05/0.4661, allocations: 8.172 kB / 0.6082 GB, free: 13.29 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.995e-05/0.4662, allocations: 7.938 kB / 0.6082 GB, free: 13.28 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.4662, allocations: 4 kB / 0.6082 GB, free: 13.27 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001944/0.4664, allocations: 87.94 kB / 0.6083 GB, free: 13.19 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000703/0.4671, allocations: 468.1 kB / 0.6088 GB, free: 12.68 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002232/0.4673, allocations: 122.5 kB / 0.6089 GB, free: 12.55 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000118/0.4675, allocations: 64.77 kB / 0.6089 GB, free: 12.48 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.248e-05/0.4675, allocations: 4 kB / 0.6089 GB, free: 12.48 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.183e-05/0.4675, allocations: 34.5 kB / 0.609 GB, free: 12.44 MB / 426.7 MB Notification: Performance of pre-optimization done (n=13): time 1.473e-06/0.4675, allocations: 0 / 0.609 GB, free: 12.44 MB / 426.7 MB Notification: Performance of matching and sorting (n=19): time 0.001531/0.4691, allocations: 0.8228 MB / 0.6098 GB, free: 11.52 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.873e-05/0.4691, allocations: 55.41 kB / 0.6098 GB, free: 11.46 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000128/0.4693, allocations: 146.1 kB / 0.61 GB, free: 11.3 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.671e-05/0.4693, allocations: 25.7 kB / 0.61 GB, free: 11.27 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.562e-05/0.4693, allocations: 112.3 kB / 0.6101 GB, free: 11.16 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.861e-05/0.4694, allocations: 59.11 kB / 0.6102 GB, free: 11.1 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.945e-06/0.4694, allocations: 4 kB / 0.6102 GB, free: 11.09 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.4695, allocations: 322.8 kB / 0.6105 GB, free: 10.77 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001019/0.4696, allocations: 51.91 kB / 0.6105 GB, free: 10.72 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001154/0.4698, allocations: 82.22 kB / 0.6106 GB, free: 10.63 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000221/0.47, allocations: 131.4 kB / 0.6107 GB, free: 10.49 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.47, allocations: 0 / 0.6107 GB, free: 10.49 MB / 426.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000378/0.4704, allocations: 219.6 kB / 0.6109 GB, free: 10.27 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.4704, allocations: 4 kB / 0.6109 GB, free: 10.26 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.4704, allocations: 0 / 0.6109 GB, free: 10.26 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001678/0.4706, allocations: 40.88 kB / 0.611 GB, free: 10.22 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001779/0.4708, allocations: 51.84 kB / 0.611 GB, free: 10.17 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001388/0.4722, allocations: 1.551 MB / 0.6125 GB, free: 8.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.512e-05/0.4723, allocations: 12.09 kB / 0.6126 GB, free: 8.469 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.365e-05/0.4723, allocations: 8 kB / 0.6126 GB, free: 8.461 MB / 426.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.0001208/0.4724, allocations: 125.8 kB / 0.6127 GB, free: 8.328 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.908e-05/0.4725, allocations: 11.91 kB / 0.6127 GB, free: 8.316 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.768e-05/0.4725, allocations: 21.17 kB / 0.6127 GB, free: 8.297 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.4726, allocations: 7.938 kB / 0.6127 GB, free: 8.289 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.4726, allocations: 0 / 0.6127 GB, free: 8.289 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.4726, allocations: 0 / 0.6127 GB, free: 8.289 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007567/0.4733, allocations: 0.5621 MB / 0.6133 GB, free: 7.664 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.4734, allocations: 0 / 0.6133 GB, free: 7.664 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001635/0.4735, allocations: 40.02 kB / 0.6133 GB, free: 7.625 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000101/0.4736, allocations: 32.83 kB / 0.6133 GB, free: 7.59 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.479e-05/0.4737, allocations: 4.188 kB / 0.6133 GB, free: 7.586 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009841/0.4746, allocations: 1.374 MB / 0.6147 GB, free: 6.078 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.4747, allocations: 0 / 0.6147 GB, free: 6.078 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004901/0.4752, allocations: 358.3 kB / 0.615 GB, free: 5.707 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.324e-05/0.4752, allocations: 96.83 kB / 0.6151 GB, free: 5.594 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.896e-05/0.4753, allocations: 4 kB / 0.6151 GB, free: 5.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.44e-05/0.4754, allocations: 7.984 kB / 0.6151 GB, free: 5.582 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.422e-05/0.4754, allocations: 15.98 kB / 0.6151 GB, free: 5.566 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.087e-06/0.4754, allocations: 4 kB / 0.6151 GB, free: 5.562 MB / 426.7 MB Notification: Performance of sorting global known variables: time 7.682e-05/0.4755, allocations: 110.3 kB / 0.6153 GB, free: 5.457 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4755, allocations: 0 / 0.6153 GB, free: 5.457 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003325/0.4759, allocations: 48.06 kB / 0.6153 GB, free: 5.41 MB / 426.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.0001518/0.476, allocations: 99.19 kB / 0.6154 GB, free: 5.301 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005179/0.4765, allocations: 262.4 kB / 0.6156 GB, free: 5.031 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.4766, allocations: 64 / 0.6156 GB, free: 5.031 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002823/0.4768, allocations: 205.4 kB / 0.6158 GB, free: 4.82 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003563/0.4772, allocations: 19.92 kB / 0.6159 GB, free: 4.801 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008295/0.4781, allocations: 0.5099 MB / 0.6164 GB, free: 4.258 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000285/0.4784, allocations: 0.7246 MB / 0.6171 GB, free: 3.5 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 5.681e-05/0.4784, allocations: 5.438 kB / 0.6171 GB, free: 3.496 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.135e-05/0.4785, allocations: 19.42 kB / 0.6171 GB, free: 3.477 MB / 426.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4785, allocations: 0 / 0.6171 GB, free: 3.477 MB / 426.7 MB Notification: Performance of Templates: time 0.004477/0.4829, allocations: 1.465 MB / 0.6185 GB, free: 2.02 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches