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/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001527/0.001527, allocations: 121.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001827/0.001827, allocations: 204.7 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.457/1.457, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2303/0.2303, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 79.81 kB / 481.3 MB, free: 4.055 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4504/0.4518, allocations: 62.44 MB / 0.531 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.006138/0.4579, allocations: 4.104 MB / 0.535 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003238/0.4612, allocations: 1.479 MB / 0.5364 GB, free: 9.137 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004799/0.4617, allocations: 14.88 kB / 0.5365 GB, free: 9.133 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004928/0.4622, allocations: 139 kB / 0.5366 GB, free: 9.016 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007065/0.463, allocations: 286.2 kB / 0.5369 GB, free: 8.789 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007653/0.4638, allocations: 348.2 kB / 0.5372 GB, free: 8.488 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001197/0.465, allocations: 1.094 MB / 0.5383 GB, free: 7.836 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003204/0.4653, allocations: 187.2 kB / 0.5384 GB, free: 7.727 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007369/0.4661, allocations: 484.2 kB / 0.5389 GB, free: 7.449 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006232/0.4667, allocations: 0.5137 MB / 0.5394 GB, free: 7.102 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001431/0.4668, allocations: 83.31 kB / 0.5395 GB, free: 7.102 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002837/0.4671, allocations: 142.6 kB / 0.5396 GB, free: 7.078 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002306/0.4674, allocations: 232.6 kB / 0.5398 GB, free: 6.887 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000387/0.4678, allocations: 428.9 kB / 0.5402 GB, free: 6.582 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001445/0.4692, allocations: 1.029 MB / 0.5413 GB, free: 5.82 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.4692, allocations: 0 / 0.5413 GB, free: 5.82 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4693, allocations: 0 / 0.5413 GB, free: 5.82 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.22e-05/0.4693, allocations: 0 / 0.5413 GB, free: 5.82 MB / 398.1 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.002567/0.4718, allocations: 1.159 MB / 0.5424 GB, free: 4.914 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.4719, allocations: 10.19 kB / 0.5424 GB, free: 4.914 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005436/0.4724, allocations: 123.4 kB / 0.5425 GB, free: 4.855 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008454/0.4733, allocations: 489 kB / 0.543 GB, free: 4.422 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.258e-05/0.4734, allocations: 48.59 kB / 0.543 GB, free: 4.398 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001361/0.4735, allocations: 69.28 kB / 0.5431 GB, free: 4.371 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00169/0.4752, allocations: 0.8185 MB / 0.5439 GB, free: 3.828 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.404e-05/0.4753, allocations: 7.422 kB / 0.5439 GB, free: 3.824 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.563e-05/0.4753, allocations: 24.84 kB / 0.5439 GB, free: 3.805 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.818e-05/0.4754, allocations: 16.31 kB / 0.5439 GB, free: 3.805 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0017/0.4771, allocations: 0.7336 MB / 0.5447 GB, free: 3.453 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004356/0.4814, allocations: 2.569 MB / 0.5472 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001426/0.4829, allocations: 0.6659 MB / 0.5478 GB, free: 160 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007649/0.4837, allocations: 379.2 kB / 0.5482 GB, free: 15.77 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.44e-05/0.4838, allocations: 23.91 kB / 0.5482 GB, free: 15.75 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.239e-05/0.4838, allocations: 42.5 kB / 0.5482 GB, free: 15.7 MB / 414.1 MB Notification: Performance of pre-optimization done (n=79): time 2.885e-06/0.4838, allocations: 0 / 0.5482 GB, free: 15.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=83): time 0.008176/0.492, allocations: 3.522 MB / 0.5517 GB, free: 11.91 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.788e-05/0.4921, allocations: 148.4 kB / 0.5518 GB, free: 11.73 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006109/0.4927, allocations: 477.8 kB / 0.5523 GB, free: 11.26 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.237e-05/0.4928, allocations: 53.7 kB / 0.5523 GB, free: 11.2 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001989/0.493, allocations: 284.5 kB / 0.5526 GB, free: 10.91 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002261/0.4933, allocations: 292.1 kB / 0.5529 GB, free: 10.62 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002848/0.4935, allocations: 166.5 kB / 0.553 GB, free: 10.46 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.4937, allocations: 366.8 kB / 0.5534 GB, free: 10.09 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000786/0.4945, allocations: 369.8 kB / 0.5537 GB, free: 9.727 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000883/0.4954, allocations: 0.5138 MB / 0.5542 GB, free: 9.156 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001345/0.4967, allocations: 0.6905 MB / 0.5549 GB, free: 8.41 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.4968, allocations: 7.938 kB / 0.5549 GB, free: 8.402 MB / 414.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002702/0.4995, allocations: 1.214 MB / 0.5561 GB, free: 7.172 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.4995, allocations: 8 kB / 0.5561 GB, free: 7.164 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.4995, allocations: 4 kB / 0.5561 GB, free: 7.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001326/0.5009, allocations: 0.5813 MB / 0.5567 GB, free: 6.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005444/0.5014, allocations: 143.7 kB / 0.5568 GB, free: 6.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003975/0.5054, allocations: 3.86 MB / 0.5606 GB, free: 2.352 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001133/0.5066, allocations: 143.7 kB / 0.5607 GB, free: 2.211 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.623e-05/0.5067, allocations: 39.98 kB / 0.5608 GB, free: 2.172 MB / 414.1 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.0004539/0.5071, allocations: 219.9 kB / 0.561 GB, free: 1.949 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002133/0.5073, allocations: 71.16 kB / 0.561 GB, free: 1.879 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002/0.5075, allocations: 84.84 kB / 0.5611 GB, free: 1.797 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.305e-05/0.5076, allocations: 15.94 kB / 0.5611 GB, free: 1.781 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.106e-05/0.5076, allocations: 7.984 kB / 0.5611 GB, free: 1.773 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.5076, allocations: 3.984 kB / 0.5612 GB, free: 1.77 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003878/0.5115, allocations: 2.151 MB / 0.5633 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/0.5115, allocations: 4 kB / 0.5633 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005392/0.512, allocations: 111.9 kB / 0.5634 GB, free: 15.43 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001161/0.5132, allocations: 0.5383 MB / 0.5639 GB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.758e-05/0.5133, allocations: 39.89 kB / 0.5639 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00354/0.5169, allocations: 3.65 MB / 0.5675 GB, free: 10.98 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.5169, allocations: 0 / 0.5675 GB, free: 10.98 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003294/0.5202, allocations: 1.734 MB / 0.5692 GB, free: 9.219 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004317/0.5206, allocations: 228.1 kB / 0.5694 GB, free: 8.977 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001377/0.5208, allocations: 28 kB / 0.5694 GB, free: 8.949 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008539/0.5216, allocations: 123.8 kB / 0.5695 GB, free: 8.828 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004339/0.5221, allocations: 187.7 kB / 0.5697 GB, free: 8.645 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.005e-05/0.5222, allocations: 32.06 kB / 0.5698 GB, free: 8.613 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004149/0.5226, allocations: 334.8 kB / 0.5701 GB, free: 8.289 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5226, allocations: 0 / 0.5701 GB, free: 8.289 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0009592/0.5236, allocations: 204 kB / 0.5703 GB, free: 8.09 MB / 430.1 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.0009776/0.5245, allocations: 401.5 kB / 0.5707 GB, free: 7.801 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002387/0.527, allocations: 1.048 MB / 0.5717 GB, free: 6.742 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.738e-06/0.527, allocations: 0 / 0.5717 GB, free: 6.742 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001459/0.5284, allocations: 0.628 MB / 0.5723 GB, free: 6.102 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001211/0.5297, allocations: 150.8 kB / 0.5724 GB, free: 5.957 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004847/0.5345, allocations: 2.128 MB / 0.5745 GB, free: 3.793 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005546/0.5351, allocations: 0.9341 MB / 0.5754 GB, free: 2.832 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000397/0.5355, allocations: 81.02 kB / 0.5755 GB, free: 2.75 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001701/0.5357, allocations: 59.41 kB / 0.5756 GB, free: 2.691 MB / 430.1 MB Notification: Performance of SimCode: time 5.11e-07/0.5357, allocations: 0 / 0.5756 GB, free: 2.691 MB / 430.1 MB Notification: Performance of Templates: time 0.02506/0.5608, allocations: 16.18 MB / 0.5914 GB, free: 2.582 MB / 446.1 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestFriction/TestFriction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches