Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.Rotational.TestBearingConversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 113.4 kB / 17.09 MB, free: 5.957 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.001105/0.001105, allocations: 199.3 kB / 18.02 MB, free: 5.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.363/1.363, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2101/0.2101, allocations: 43.53 MB / 314.8 MB, free: 448 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001669/0.001669, allocations: 65.45 kB / 442.5 MB, free: 5.617 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1206, allocations: 57.79 MB / 0.4886 GB, free: 11.75 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBearingConversion): time 0.01262/0.1332, allocations: 11.95 MB / 0.5002 GB, free: 15.75 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009642/0.1429, allocations: 3.969 MB / 0.5041 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002749/0.1458, allocations: 59.75 kB / 0.5042 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001691/0.1475, allocations: 495.2 kB / 0.5047 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003742/0.1512, allocations: 1.015 MB / 0.5056 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002938/0.1542, allocations: 1.334 MB / 0.5069 GB, free: 8.867 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005352/0.1596, allocations: 4.441 MB / 0.5113 GB, free: 4.41 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001363/0.1609, allocations: 1.044 MB / 0.5123 GB, free: 3.305 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002561/0.1635, allocations: 1.807 MB / 0.5141 GB, free: 1.492 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003094/0.1666, allocations: 2.047 MB / 0.5161 GB, free: 15.44 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001072/0.1677, allocations: 372 kB / 0.5164 GB, free: 15.07 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001216/0.1689, allocations: 0.5076 MB / 0.5169 GB, free: 14.57 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007571/0.1697, allocations: 0.9308 MB / 0.5178 GB, free: 13.63 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001704/0.1714, allocations: 1.761 MB / 0.5195 GB, free: 11.86 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004445/0.1759, allocations: 4.369 MB / 0.5238 GB, free: 7.48 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1759, allocations: 0 / 0.5238 GB, free: 7.48 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1759, allocations: 0 / 0.5238 GB, free: 7.48 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.563e-05/0.176, allocations: 0 / 0.5238 GB, free: 7.48 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.007869/0.1838, allocations: 3.692 MB / 0.5274 GB, free: 3.727 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.1839, allocations: 11.89 kB / 0.5274 GB, free: 3.715 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001364/0.1853, allocations: 408.8 kB / 0.5278 GB, free: 3.312 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002284/0.1876, allocations: 1.553 MB / 0.5293 GB, free: 1.703 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005095/0.1881, allocations: 0.5299 MB / 0.5299 GB, free: 1.109 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004634/0.1885, allocations: 303.7 kB / 0.5301 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2398/0.4283, allocations: 3.41 MB / 0.5335 GB, free: 37.02 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001364/0.4285, allocations: 37.5 kB / 0.5335 GB, free: 37.02 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000269/0.4288, allocations: 121.6 kB / 0.5336 GB, free: 37.02 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.557e-05/0.4288, allocations: 70.59 kB / 0.5337 GB, free: 37.02 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007068/0.4359, allocations: 3.512 MB / 0.5371 GB, free: 36.67 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01885/0.4548, allocations: 9.925 MB / 0.5468 GB, free: 31.57 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006274/0.4611, allocations: 3.31 MB / 0.55 GB, free: 29.97 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003092/0.4642, allocations: 1.736 MB / 0.5517 GB, free: 29.14 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000284/0.4645, allocations: 223.9 kB / 0.552 GB, free: 28.93 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.526e-05/0.4646, allocations: 91.48 kB / 0.552 GB, free: 28.85 MB / 414.1 MB Notification: Performance of pre-optimization done (n=358): time 6.522e-06/0.4646, allocations: 0 / 0.552 GB, free: 28.85 MB / 414.1 MB Notification: Performance of matching and sorting (n=421): time 0.03353/0.4981, allocations: 20.93 MB / 0.5725 GB, free: 13.11 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001424/0.4983, allocations: 0.6044 MB / 0.5731 GB, free: 12.37 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001925/0.5003, allocations: 1.651 MB / 0.5747 GB, free: 10.72 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005154/0.5008, allocations: 129.7 kB / 0.5748 GB, free: 10.59 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005118/0.5013, allocations: 0.9221 MB / 0.5757 GB, free: 9.656 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008068/0.5021, allocations: 1.415 MB / 0.5771 GB, free: 8.262 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008796/0.503, allocations: 0.7094 MB / 0.5778 GB, free: 7.539 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.475e-05/0.5031, allocations: 309.1 kB / 0.5781 GB, free: 7.234 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002558/0.5056, allocations: 1.488 MB / 0.5795 GB, free: 5.738 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002818/0.5085, allocations: 2.245 MB / 0.5817 GB, free: 3.207 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00488/0.5133, allocations: 3.439 MB / 0.5851 GB, free: 15.53 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.486e-05/0.5134, allocations: 8 kB / 0.5851 GB, free: 15.52 MB / 430.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.009571/0.523, allocations: 4.966 MB / 0.5899 GB, free: 10.53 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.71e-05/0.523, allocations: 12 kB / 0.59 GB, free: 10.52 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.563e-05/0.5231, allocations: 24.48 kB / 0.59 GB, free: 10.49 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004286/0.5274, allocations: 1.999 MB / 0.5919 GB, free: 8.473 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003207/0.5306, allocations: 0.7723 MB / 0.5927 GB, free: 7.699 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01995/0.5505, allocations: 17.65 MB / 0.6099 GB, free: 5.137 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003584/0.5542, allocations: 299.6 kB / 0.6102 GB, free: 4.844 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005191/0.5547, allocations: 168 kB / 0.6104 GB, free: 4.68 MB / 446.1 MB 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.001599/0.5563, allocations: 0.614 MB / 0.611 GB, free: 4.055 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008986/0.5572, allocations: 292.5 kB / 0.6112 GB, free: 3.766 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001156/0.5584, allocations: 0.5213 MB / 0.6117 GB, free: 3.23 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.171e-05/0.5585, allocations: 27.75 kB / 0.6118 GB, free: 3.207 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-05/0.5585, allocations: 4 kB / 0.6118 GB, free: 3.203 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001229/0.5597, allocations: 0.6848 MB / 0.6124 GB, free: 2.496 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005333/0.5603, allocations: 104 kB / 0.6125 GB, free: 2.395 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002984/0.5633, allocations: 327.6 kB / 0.6129 GB, free: 2.074 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009359/0.5642, allocations: 452.8 kB / 0.6133 GB, free: 1.633 MB / 446.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01447/0.5787, allocations: 6.409 MB / 0.6196 GB, free: 11.27 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01256/0.5913, allocations: 7.166 MB / 0.6265 GB, free: 4.039 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004527/0.5959, allocations: 2.008 MB / 0.6285 GB, free: 2.035 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00192/0.5978, allocations: 1.117 MB / 0.6296 GB, free: 0.9258 MB / 462.1 MB Notification: Performance of Backend: time 4.81e-07/0.5978, allocations: 0 / 0.6296 GB, free: 0.9258 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01053/0.6084, allocations: 3.863 MB / 0.6334 GB, free: 13 MB / 478.1 MB Notification: Performance of SimCode: time 0.01353/0.6219, allocations: 8.014 MB / 0.6412 GB, free: 4.949 MB / 478.1 MB Notification: Performance of Templates: time 0.0989/0.7209, allocations: 62.15 MB / 0.7019 GB, free: 6.758 MB / 0.5294 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestBearingConversion/TestBearingConversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches