Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001094/0.001094, allocations: 183 kB / 16.63 MB, free: 5.137 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.405/1.405, allocations: 205.1 MB / 222.5 MB, free: 8.469 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001118/0.001118, allocations: 104.7 kB / 269.9 MB, free: 8.418 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3865/0.3865, allocations: 43.5 MB / 360.7 MB, free: 51.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001059/0.001059, allocations: 51.92 kB / 429.2 MB, free: 6.387 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1329, allocations: 57.77 MB / 487 MB, free: 12.55 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005576/0.1385, allocations: 3.952 MB / 491 MB, free: 8.566 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002829/0.1413, allocations: 1.279 MB / 492.2 MB, free: 7.281 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005882/0.1419, allocations: 11.94 kB / 492.2 MB, free: 7.27 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003251/0.1423, allocations: 87.31 kB / 492.3 MB, free: 7.184 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004074/0.1427, allocations: 178.7 kB / 492.5 MB, free: 7.008 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000715/0.1435, allocations: 299.6 kB / 492.8 MB, free: 6.715 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008151/0.1443, allocations: 0.9795 MB / 493.8 MB, free: 5.727 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000245/0.1445, allocations: 161.8 kB / 493.9 MB, free: 5.566 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004098/0.145, allocations: 406.5 kB / 494.3 MB, free: 5.168 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004624/0.1454, allocations: 470.2 kB / 494.8 MB, free: 4.707 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 9.805e-05/0.1455, allocations: 44 kB / 494.8 MB, free: 4.664 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002227/0.1458, allocations: 95.89 kB / 494.9 MB, free: 4.57 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001858/0.146, allocations: 175.4 kB / 495.1 MB, free: 4.398 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003282/0.1463, allocations: 362.1 kB / 495.4 MB, free: 4.043 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000708/0.147, allocations: 0.8762 MB / 496.3 MB, free: 3.164 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.147, allocations: 4 kB / 496.3 MB, free: 3.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.147, allocations: 0 / 496.3 MB, free: 3.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.677e-06/0.147, allocations: 0 / 496.3 MB, free: 3.16 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.002067/0.1491, allocations: 1.087 MB / 497.4 MB, free: 2.02 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.1492, allocations: 12.03 kB / 497.4 MB, free: 2.008 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001431/0.1493, allocations: 83.94 kB / 497.5 MB, free: 1.926 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005371/0.1499, allocations: 437.5 kB / 497.9 MB, free: 1.461 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.38e-05/0.1499, allocations: 49.69 kB / 498 MB, free: 1.414 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001135/0.15, allocations: 68.12 kB / 498.1 MB, free: 1.348 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001344/0.1514, allocations: 0.8218 MB / 498.9 MB, free: 0.4961 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.874e-05/0.1514, allocations: 7.906 kB / 498.9 MB, free: 500 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.497e-05/0.1515, allocations: 28 kB / 498.9 MB, free: 472 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/0.1515, allocations: 12 kB / 498.9 MB, free: 460 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001432/0.153, allocations: 0.7695 MB / 499.7 MB, free: 15.68 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003916/0.1569, allocations: 2.55 MB / 0.4905 GB, free: 13.01 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001253/0.1582, allocations: 0.6268 MB / 0.4911 GB, free: 12.34 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006869/0.1589, allocations: 375.6 kB / 0.4914 GB, free: 11.96 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.765e-05/0.1589, allocations: 15.91 kB / 0.4915 GB, free: 11.95 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.22e-05/0.159, allocations: 42.5 kB / 0.4915 GB, free: 11.9 MB / 394.7 MB Notification: Performance of pre-optimization done (n=72): time 4.148e-06/0.159, allocations: 3.984 kB / 0.4915 GB, free: 11.89 MB / 394.7 MB Notification: Performance of matching and sorting (n=76): time 0.007046/0.166, allocations: 3.539 MB / 0.495 GB, free: 8.086 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.648e-05/0.1661, allocations: 136.5 kB / 0.4951 GB, free: 7.922 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004118/0.1665, allocations: 425.8 kB / 0.4955 GB, free: 7.496 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.038e-05/0.1666, allocations: 49.69 kB / 0.4955 GB, free: 7.441 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001706/0.1668, allocations: 292.2 kB / 0.4958 GB, free: 7.148 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001827/0.167, allocations: 252.6 kB / 0.4961 GB, free: 6.898 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002599/0.1673, allocations: 182.4 kB / 0.4962 GB, free: 6.715 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.1674, allocations: 362.8 kB / 0.4966 GB, free: 6.352 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006971/0.1681, allocations: 393.7 kB / 0.497 GB, free: 5.965 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008033/0.1689, allocations: 0.5452 MB / 0.4975 GB, free: 5.363 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00118/0.1701, allocations: 0.7405 MB / 0.4982 GB, free: 4.57 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1701, allocations: 0 / 0.4982 GB, free: 4.57 MB / 394.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.00248/0.1726, allocations: 1.282 MB / 0.4995 GB, free: 3.27 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.741e-05/0.1726, allocations: 11.98 kB / 0.4995 GB, free: 3.258 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/0.1727, allocations: 11.94 kB / 0.4995 GB, free: 3.246 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001338/0.174, allocations: 0.7568 MB / 0.5002 GB, free: 2.477 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005267/0.1745, allocations: 147.8 kB / 0.5004 GB, free: 2.332 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2252/0.3998, allocations: 2.687 MB / 0.503 GB, free: 59.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001348/0.4012, allocations: 142.3 kB / 0.5031 GB, free: 59.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001213/0.4013, allocations: 36.19 kB / 0.5032 GB, free: 59.5 MB / 394.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 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 87 * 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,7), (1,6), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0004706/0.4018, allocations: 219.9 kB / 0.5034 GB, free: 59.38 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002273/0.402, allocations: 67.36 kB / 0.5034 GB, free: 59.38 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002246/0.4023, allocations: 89.05 kB / 0.5035 GB, free: 59.38 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.696e-05/0.4023, allocations: 8.219 kB / 0.5035 GB, free: 59.38 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.66e-05/0.4023, allocations: 2.25 kB / 0.5035 GB, free: 59.38 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.452e-05/0.4023, allocations: 5.109 kB / 0.5035 GB, free: 59.38 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004661/0.407, allocations: 2.174 MB / 0.5057 GB, free: 58.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.648e-06/0.407, allocations: 0 / 0.5057 GB, free: 58.82 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000552/0.4076, allocations: 110.4 kB / 0.5058 GB, free: 58.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00126/0.4088, allocations: 0.7196 MB / 0.5065 GB, free: 58.71 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.283e-05/0.4089, allocations: 30.66 kB / 0.5065 GB, free: 58.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001705/0.4106, allocations: 2.645 MB / 0.5091 GB, free: 56.43 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.4107, allocations: 1.438 kB / 0.5091 GB, free: 56.43 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02038/0.431, allocations: 14.93 MB / 0.5237 GB, free: 46.91 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003334/0.4314, allocations: 216 kB / 0.5239 GB, free: 46.76 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001183/0.4315, allocations: 24.91 kB / 0.5239 GB, free: 46.74 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008447/0.4324, allocations: 123.6 kB / 0.524 GB, free: 46.73 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003616/0.4328, allocations: 147.5 kB / 0.5241 GB, free: 46.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.301e-05/0.4328, allocations: 34.42 kB / 0.5242 GB, free: 46.7 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003466/0.4332, allocations: 291.7 kB / 0.5245 GB, free: 46.56 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.4332, allocations: 0 / 0.5245 GB, free: 46.56 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001151/0.4344, allocations: 314.1 kB / 0.5248 GB, free: 46.52 MB / 394.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 (53): * Single equations (assignments): 49 * 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,7), (1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003203/0.4347, allocations: 173.5 kB / 0.5249 GB, free: 46.41 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001848/0.4365, allocations: 0.9598 MB / 0.5259 GB, free: 46.11 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.4366, allocations: 0 / 0.5259 GB, free: 46.11 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009943/0.4376, allocations: 0.5 MB / 0.5263 GB, free: 45.95 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008607/0.4384, allocations: 103.1 kB / 0.5264 GB, free: 45.91 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004795/0.4432, allocations: 3.295 MB / 0.5297 GB, free: 43.69 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003122/0.4436, allocations: 0.9318 MB / 0.5306 GB, free: 42.97 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000273/0.4438, allocations: 67.41 kB / 0.5306 GB, free: 42.95 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001424/0.444, allocations: 50.69 kB / 0.5307 GB, free: 42.94 MB / 394.7 MB Notification: Performance of SimCode: time 2.31e-07/0.444, allocations: 0 / 0.5307 GB, free: 42.94 MB / 394.7 MB Notification: Performance of Templates: time 0.0262/0.4702, allocations: 19.14 MB / 0.5494 GB, free: 38.83 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestFriction/TestFriction.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches