Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") translateModel(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00101/0.001016, allocations: 108.3 kB / 18.4 MB, free: 4.699 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.001066/0.001066, allocations: 191 kB / 19.34 MB, free: 3.766 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.368/1.368, allocations: 222.9 MB / 243 MB, free: 15.09 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.3261/0.3261, allocations: 44.17 MB / 337.4 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001227, allocations: 57 kB / 409.9 MB, free: 26.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1258, allocations: 60.83 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003471/0.1293, allocations: 2.241 MB / 472.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001268/0.1306, allocations: 0.7284 MB / 473.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001576/0.1308, allocations: 7.938 kB / 473.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001959/0.131, allocations: 39.66 kB / 473.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001559/0.1311, allocations: 67.41 kB / 473.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004154/0.1316, allocations: 139.7 kB / 473.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003587/0.1319, allocations: 335.2 kB / 474.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001778/0.1321, allocations: 76.59 kB / 474.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002339/0.1324, allocations: 143.5 kB / 474.5 MB, free: 9.875 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002442/0.1326, allocations: 159.5 kB / 474.6 MB, free: 9.719 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.789e-05/0.1327, allocations: 28 kB / 474.6 MB, free: 9.691 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001443/0.1328, allocations: 75.89 kB / 474.7 MB, free: 9.617 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.804e-05/0.1329, allocations: 71.8 kB / 474.8 MB, free: 9.547 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001337/0.1331, allocations: 123.4 kB / 474.9 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003657/0.1335, allocations: 342.9 kB / 475.2 MB, free: 9.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1335, allocations: 0 / 475.2 MB, free: 9.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1335, allocations: 0 / 475.2 MB, free: 9.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.977e-06/0.1335, allocations: 0 / 475.2 MB, free: 9.09 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.000872/0.1344, allocations: 0.5614 MB / 475.8 MB, free: 8.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.1344, allocations: 12.03 kB / 475.8 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.965e-05/0.1345, allocations: 32.5 kB / 475.9 MB, free: 8.438 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000315/0.1348, allocations: 239.9 kB / 476.1 MB, free: 8.164 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.948e-05/0.1348, allocations: 16.81 kB / 476.1 MB, free: 8.145 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.657e-05/0.1349, allocations: 24.38 kB / 476.1 MB, free: 8.121 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004866/0.1354, allocations: 267.5 kB / 476.4 MB, free: 7.859 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.1354, allocations: 8 kB / 476.4 MB, free: 7.852 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.725e-05/0.1355, allocations: 4 kB / 476.4 MB, free: 7.848 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-06/0.1355, allocations: 11.94 kB / 476.4 MB, free: 7.836 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004767/0.136, allocations: 237.5 kB / 476.6 MB, free: 7.602 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001268/0.1372, allocations: 0.7206 MB / 477.4 MB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004921/0.1377, allocations: 242.4 kB / 477.6 MB, free: 6.586 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002421/0.138, allocations: 132.8 kB / 477.7 MB, free: 6.453 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.402e-05/0.138, allocations: 16.06 kB / 477.7 MB, free: 6.438 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.434e-05/0.1381, allocations: 35 kB / 477.8 MB, free: 6.395 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.433e-06/0.1381, allocations: 0 / 477.8 MB, free: 6.395 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002865/0.1409, allocations: 1.455 MB / 479.2 MB, free: 4.824 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.68e-05/0.141, allocations: 55.41 kB / 479.3 MB, free: 4.758 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001843/0.1412, allocations: 203.1 kB / 479.5 MB, free: 4.547 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.402e-05/0.1412, allocations: 33.7 kB / 479.5 MB, free: 4.508 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.782e-05/0.1413, allocations: 136.6 kB / 479.7 MB, free: 4.371 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.116e-05/0.1414, allocations: 114.4 kB / 479.8 MB, free: 4.258 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001097/0.1415, allocations: 69.59 kB / 479.8 MB, free: 4.184 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.1416, allocations: 326.8 kB / 480.2 MB, free: 3.855 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000243/0.1419, allocations: 131.9 kB / 480.3 MB, free: 3.727 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002623/0.1421, allocations: 167.1 kB / 480.4 MB, free: 3.551 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004125/0.1426, allocations: 251.2 kB / 480.7 MB, free: 3.293 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.1426, allocations: 4 kB / 480.7 MB, free: 3.289 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007682/0.1434, allocations: 437.7 kB / 481.1 MB, free: 2.852 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.1434, allocations: 8 kB / 481.1 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.914e-06/0.1434, allocations: 0 / 481.1 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004985/0.1439, allocations: 232.7 kB / 481.4 MB, free: 2.613 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002303/0.1441, allocations: 51.91 kB / 481.4 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007863/0.1449, allocations: 0.7629 MB / 482.2 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002459/0.1452, allocations: 35.98 kB / 482.2 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.324e-05/0.1452, allocations: 12 kB / 482.2 MB, free: 1.73 MB / 350.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,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0001655/0.1454, allocations: 144.6 kB / 482.4 MB, free: 1.582 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.851e-05/0.1455, allocations: 23.88 kB / 482.4 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.491e-05/0.1456, allocations: 42.58 kB / 482.4 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.147e-06/0.1456, allocations: 4 kB / 482.4 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.1456, allocations: 0 / 482.4 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.1456, allocations: 0 / 482.4 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001541/0.1472, allocations: 0.944 MB / 483.4 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.1472, allocations: 0 / 483.4 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002352/0.1474, allocations: 55.91 kB / 483.4 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000392/0.1478, allocations: 212.7 kB / 483.6 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.134e-05/0.1479, allocations: 11.94 kB / 483.6 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006432/0.1485, allocations: 0.72 MB / 484.4 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.1485, allocations: 3.938 kB / 484.4 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001166/0.1497, allocations: 0.6302 MB / 485 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001513/0.1499, allocations: 128.9 kB / 485.1 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.924e-05/0.1499, allocations: 19.92 kB / 485.1 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002548/0.1502, allocations: 31.97 kB / 485.2 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/0.1503, allocations: 47.92 kB / 485.2 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.547e-05/0.1504, allocations: 7.984 kB / 485.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001281/0.1505, allocations: 148.2 kB / 485.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1505, allocations: 0 / 485.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003677/0.1509, allocations: 84 kB / 485.5 MB, free: 14.34 MB / 366.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,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001966/0.1511, allocations: 127.1 kB / 485.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007284/0.1518, allocations: 327.7 kB / 485.9 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1518, allocations: 0 / 485.9 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003351/0.1522, allocations: 160.1 kB / 486.1 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004052/0.1526, allocations: 40.16 kB / 486.1 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001818/0.1544, allocations: 0.7347 MB / 486.8 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003291/0.1548, allocations: 0.7525 MB / 487.6 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.93e-05/0.1549, allocations: 22.3 kB / 487.6 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.814e-05/0.1549, allocations: 19.44 kB / 487.6 MB, free: 12.12 MB / 366.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1549, allocations: 0 / 487.6 MB, free: 12.12 MB / 366.1 MB Notification: Performance of Templates: time 0.009418/0.1643, allocations: 5.073 MB / 492.7 MB, free: 7.047 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches