Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") translateModel(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0014/0.0014, allocations: 196.9 kB / 18.11 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.655/1.655, allocations: 226.5 MB / 245.4 MB, free: 6.324 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009582/0.0009578, allocations: 103.3 kB / 297.5 MB, free: 6.641 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3879/0.3879, allocations: 44.82 MB / 394.3 MB, free: 35.64 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002796/0.0002796, allocations: 11.98 kB / 467.9 MB, free: 12.02 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4116/0.4119, allocations: 62.96 MB / 0.5184 GB, free: 37.54 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1307/0.5426, allocations: 91.16 MB / 0.6074 GB, free: 14.14 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002554/0.5429, allocations: 71.95 kB / 0.6075 GB, free: 14.07 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0166/0.5595, allocations: 6.132 MB / 0.6135 GB, free: 7.918 MB / 426.7 MB Notification: Performance of FrontEnd: time 6.823e-06/0.5595, allocations: 0 / 0.6135 GB, free: 7.918 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.979e-05/0.5596, allocations: 7.938 kB / 0.6135 GB, free: 7.91 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0009303/0.5605, allocations: 0.5537 MB / 0.614 GB, free: 7.305 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.5606, allocations: 8.031 kB / 0.614 GB, free: 7.297 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001779/0.5607, allocations: 44.62 kB / 0.6141 GB, free: 7.254 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003226/0.5611, allocations: 248.5 kB / 0.6143 GB, free: 6.969 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.48e-05/0.5611, allocations: 24.88 kB / 0.6143 GB, free: 6.945 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.389e-05/0.5612, allocations: 20.38 kB / 0.6144 GB, free: 6.926 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000538/0.5617, allocations: 269.3 kB / 0.6146 GB, free: 6.656 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.922e-05/0.5618, allocations: 192 / 0.6146 GB, free: 6.656 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.286e-05/0.5618, allocations: 11.94 kB / 0.6146 GB, free: 6.645 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.5618, allocations: 8 kB / 0.6146 GB, free: 6.637 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004914/0.5623, allocations: 230.1 kB / 0.6149 GB, free: 6.414 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001381/0.5637, allocations: 0.7483 MB / 0.6156 GB, free: 5.613 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005221/0.5642, allocations: 256.2 kB / 0.6158 GB, free: 5.355 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002471/0.5645, allocations: 140.8 kB / 0.616 GB, free: 5.215 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.395e-05/0.5645, allocations: 4 kB / 0.616 GB, free: 5.211 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.222e-05/0.5646, allocations: 30.56 kB / 0.616 GB, free: 5.172 MB / 426.7 MB Notification: Performance of pre-optimization done (n=26): time 1.543e-06/0.5646, allocations: 0 / 0.616 GB, free: 5.172 MB / 426.7 MB Notification: Performance of matching and sorting (n=34): time 0.002965/0.5675, allocations: 1.454 MB / 0.6174 GB, free: 3.613 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.117e-05/0.5676, allocations: 59.39 kB / 0.6175 GB, free: 3.543 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002194/0.5678, allocations: 199.8 kB / 0.6177 GB, free: 3.332 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.52e-05/0.5679, allocations: 41.69 kB / 0.6177 GB, free: 3.285 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.084e-05/0.568, allocations: 136.6 kB / 0.6178 GB, free: 3.148 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.92e-05/0.5681, allocations: 110.4 kB / 0.6179 GB, free: 3.039 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.991e-05/0.5681, allocations: 11.98 kB / 0.618 GB, free: 3.027 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.5682, allocations: 330.8 kB / 0.6183 GB, free: 2.695 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002554/0.5685, allocations: 119.9 kB / 0.6184 GB, free: 2.578 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002875/0.5688, allocations: 163.3 kB / 0.6185 GB, free: 2.406 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004169/0.5692, allocations: 240 kB / 0.6188 GB, free: 2.16 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.5692, allocations: 3.938 kB / 0.6188 GB, free: 2.156 MB / 426.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008111/0.57, allocations: 422.5 kB / 0.6192 GB, free: 1.734 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.5701, allocations: 6.969 kB / 0.6192 GB, free: 1.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.5701, allocations: 0 / 0.6192 GB, free: 1.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004237/0.5705, allocations: 176.7 kB / 0.6194 GB, free: 1.555 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002168/0.5707, allocations: 55.91 kB / 0.6194 GB, free: 1.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007419/0.5715, allocations: 0.7203 MB / 0.6201 GB, free: 0.7539 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002538/0.5718, allocations: 55.95 kB / 0.6202 GB, free: 0.6992 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.771e-05/0.5718, allocations: 11.98 kB / 0.6202 GB, free: 0.6875 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: 8 (bearingFriction1.free,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * 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: 0 * Non-linear torn systems: 1 {1 13} Notification: Performance of prepare postOptimizeDAE: time 0.0001683/0.572, allocations: 146.4 kB / 0.6203 GB, free: 0.5352 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.277e-05/0.572, allocations: 23.72 kB / 0.6203 GB, free: 0.5117 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.591e-05/0.5721, allocations: 38.64 kB / 0.6204 GB, free: 484 kB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/0.5721, allocations: 8 kB / 0.6204 GB, free: 476 kB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/0.5722, allocations: 0 / 0.6204 GB, free: 476 kB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.154e-06/0.5722, allocations: 0 / 0.6204 GB, free: 476 kB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001477/0.5736, allocations: 0.9246 MB / 0.6213 GB, free: 15.47 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.5737, allocations: 4 kB / 0.6213 GB, free: 15.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002155/0.5739, allocations: 47.97 kB / 0.6213 GB, free: 15.42 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003231/0.5742, allocations: 152.6 kB / 0.6215 GB, free: 15.27 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.058e-05/0.5743, allocations: 15.98 kB / 0.6215 GB, free: 15.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006108/0.5749, allocations: 0.6811 MB / 0.6222 GB, free: 14.54 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.5749, allocations: 4.031 kB / 0.6222 GB, free: 14.54 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001041/0.5759, allocations: 0.6032 MB / 0.6228 GB, free: 13.91 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001401/0.5761, allocations: 128.8 kB / 0.6229 GB, free: 13.77 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.075e-05/0.5762, allocations: 12 kB / 0.6229 GB, free: 13.76 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002511/0.5764, allocations: 48.03 kB / 0.6229 GB, free: 13.71 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001226/0.5765, allocations: 59.81 kB / 0.623 GB, free: 13.65 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.093e-05/0.5766, allocations: 8 kB / 0.623 GB, free: 13.64 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0001567/0.5767, allocations: 153.5 kB / 0.6231 GB, free: 13.5 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5767, allocations: 0 / 0.6231 GB, free: 13.5 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0003608/0.5771, allocations: 76 kB / 0.6232 GB, free: 13.42 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * 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: 0 * Non-linear torn systems: 1 {1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008465/0.578, allocations: 384.5 kB / 0.6236 GB, free: 13.16 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0006995/0.5787, allocations: 299.8 kB / 0.6239 GB, free: 12.87 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.5787, allocations: 4.062 kB / 0.6239 GB, free: 12.86 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003204/0.579, allocations: 163.8 kB / 0.624 GB, free: 12.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004125/0.5794, allocations: 35.83 kB / 0.6241 GB, free: 12.67 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002026/0.5815, allocations: 0.9592 MB / 0.625 GB, free: 11.68 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003884/0.5819, allocations: 0.7525 MB / 0.6257 GB, free: 10.9 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0001232/0.582, allocations: 30.28 kB / 0.6258 GB, free: 10.88 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.524e-05/0.5821, allocations: 23.42 kB / 0.6258 GB, free: 10.85 MB / 442.7 MB Notification: Performance of SimCode: time 6.91e-07/0.5821, allocations: 0 / 0.6258 GB, free: 10.85 MB / 442.7 MB Notification: Performance of Templates: time 0.009282/0.5914, allocations: 4.577 MB / 0.6303 GB, free: 6.285 MB / 442.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches