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.002111/0.002111, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002532/0.002533, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.48/1.48, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2066/0.2066, allocations: 46.11 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 75.88 kB / 481.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4127/0.4142, allocations: 62.43 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005931/0.4201, allocations: 4.116 MB / 0.535 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003764/0.424, allocations: 1.479 MB / 0.5364 GB, free: 9.133 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005486/0.4245, allocations: 13.81 kB / 0.5364 GB, free: 9.129 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005391/0.4251, allocations: 139.9 kB / 0.5366 GB, free: 9.012 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007626/0.4259, allocations: 275.8 kB / 0.5368 GB, free: 8.793 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008977/0.4268, allocations: 348.2 kB / 0.5372 GB, free: 8.492 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001483/0.4283, allocations: 1.097 MB / 0.5382 GB, free: 7.836 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003751/0.4287, allocations: 184.4 kB / 0.5384 GB, free: 7.73 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008011/0.4295, allocations: 488.1 kB / 0.5389 GB, free: 7.449 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000796/0.4303, allocations: 0.5062 MB / 0.5394 GB, free: 7.109 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001553/0.4305, allocations: 82.75 kB / 0.5395 GB, free: 7.109 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003718/0.4309, allocations: 140.9 kB / 0.5396 GB, free: 7.086 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000313/0.4312, allocations: 238.7 kB / 0.5398 GB, free: 6.891 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005006/0.4317, allocations: 423.3 kB / 0.5402 GB, free: 6.59 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001245/0.4329, allocations: 1.034 MB / 0.5412 GB, free: 5.824 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.433, allocations: 0 / 0.5412 GB, free: 5.824 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.433, allocations: 0 / 0.5412 GB, free: 5.824 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.194e-05/0.433, allocations: 1.125 kB / 0.5412 GB, free: 5.824 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.002488/0.4355, allocations: 1.151 MB / 0.5424 GB, free: 4.926 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.632e-05/0.4356, allocations: 9.344 kB / 0.5424 GB, free: 4.926 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005769/0.4361, allocations: 124.2 kB / 0.5425 GB, free: 4.867 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009912/0.4371, allocations: 485.1 kB / 0.5429 GB, free: 4.438 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.55e-05/0.4372, allocations: 52.06 kB / 0.543 GB, free: 4.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001664/0.4374, allocations: 69.34 kB / 0.5431 GB, free: 4.383 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001783/0.4392, allocations: 0.819 MB / 0.5439 GB, free: 3.84 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.208e-05/0.4393, allocations: 11.09 kB / 0.5439 GB, free: 3.832 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.497e-05/0.4393, allocations: 25.47 kB / 0.5439 GB, free: 3.812 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.81e-05/0.4394, allocations: 15.06 kB / 0.5439 GB, free: 3.812 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001892/0.4413, allocations: 0.7379 MB / 0.5446 GB, free: 3.457 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004379/0.4457, allocations: 2.57 MB / 0.5471 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001515/0.4472, allocations: 0.6765 MB / 0.5478 GB, free: 180 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008234/0.448, allocations: 385.4 kB / 0.5482 GB, free: 15.79 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.399e-05/0.4481, allocations: 11.98 kB / 0.5482 GB, free: 15.78 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.907e-05/0.4482, allocations: 42.56 kB / 0.5482 GB, free: 15.73 MB / 414.1 MB Notification: Performance of pre-optimization done (n=79): time 3.326e-06/0.4482, allocations: 0 / 0.5482 GB, free: 15.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=83): time 0.008062/0.4562, allocations: 3.529 MB / 0.5517 GB, free: 11.94 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.988e-05/0.4564, allocations: 136.5 kB / 0.5518 GB, free: 11.77 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005898/0.457, allocations: 477.8 kB / 0.5523 GB, free: 11.3 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.938e-05/0.4571, allocations: 61.69 kB / 0.5523 GB, free: 11.23 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000218/0.4573, allocations: 284.5 kB / 0.5526 GB, free: 10.95 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002293/0.4575, allocations: 288.1 kB / 0.5529 GB, free: 10.66 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002729/0.4578, allocations: 166.5 kB / 0.553 GB, free: 10.49 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.458, allocations: 370.8 kB / 0.5534 GB, free: 10.12 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007398/0.4587, allocations: 365.8 kB / 0.5537 GB, free: 9.762 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008697/0.4596, allocations: 0.5254 MB / 0.5542 GB, free: 9.18 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001294/0.4609, allocations: 0.6893 MB / 0.5549 GB, free: 8.438 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.269e-06/0.4609, allocations: 4 kB / 0.5549 GB, free: 8.434 MB / 414.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002666/0.4636, allocations: 1.215 MB / 0.5561 GB, free: 7.199 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.486e-05/0.4636, allocations: 4 kB / 0.5561 GB, free: 7.195 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.543e-05/0.4637, allocations: 8 kB / 0.5561 GB, free: 7.188 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001249/0.4649, allocations: 0.5772 MB / 0.5567 GB, free: 6.598 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005166/0.4654, allocations: 151.7 kB / 0.5568 GB, free: 6.449 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003844/0.4693, allocations: 3.848 MB / 0.5606 GB, free: 2.383 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001005/0.4703, allocations: 147.9 kB / 0.5607 GB, free: 2.238 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.55e-05/0.4704, allocations: 43.98 kB / 0.5608 GB, free: 2.195 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.0003998/0.4708, allocations: 224.2 kB / 0.561 GB, free: 1.965 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001951/0.471, allocations: 67.16 kB / 0.561 GB, free: 1.898 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000169/0.4712, allocations: 92.83 kB / 0.5611 GB, free: 1.809 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.616e-06/0.4712, allocations: 11.94 kB / 0.5611 GB, free: 1.797 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.4712, allocations: 4 kB / 0.5611 GB, free: 1.793 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.4712, allocations: 3.984 kB / 0.5611 GB, free: 1.789 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003849/0.4751, allocations: 2.15 MB / 0.5632 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.459e-06/0.4751, allocations: 0 / 0.5632 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005531/0.4757, allocations: 115.9 kB / 0.5634 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001117/0.4768, allocations: 0.5379 MB / 0.5639 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.809e-05/0.4769, allocations: 35.89 kB / 0.5639 GB, free: 14.87 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003326/0.4802, allocations: 3.647 MB / 0.5675 GB, free: 11.01 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.4802, allocations: 0 / 0.5675 GB, free: 11.01 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003208/0.4835, allocations: 1.734 MB / 0.5692 GB, free: 9.246 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004549/0.4839, allocations: 232.1 kB / 0.5694 GB, free: 9 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001266/0.4841, allocations: 32 kB / 0.5694 GB, free: 8.969 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008836/0.4849, allocations: 119.8 kB / 0.5695 GB, free: 8.852 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004441/0.4854, allocations: 187.7 kB / 0.5697 GB, free: 8.668 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.245e-05/0.4855, allocations: 40.05 kB / 0.5698 GB, free: 8.629 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004009/0.4859, allocations: 326.8 kB / 0.5701 GB, free: 8.312 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4859, allocations: 0 / 0.5701 GB, free: 8.312 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0009196/0.4868, allocations: 204 kB / 0.5703 GB, free: 8.113 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.0009746/0.4878, allocations: 404.9 kB / 0.5706 GB, free: 7.824 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00229/0.4901, allocations: 1.044 MB / 0.5717 GB, free: 6.77 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.4901, allocations: 0.8125 kB / 0.5717 GB, free: 6.77 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001318/0.4915, allocations: 0.628 MB / 0.5723 GB, free: 6.129 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00108/0.4925, allocations: 149.3 kB / 0.5724 GB, free: 5.984 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004913/0.4975, allocations: 2.126 MB / 0.5745 GB, free: 3.82 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005197/0.498, allocations: 0.9381 MB / 0.5754 GB, free: 2.855 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000357/0.4984, allocations: 81.02 kB / 0.5755 GB, free: 2.773 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001774/0.4986, allocations: 59.41 kB / 0.5755 GB, free: 2.715 MB / 430.1 MB Notification: Performance of SimCode: time 7.82e-07/0.4986, allocations: 0 / 0.5755 GB, free: 2.715 MB / 430.1 MB Notification: Performance of Templates: time 0.03244/0.531, allocations: 16.86 MB / 0.592 GB, free: 1.922 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