Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.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.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction") translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001268/0.001268, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 226.7 MB / 245.5 MB, free: 6.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001143/0.001143, allocations: 104.8 kB / 296.7 MB, free: 6.48 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3626/0.3626, allocations: 44.83 MB / 392.7 MB, free: 34.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 59.91 kB / 465.5 MB, free: 12.12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4279/0.4291, allocations: 62.02 MB / 0.5151 GB, free: 37.88 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005448/0.4346, allocations: 4.108 MB / 0.5192 GB, free: 34.96 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00255/0.4372, allocations: 1.399 MB / 0.5205 GB, free: 33.98 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003743/0.4376, allocations: 12.31 kB / 0.5205 GB, free: 33.97 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004156/0.438, allocations: 100.1 kB / 0.5206 GB, free: 33.92 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005491/0.4387, allocations: 245.5 kB / 0.5209 GB, free: 33.77 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006474/0.4393, allocations: 269.6 kB / 0.5211 GB, free: 33.61 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007981/0.4401, allocations: 1.028 MB / 0.5221 GB, free: 33.15 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002665/0.4404, allocations: 166.2 kB / 0.5223 GB, free: 33.05 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000553/0.441, allocations: 434.9 kB / 0.5227 GB, free: 32.89 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004748/0.4414, allocations: 490.6 kB / 0.5232 GB, free: 32.69 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000109/0.4416, allocations: 45.66 kB / 0.5232 GB, free: 32.69 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002686/0.4418, allocations: 107.8 kB / 0.5233 GB, free: 32.67 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002096/0.4421, allocations: 196.5 kB / 0.5235 GB, free: 32.57 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000311/0.4424, allocations: 388.1 kB / 0.5239 GB, free: 32.34 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007564/0.4431, allocations: 0.9462 MB / 0.5248 GB, free: 31.96 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.4432, allocations: 0 / 0.5248 GB, free: 31.96 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.4432, allocations: 2.875 kB / 0.5248 GB, free: 31.96 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.858e-06/0.4432, allocations: 0 / 0.5248 GB, free: 31.96 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002075/0.4453, allocations: 1.143 MB / 0.5259 GB, free: 31.21 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.4453, allocations: 7.875 kB / 0.5259 GB, free: 31.21 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004473/0.4458, allocations: 120.2 kB / 0.526 GB, free: 31.17 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005639/0.4463, allocations: 454.3 kB / 0.5265 GB, free: 30.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.616e-05/0.4464, allocations: 52.38 kB / 0.5265 GB, free: 30.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001164/0.4465, allocations: 73.28 kB / 0.5266 GB, free: 30.77 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001311/0.4478, allocations: 0.8178 MB / 0.5274 GB, free: 30.4 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.101e-05/0.4479, allocations: 14.62 kB / 0.5274 GB, free: 30.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.748e-05/0.448, allocations: 25.88 kB / 0.5274 GB, free: 30.37 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.65e-05/0.448, allocations: 14.5 kB / 0.5274 GB, free: 30.37 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001465/0.4495, allocations: 0.7179 MB / 0.5281 GB, free: 30.15 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003688/0.4532, allocations: 2.574 MB / 0.5307 GB, free: 28.46 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001274/0.4544, allocations: 0.6579 MB / 0.5313 GB, free: 28.16 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006333/0.4551, allocations: 373 kB / 0.5317 GB, free: 27.99 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.836e-05/0.4552, allocations: 12.73 kB / 0.5317 GB, free: 27.99 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.448e-05/0.4552, allocations: 37.5 kB / 0.5317 GB, free: 27.95 MB / 378.7 MB Notification: Performance of pre-optimization done (n=79): time 2.945e-06/0.4552, allocations: 0 / 0.5317 GB, free: 27.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=83): time 0.007109/0.4623, allocations: 3.493 MB / 0.5351 GB, free: 25.77 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.217e-05/0.4624, allocations: 141.4 kB / 0.5352 GB, free: 25.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005322/0.4629, allocations: 465.1 kB / 0.5357 GB, free: 25.39 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.595e-05/0.463, allocations: 53.58 kB / 0.5357 GB, free: 25.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000162/0.4632, allocations: 280.3 kB / 0.536 GB, free: 25.11 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002083/0.4634, allocations: 287.4 kB / 0.5363 GB, free: 24.89 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002676/0.4637, allocations: 163.8 kB / 0.5364 GB, free: 24.81 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.4638, allocations: 374.8 kB / 0.5368 GB, free: 24.47 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006946/0.4645, allocations: 354.2 kB / 0.5371 GB, free: 24.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007893/0.4653, allocations: 0.5107 MB / 0.5376 GB, free: 24.03 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001154/0.4665, allocations: 0.6924 MB / 0.5383 GB, free: 23.62 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.4665, allocations: 2.844 kB / 0.5383 GB, free: 23.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002684/0.4692, allocations: 1.178 MB / 0.5395 GB, free: 23.12 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.106e-05/0.4692, allocations: 7.625 kB / 0.5395 GB, free: 23.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.665e-05/0.4692, allocations: 12.97 kB / 0.5395 GB, free: 23.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001364/0.4706, allocations: 0.5104 MB / 0.54 GB, free: 22.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005816/0.4712, allocations: 144.9 kB / 0.5401 GB, free: 22.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003272/0.4745, allocations: 3.647 MB / 0.5437 GB, free: 19.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001036/0.4755, allocations: 149.7 kB / 0.5438 GB, free: 19.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.122e-05/0.4756, allocations: 36.11 kB / 0.5439 GB, free: 19.57 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,bearingFriction.free,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,8), (1,10), (1,6), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0004189/0.4761, allocations: 229 kB / 0.5441 GB, free: 19.38 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001975/0.4763, allocations: 64.5 kB / 0.5441 GB, free: 19.35 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001944/0.4765, allocations: 90.36 kB / 0.5442 GB, free: 19.28 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.037e-05/0.4765, allocations: 8.438 kB / 0.5442 GB, free: 19.28 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/0.4765, allocations: 2.125 kB / 0.5442 GB, free: 19.28 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.235e-05/0.4765, allocations: 8.562 kB / 0.5442 GB, free: 19.28 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003962/0.4805, allocations: 2.131 MB / 0.5463 GB, free: 18.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.565e-06/0.4805, allocations: 1.344 kB / 0.5463 GB, free: 18.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005737/0.4811, allocations: 117.2 kB / 0.5464 GB, free: 18.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00106/0.4822, allocations: 480.9 kB / 0.5469 GB, free: 17.92 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.094e-05/0.4822, allocations: 41.72 kB / 0.5469 GB, free: 17.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002812/0.4851, allocations: 3.512 MB / 0.5504 GB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.656e-06/0.4851, allocations: 5.844 kB / 0.5504 GB, free: 14.72 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02067/0.5058, allocations: 13.37 MB / 0.5634 GB, free: 4.551 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004379/0.5062, allocations: 228.8 kB / 0.5636 GB, free: 4.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001939/0.5065, allocations: 27.56 kB / 0.5637 GB, free: 4.324 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009307/0.5074, allocations: 121.6 kB / 0.5638 GB, free: 4.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004784/0.5079, allocations: 182.8 kB / 0.564 GB, free: 4.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.772e-05/0.508, allocations: 37.64 kB / 0.564 GB, free: 4.141 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004598/0.5085, allocations: 318.1 kB / 0.5643 GB, free: 3.957 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5085, allocations: 4 kB / 0.5643 GB, free: 3.953 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001623/0.5101, allocations: 304.5 kB / 0.5646 GB, free: 3.91 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,6), (1,10), (1,7), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00121/0.5113, allocations: 498.4 kB / 0.5651 GB, free: 3.648 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002581/0.5139, allocations: 1.016 MB / 0.5661 GB, free: 3.121 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.5139, allocations: 0 / 0.5661 GB, free: 3.121 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001385/0.5153, allocations: 0.6137 MB / 0.5667 GB, free: 2.773 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001113/0.5165, allocations: 134.8 kB / 0.5668 GB, free: 2.699 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006151/0.5226, allocations: 3.367 MB / 0.5701 GB, free: 15.3 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008051/0.5235, allocations: 0.9424 MB / 0.571 GB, free: 14.33 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005899/0.5241, allocations: 93.02 kB / 0.5711 GB, free: 14.24 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002648/0.5244, allocations: 67.33 kB / 0.5711 GB, free: 14.17 MB / 394.7 MB Notification: Performance of SimCode: time 9.11e-07/0.5244, allocations: 0 / 0.5711 GB, free: 14.17 MB / 394.7 MB Notification: Performance of Templates: time 0.03407/0.5585, allocations: 18.61 MB / 0.5893 GB, free: 11.63 MB / 410.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestFriction/TestFriction.csv","../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches