Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_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_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009919/0.0009918, allocations: 195 kB / 16.78 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.31/1.31, allocations: 226.5 MB / 244.1 MB, free: 6.352 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000768/0.0007678, allocations: 103 kB / 296.1 MB, free: 6.645 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3101/0.3101, allocations: 44.82 MB / 393 MB, free: 35.65 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002557/0.0002557, allocations: 8 kB / 465.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3001/0.3003, allocations: 62.95 MB / 0.5165 GB, free: 37.04 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.113/0.4134, allocations: 91.16 MB / 0.6055 GB, free: 14.21 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002226/0.4137, allocations: 75.95 kB / 0.6056 GB, free: 14.14 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01618/0.4299, allocations: 6.143 MB / 0.6116 GB, free: 7.98 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.158e-06/0.4299, allocations: 0 / 0.6116 GB, free: 7.98 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.052e-05/0.43, allocations: 7.938 kB / 0.6116 GB, free: 7.973 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.0009362/0.4309, allocations: 0.5498 MB / 0.6121 GB, free: 7.371 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.431, allocations: 8.031 kB / 0.6121 GB, free: 7.363 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000179/0.4311, allocations: 36.66 kB / 0.6121 GB, free: 7.328 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003179/0.4315, allocations: 248.5 kB / 0.6124 GB, free: 7.043 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.07e-05/0.4315, allocations: 20.88 kB / 0.6124 GB, free: 7.023 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.65e-05/0.4316, allocations: 24.38 kB / 0.6124 GB, free: 7 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00055/0.4321, allocations: 273.3 kB / 0.6127 GB, free: 6.727 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.819e-05/0.4322, allocations: 4.188 kB / 0.6127 GB, free: 6.723 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.993e-05/0.4322, allocations: 7.938 kB / 0.6127 GB, free: 6.715 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.435e-06/0.4322, allocations: 8 kB / 0.6127 GB, free: 6.707 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004961/0.4327, allocations: 226.1 kB / 0.6129 GB, free: 6.488 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001363/0.4341, allocations: 0.7522 MB / 0.6137 GB, free: 5.684 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000513/0.4346, allocations: 250.4 kB / 0.6139 GB, free: 5.43 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000242/0.4349, allocations: 140.8 kB / 0.614 GB, free: 5.289 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.89e-05/0.4349, allocations: 4 kB / 0.614 GB, free: 5.285 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.38e-05/0.4349, allocations: 34.56 kB / 0.6141 GB, free: 5.242 MB / 426.7 MB Notification: Performance of pre-optimization done (n=26): time 1.522e-06/0.435, allocations: 0 / 0.6141 GB, free: 5.242 MB / 426.7 MB Notification: Performance of matching and sorting (n=34): time 0.00295/0.4379, allocations: 1.447 MB / 0.6155 GB, free: 3.691 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.242e-05/0.438, allocations: 55.41 kB / 0.6155 GB, free: 3.625 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002099/0.4382, allocations: 207.9 kB / 0.6157 GB, free: 3.406 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.038e-05/0.4382, allocations: 37.7 kB / 0.6158 GB, free: 3.363 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.95e-05/0.4383, allocations: 148.5 kB / 0.6159 GB, free: 3.215 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.735e-05/0.4384, allocations: 106.5 kB / 0.616 GB, free: 3.109 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.322e-05/0.4384, allocations: 8 kB / 0.616 GB, free: 3.102 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.4386, allocations: 334.8 kB / 0.6163 GB, free: 2.766 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002521/0.4388, allocations: 112 kB / 0.6164 GB, free: 2.656 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002691/0.4391, allocations: 171.2 kB / 0.6166 GB, free: 2.477 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004101/0.4395, allocations: 232.1 kB / 0.6168 GB, free: 2.238 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.4395, allocations: 3.938 kB / 0.6168 GB, free: 2.234 MB / 426.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.000858/0.4404, allocations: 422.5 kB / 0.6172 GB, free: 1.812 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.4404, allocations: 4 kB / 0.6172 GB, free: 1.809 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.4404, allocations: 0 / 0.6172 GB, free: 1.809 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004418/0.4409, allocations: 176.7 kB / 0.6174 GB, free: 1.633 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002211/0.4411, allocations: 55.91 kB / 0.6175 GB, free: 1.578 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007874/0.4419, allocations: 0.7163 MB / 0.6182 GB, free: 0.8359 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002694/0.4422, allocations: 59.98 kB / 0.6182 GB, free: 0.7773 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.302e-05/0.4422, allocations: 12 kB / 0.6182 GB, free: 0.7656 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.0001901/0.4424, allocations: 145.8 kB / 0.6184 GB, free: 0.6133 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.901e-05/0.4425, allocations: 23.72 kB / 0.6184 GB, free: 0.5898 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.777e-05/0.4426, allocations: 34.66 kB / 0.6184 GB, free: 0.5547 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.4426, allocations: 8 kB / 0.6184 GB, free: 0.5469 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.4426, allocations: 0 / 0.6184 GB, free: 0.5469 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/0.4426, allocations: 3.984 kB / 0.6184 GB, free: 0.543 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001588/0.4442, allocations: 0.9224 MB / 0.6193 GB, free: 15.55 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.4442, allocations: 0 / 0.6193 GB, free: 15.55 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002179/0.4445, allocations: 52.03 kB / 0.6194 GB, free: 15.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003481/0.4448, allocations: 164.6 kB / 0.6195 GB, free: 15.34 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.379e-05/0.4449, allocations: 11.98 kB / 0.6195 GB, free: 15.33 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000653/0.4455, allocations: 0.6811 MB / 0.6202 GB, free: 14.62 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.4456, allocations: 0 / 0.6202 GB, free: 14.62 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001053/0.4466, allocations: 0.611 MB / 0.6208 GB, free: 13.99 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001381/0.4468, allocations: 124.8 kB / 0.6209 GB, free: 13.85 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.023e-05/0.4468, allocations: 12 kB / 0.6209 GB, free: 13.84 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002605/0.4471, allocations: 52.02 kB / 0.621 GB, free: 13.79 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001197/0.4472, allocations: 55.83 kB / 0.621 GB, free: 13.73 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.501e-05/0.4473, allocations: 11.98 kB / 0.6211 GB, free: 13.72 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0001443/0.4474, allocations: 145.5 kB / 0.6212 GB, free: 13.58 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4474, allocations: 0 / 0.6212 GB, free: 13.58 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0003487/0.4478, allocations: 83.98 kB / 0.6213 GB, free: 13.5 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.0008063/0.4486, allocations: 381.8 kB / 0.6216 GB, free: 13.24 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0006905/0.4493, allocations: 299.8 kB / 0.6219 GB, free: 12.95 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.4493, allocations: 4.125 kB / 0.6219 GB, free: 12.94 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003232/0.4496, allocations: 159.8 kB / 0.6221 GB, free: 12.79 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004004/0.45, allocations: 38.23 kB / 0.6221 GB, free: 12.75 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001927/0.452, allocations: 0.9825 MB / 0.6231 GB, free: 11.73 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003281/0.4523, allocations: 0.7603 MB / 0.6238 GB, free: 10.95 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.711e-05/0.4524, allocations: 23.44 kB / 0.6238 GB, free: 10.92 MB / 442.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4524, allocations: 0 / 0.6238 GB, free: 10.92 MB / 442.7 MB Notification: Performance of Templates: time 0.006701/0.4591, allocations: 4.408 MB / 0.6281 GB, free: 6.52 MB / 442.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches