Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestBearingConversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bearingFriction.phi|bearingFriction.w|gear2_1.phi_rel|gear2_1.w_rel|gear2_2.phi_rel|gear2_2.w_rel|inertia1.phi|inertia1.w|inertia11.phi|inertia11.w|inertia2.phi|inertia2.w|inertia20.phi|inertia20.w|inertia21.phi|inertia21.w|inertia3.phi|inertia3.w|inertia5.phi|inertia5.w|inertia7.phi|inertia7.w|inertia9.phi|inertia9.w|position.phi|position.w|position1.phi|position1.w|position2.phi|position2.w|position3.phi|position3.w|position4.phi|position4.w|position5.phi|position5.w|slidingMass.s|slidingMass.v|slidingMass1.s|slidingMass1.v|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward|gear2_1.lossyGear.mode|gear2_2.lossyGear.mode|lossyGear.mode|lossyGear1.mode",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion") translateModel(ModelicaTest.Rotational.TestBearingConversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bearingFriction.phi|bearingFriction.w|gear2_1.phi_rel|gear2_1.w_rel|gear2_2.phi_rel|gear2_2.w_rel|inertia1.phi|inertia1.w|inertia11.phi|inertia11.w|inertia2.phi|inertia2.w|inertia20.phi|inertia20.w|inertia21.phi|inertia21.w|inertia3.phi|inertia3.w|inertia5.phi|inertia5.w|inertia7.phi|inertia7.w|inertia9.phi|inertia9.w|position.phi|position.w|position1.phi|position1.w|position2.phi|position2.w|position3.phi|position3.w|position4.phi|position4.w|position5.phi|position5.w|slidingMass.s|slidingMass.v|slidingMass1.s|slidingMass1.v|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward|gear2_1.lossyGear.mode|gear2_2.lossyGear.mode|lossyGear.mode|lossyGear1.mode",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001478/0.001478, allocations: 107.8 kB / 18.45 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00154/0.00154, allocations: 185.9 kB / 19.39 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 222.9 MB / 243.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2325/0.2325, allocations: 44.19 MB / 337.4 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 59.91 kB / 471.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3764/0.3778, allocations: 60.82 MB / 0.5196 GB, free: 3.859 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBearingConversion): time 0.01333/0.3911, allocations: 11.95 MB / 0.5313 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01092/0.4021, allocations: 3.927 MB / 0.5351 GB, free: 7.941 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003756/0.4059, allocations: 59.94 kB / 0.5352 GB, free: 7.926 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002219/0.4082, allocations: 496.2 kB / 0.5356 GB, free: 7.504 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005598/0.4138, allocations: 1.04 MB / 0.5366 GB, free: 6.629 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004292/0.4181, allocations: 1.323 MB / 0.5379 GB, free: 5.516 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008252/0.4264, allocations: 4.444 MB / 0.5423 GB, free: 2.848 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002865/0.4293, allocations: 1.052 MB / 0.5433 GB, free: 2.203 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004822/0.4341, allocations: 1.818 MB / 0.5451 GB, free: 1.129 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004741/0.4389, allocations: 2.043 MB / 0.5471 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001749/0.4407, allocations: 374 kB / 0.5474 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00274/0.4435, allocations: 0.5076 MB / 0.5479 GB, free: 15.06 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00167/0.4451, allocations: 0.9191 MB / 0.5488 GB, free: 14.14 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004223/0.4494, allocations: 1.765 MB / 0.5505 GB, free: 12.36 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007231/0.4566, allocations: 4.374 MB / 0.5548 GB, free: 7.977 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.134e-06/0.4567, allocations: 0 / 0.5548 GB, free: 7.977 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.287e-06/0.4567, allocations: 0 / 0.5548 GB, free: 7.977 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001714/0.4569, allocations: 0 / 0.5548 GB, free: 7.977 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 719 * Number of variables: 719 Notification: Performance of Generate backend data structure: time 0.01032/0.4672, allocations: 3.684 MB / 0.5584 GB, free: 4.23 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/0.4672, allocations: 12.03 kB / 0.5584 GB, free: 4.219 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00149/0.4687, allocations: 404.8 kB / 0.5588 GB, free: 3.82 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002855/0.4716, allocations: 1.553 MB / 0.5603 GB, free: 2.211 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006737/0.4723, allocations: 0.5299 MB / 0.5609 GB, free: 1.617 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005776/0.4729, allocations: 315.6 kB / 0.5612 GB, free: 1.309 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007522/0.4804, allocations: 3.411 MB / 0.5645 GB, free: 13.79 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001208/0.4806, allocations: 39.61 kB / 0.5645 GB, free: 13.75 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003035/0.4809, allocations: 112 kB / 0.5646 GB, free: 13.64 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.708e-05/0.481, allocations: 75.98 kB / 0.5647 GB, free: 13.56 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007609/0.4886, allocations: 3.505 MB / 0.5681 GB, free: 10.05 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02072/0.5093, allocations: 9.94 MB / 0.5778 GB, free: 15.87 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00721/0.5166, allocations: 3.338 MB / 0.5811 GB, free: 12.33 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003974/0.5206, allocations: 1.727 MB / 0.5828 GB, free: 10.56 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004181/0.521, allocations: 220.2 kB / 0.583 GB, free: 10.31 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.662e-05/0.5211, allocations: 89.06 kB / 0.5831 GB, free: 10.21 MB / 446.1 MB Notification: Performance of pre-optimization done (n=358): time 7.744e-06/0.5211, allocations: 4 kB / 0.5831 GB, free: 10.21 MB / 446.1 MB Notification: Performance of matching and sorting (n=421): time 0.04601/0.5672, allocations: 20.92 MB / 0.6035 GB, free: 4.059 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003664/0.5676, allocations: 0.6083 MB / 0.6041 GB, free: 3.312 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003093/0.5707, allocations: 1.659 MB / 0.6057 GB, free: 1.652 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009166/0.5716, allocations: 117.7 kB / 0.6058 GB, free: 1.531 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009341/0.5726, allocations: 0.9303 MB / 0.6067 GB, free: 0.5898 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002246/0.5748, allocations: 1.409 MB / 0.6081 GB, free: 15.16 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002638/0.5775, allocations: 0.7133 MB / 0.6088 GB, free: 14.43 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.5776, allocations: 305.1 kB / 0.6091 GB, free: 14.13 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003679/0.5813, allocations: 1.484 MB / 0.6106 GB, free: 12.64 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0046/0.5859, allocations: 2.245 MB / 0.6127 GB, free: 10.11 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007769/0.5937, allocations: 3.432 MB / 0.6161 GB, free: 6.426 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.061e-05/0.5938, allocations: 4 kB / 0.6161 GB, free: 6.422 MB / 478.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01304/0.6069, allocations: 4.963 MB / 0.621 GB, free: 1.422 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.466e-05/0.6069, allocations: 12.09 kB / 0.621 GB, free: 1.41 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-05/0.607, allocations: 27.94 kB / 0.621 GB, free: 1.383 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004746/0.6118, allocations: 2.015 MB / 0.623 GB, free: 15.33 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00363/0.6154, allocations: 0.7761 MB / 0.6237 GB, free: 14.55 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02324/0.6387, allocations: 17.63 MB / 0.6409 GB, free: 12 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003644/0.6424, allocations: 299.7 kB / 0.6412 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009832/0.6434, allocations: 172 kB / 0.6414 GB, free: 11.54 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 60 (gear2_2.lossyGear.ideal,gear2_2.lossyGear.mode,$PRE.gear2_2.lossyGear.mode,gear2_2.lossyGear.locked,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.startForward,gear2_2.lossyGear.tau_aPos,gear2_1.lossyGear.ideal,gear2_1.lossyGear.mode,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.locked,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.startForward,gear2_1.lossyGear.tau_aPos,lossyGear1.ideal,lossyGear1.mode,$PRE.lossyGear1.mode,lossyGear1.locked,lossyGear1.startBackward,lossyGear1.startForward,lossyGear1.tau_aPos,brake1.mode,$PRE.brake1.mode,brake1.locked,brake1.startBackward,$PRE.brake1.startBackward,brake1.startForward,$PRE.brake1.startForward,brake1.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,bearingFriction.free,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,lossyGear.ideal,lossyGear.mode,$PRE.lossyGear.mode,lossyGear.locked,lossyGear.startBackward,lossyGear.startForward,lossyGear.tau_aPos,bearingFriction1.free,bearingFriction1.mode,$PRE.bearingFriction1.mode,bearingFriction1.locked,bearingFriction1.startBackward,$PRE.bearingFriction1.startBackward,bearingFriction1.startForward,$PRE.bearingFriction1.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (403): * Single equations (assignments): 393 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 8 systems {(2,22), (2,22), (2,25), (1,6), (1,6), (1,12), (2,24), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.002529/0.6459, allocations: 0.614 MB / 0.642 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001418/0.6474, allocations: 284.6 kB / 0.6423 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001501/0.6489, allocations: 0.5174 MB / 0.6428 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.314e-05/0.649, allocations: 23.92 kB / 0.6428 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.314e-05/0.649, allocations: 4 kB / 0.6428 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001974/0.651, allocations: 0.6886 MB / 0.6435 GB, free: 9.363 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008702/0.6519, allocations: 103.9 kB / 0.6436 GB, free: 9.262 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003705/0.6556, allocations: 339.6 kB / 0.6439 GB, free: 8.93 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001147/0.6567, allocations: 444.8 kB / 0.6443 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0173/0.674, allocations: 6.416 MB / 0.6506 GB, free: 2.031 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01477/0.6889, allocations: 7.151 MB / 0.6576 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.005412/0.6943, allocations: 2.025 MB / 0.6595 GB, free: 8.785 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003151/0.6975, allocations: 1.113 MB / 0.6606 GB, free: 7.68 MB / 0.5137 GB Notification: Performance of Backend: time 1.202e-06/0.6975, allocations: 3.938 kB / 0.6606 GB, free: 7.676 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01316/0.7107, allocations: 3.856 MB / 0.6644 GB, free: 3.742 MB / 0.5137 GB Notification: Performance of SimCode: time 0.01568/0.7264, allocations: 8.023 MB / 0.6722 GB, free: 11.66 MB / 0.5294 GB Notification: Performance of Templates: time 0.3966/1.123, allocations: 60.05 MB / 0.7309 GB, free: 167 MB / 0.5606 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBearingConversion/TestBearingConversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches