Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001666/0.001666, allocations: 117.4 kB / 19.18 MB, free: 3.871 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001958/0.001958, allocations: 206.5 kB / 22.13 MB, free: 0.9258 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.551/1.551, allocations: 230.3 MB / 255.2 MB, free: 15.36 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2246/0.2246, allocations: 46.93 MB / 358.2 MB, free: 10.43 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") translateModel(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002488/0.002488, allocations: 84.08 kB / 0.4925 GB, free: 26.66 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1191, allocations: 66.01 MB / 0.557 GB, free: 8.52 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004508/0.1236, allocations: 2.368 MB / 0.5593 GB, free: 6.133 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001727/0.1253, allocations: 0.9151 MB / 0.5602 GB, free: 5.211 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002123/0.1255, allocations: 11.94 kB / 0.5602 GB, free: 5.199 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000298/0.1258, allocations: 51.58 kB / 0.5602 GB, free: 5.148 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000263/0.1261, allocations: 75.34 kB / 0.5603 GB, free: 5.074 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004079/0.1265, allocations: 143.6 kB / 0.5604 GB, free: 4.934 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004093/0.1269, allocations: 351.3 kB / 0.5608 GB, free: 4.59 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001825/0.1271, allocations: 64.88 kB / 0.5608 GB, free: 4.52 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002752/0.1274, allocations: 159.6 kB / 0.561 GB, free: 4.363 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002671/0.1276, allocations: 171.3 kB / 0.5611 GB, free: 4.195 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.156e-05/0.1277, allocations: 28 kB / 0.5612 GB, free: 4.168 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001782/0.1279, allocations: 79.98 kB / 0.5612 GB, free: 4.09 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001243/0.128, allocations: 75.73 kB / 0.5613 GB, free: 4.016 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001417/0.1281, allocations: 135.4 kB / 0.5614 GB, free: 3.883 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005093/0.1286, allocations: 390.5 kB / 0.5618 GB, free: 3.5 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.1286, allocations: 4 kB / 0.5618 GB, free: 3.496 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1286, allocations: 0 / 0.5618 GB, free: 3.496 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.1286, allocations: 0 / 0.5618 GB, free: 3.496 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001037/0.1297, allocations: 0.5882 MB / 0.5624 GB, free: 2.859 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.1297, allocations: 13.11 kB / 0.5624 GB, free: 2.848 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001844/0.1299, allocations: 32.8 kB / 0.5624 GB, free: 2.816 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004038/0.1303, allocations: 264.5 kB / 0.5627 GB, free: 2.52 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.186e-05/0.1303, allocations: 16.94 kB / 0.5627 GB, free: 2.504 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.75e-05/0.1304, allocations: 24.38 kB / 0.5627 GB, free: 2.48 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005818/0.131, allocations: 273.1 kB / 0.563 GB, free: 2.207 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.131, allocations: 7.953 kB / 0.563 GB, free: 2.199 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.438e-05/0.131, allocations: 11.94 kB / 0.563 GB, free: 2.188 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.298e-06/0.131, allocations: 8 kB / 0.563 GB, free: 2.18 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005582/0.1316, allocations: 238.1 kB / 0.5632 GB, free: 1.949 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001465/0.1331, allocations: 0.733 MB / 0.564 GB, free: 1.164 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005847/0.1337, allocations: 218.5 kB / 0.5642 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000289/0.1339, allocations: 137 kB / 0.5643 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.273e-05/0.134, allocations: 7.922 kB / 0.5643 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.931e-05/0.134, allocations: 38.5 kB / 0.5643 GB, free: 0.7539 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.773e-06/0.134, allocations: 0 / 0.5643 GB, free: 0.7539 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.003315/0.1373, allocations: 1.414 MB / 0.5657 GB, free: 15.23 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.167e-05/0.1374, allocations: 55.41 kB / 0.5658 GB, free: 15.16 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002524/0.1376, allocations: 203.8 kB / 0.566 GB, free: 14.95 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.287e-05/0.1377, allocations: 37.7 kB / 0.566 GB, free: 14.9 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.1378, allocations: 144.8 kB / 0.5661 GB, free: 14.76 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001091/0.1379, allocations: 119 kB / 0.5663 GB, free: 14.64 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001321/0.138, allocations: 69.62 kB / 0.5663 GB, free: 14.57 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.1382, allocations: 342.7 kB / 0.5667 GB, free: 14.22 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000273/0.1384, allocations: 116 kB / 0.5668 GB, free: 14.11 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003055/0.1387, allocations: 159.3 kB / 0.5669 GB, free: 13.94 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004836/0.1392, allocations: 243 kB / 0.5671 GB, free: 13.69 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1392, allocations: 0 / 0.5671 GB, free: 13.69 MB / 430.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.000944/0.1402, allocations: 429.9 kB / 0.5676 GB, free: 13.26 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.1402, allocations: 8 kB / 0.5676 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.1402, allocations: 3.938 kB / 0.5676 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005077/0.1407, allocations: 192.8 kB / 0.5678 GB, free: 13.06 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002386/0.1409, allocations: 55.91 kB / 0.5678 GB, free: 13 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008658/0.1418, allocations: 0.7281 MB / 0.5685 GB, free: 12.25 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002902/0.1421, allocations: 40.02 kB / 0.5686 GB, free: 12.21 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.062e-05/0.1421, allocations: 12 kB / 0.5686 GB, free: 12.2 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (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 (30): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0001826/0.1423, allocations: 153.6 kB / 0.5687 GB, free: 12.04 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.862e-05/0.1424, allocations: 23.86 kB / 0.5687 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001047/0.1425, allocations: 30.66 kB / 0.5688 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.1425, allocations: 4 kB / 0.5688 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.1425, allocations: 0 / 0.5688 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.1425, allocations: 3.984 kB / 0.5688 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001752/0.1443, allocations: 0.9324 MB / 0.5697 GB, free: 10.98 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.1443, allocations: 0 / 0.5697 GB, free: 10.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002401/0.1445, allocations: 55.91 kB / 0.5697 GB, free: 10.92 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004172/0.1449, allocations: 184.6 kB / 0.5699 GB, free: 10.74 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.321e-05/0.145, allocations: 11.98 kB / 0.5699 GB, free: 10.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007438/0.1457, allocations: 0.689 MB / 0.5706 GB, free: 10.01 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.1457, allocations: 4.062 kB / 0.5706 GB, free: 10.01 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001198/0.1469, allocations: 0.6077 MB / 0.5712 GB, free: 9.379 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001558/0.1471, allocations: 140.8 kB / 0.5713 GB, free: 9.223 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.442e-05/0.1471, allocations: 8 kB / 0.5713 GB, free: 9.215 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002895/0.1474, allocations: 40.02 kB / 0.5714 GB, free: 9.176 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000122/0.1475, allocations: 51.88 kB / 0.5714 GB, free: 9.125 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.589e-05/0.1475, allocations: 7.984 kB / 0.5714 GB, free: 9.117 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000168/0.1477, allocations: 153.5 kB / 0.5716 GB, free: 8.969 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1477, allocations: 0 / 0.5716 GB, free: 8.969 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003945/0.1481, allocations: 75.98 kB / 0.5716 GB, free: 8.895 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001325/0.1494, allocations: 364.9 kB / 0.572 GB, free: 8.648 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0008139/0.1502, allocations: 291.4 kB / 0.5723 GB, free: 8.363 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.1503, allocations: 0 / 0.5723 GB, free: 8.363 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003788/0.1506, allocations: 148 kB / 0.5724 GB, free: 8.219 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004209/0.151, allocations: 35.84 kB / 0.5724 GB, free: 8.184 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00206/0.1531, allocations: 0.7973 MB / 0.5732 GB, free: 7.348 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004295/0.1535, allocations: 0.7603 MB / 0.574 GB, free: 6.562 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.147e-05/0.1536, allocations: 31.44 kB / 0.574 GB, free: 6.531 MB / 430.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1536, allocations: 0 / 0.574 GB, free: 6.531 MB / 430.1 MB Notification: Performance of Templates: time 0.0079/0.1615, allocations: 4.511 MB / 0.5784 GB, free: 2.016 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.210894083997118]