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.00112/0.00112, allocations: 108.2 kB / 18.39 MB, free: 4.629 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.00109/0.001091, allocations: 182.9 kB / 19.33 MB, free: 3.699 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.08 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.2448/0.2448, allocations: 44.19 MB / 337.4 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001312, allocations: 66.06 kB / 409.9 MB, free: 26.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1289, allocations: 60.81 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.00372/0.1327, allocations: 2.241 MB / 472.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001256/0.1339, allocations: 0.7284 MB / 473.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001121/0.1341, allocations: 4 kB / 473.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002195/0.1343, allocations: 35.66 kB / 473.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001328/0.1345, allocations: 67.41 kB / 473.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004146/0.1349, allocations: 139.7 kB / 473.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003159/0.1352, allocations: 335.2 kB / 474.2 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001816/0.1354, allocations: 84.56 kB / 474.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001934/0.1356, allocations: 139.6 kB / 474.4 MB, free: 9.871 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002087/0.1358, allocations: 167.4 kB / 474.6 MB, free: 9.707 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.438e-05/0.1359, allocations: 31.94 kB / 474.6 MB, free: 9.676 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001375/0.136, allocations: 75.89 kB / 474.7 MB, free: 9.602 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001187/0.1362, allocations: 63.8 kB / 474.8 MB, free: 9.539 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001398/0.1363, allocations: 131.4 kB / 474.9 MB, free: 9.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003782/0.1367, allocations: 330.9 kB / 475.2 MB, free: 9.086 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1367, allocations: 0 / 475.2 MB, free: 9.086 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1367, allocations: 4 kB / 475.2 MB, free: 9.082 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.1367, allocations: 0 / 475.2 MB, free: 9.082 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.0008864/0.1376, allocations: 0.5614 MB / 475.8 MB, free: 8.473 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.1377, allocations: 8.031 kB / 475.8 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.267e-05/0.1377, allocations: 32.5 kB / 475.8 MB, free: 8.434 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003352/0.1381, allocations: 239.9 kB / 476.1 MB, free: 8.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001108/0.1382, allocations: 20.81 kB / 476.1 MB, free: 8.137 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.19e-05/0.1383, allocations: 24.38 kB / 476.1 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004938/0.1388, allocations: 267.5 kB / 476.4 MB, free: 7.852 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/0.1388, allocations: 0 / 476.4 MB, free: 7.852 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.026e-05/0.1388, allocations: 12 kB / 476.4 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.1388, allocations: 11.92 kB / 476.4 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005041/0.1394, allocations: 237.5 kB / 476.6 MB, free: 7.594 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001365/0.1407, allocations: 0.7206 MB / 477.3 MB, free: 6.824 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005142/0.1413, allocations: 238.5 kB / 477.6 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002576/0.1415, allocations: 143.9 kB / 477.7 MB, free: 6.441 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.27e-05/0.1416, allocations: 4 kB / 477.7 MB, free: 6.438 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.509e-05/0.1416, allocations: 39 kB / 477.8 MB, free: 6.391 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.402e-06/0.1416, allocations: 0 / 477.8 MB, free: 6.391 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.003147/0.1448, allocations: 1.463 MB / 479.2 MB, free: 4.812 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.18e-05/0.1448, allocations: 55.41 kB / 479.3 MB, free: 4.746 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002089/0.145, allocations: 203.1 kB / 479.5 MB, free: 4.535 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.828e-05/0.1451, allocations: 37.7 kB / 479.5 MB, free: 4.492 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.1452, allocations: 132.7 kB / 479.6 MB, free: 4.359 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.669e-05/0.1453, allocations: 110.4 kB / 479.8 MB, free: 4.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001174/0.1454, allocations: 65.61 kB / 479.8 MB, free: 4.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.1456, allocations: 338.8 kB / 480.2 MB, free: 3.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002438/0.1458, allocations: 119.9 kB / 480.3 MB, free: 3.723 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002822/0.1461, allocations: 167.1 kB / 480.4 MB, free: 3.547 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004494/0.1466, allocations: 255.3 kB / 480.7 MB, free: 3.285 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.1466, allocations: 0 / 480.7 MB, free: 3.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007772/0.1474, allocations: 437.7 kB / 481.1 MB, free: 2.848 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.1474, allocations: 4 kB / 481.1 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.1474, allocations: 3.938 kB / 481.1 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004941/0.1479, allocations: 236.7 kB / 481.3 MB, free: 2.605 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002268/0.1482, allocations: 55.91 kB / 481.4 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007421/0.1489, allocations: 0.7513 MB / 482.2 MB, free: 1.773 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002387/0.1492, allocations: 39.98 kB / 482.2 MB, free: 1.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.957e-05/0.1492, allocations: 11.98 kB / 482.2 MB, free: 1.723 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.0001686/0.1494, allocations: 156.7 kB / 482.4 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.369e-05/0.1494, allocations: 15.81 kB / 482.4 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.154e-05/0.1495, allocations: 38.59 kB / 482.4 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.1495, allocations: 7.984 kB / 482.4 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.1495, allocations: 0 / 482.4 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.1495, allocations: 0 / 482.4 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001559/0.1511, allocations: 0.944 MB / 483.4 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.1511, allocations: 4 kB / 483.4 MB, free: 496 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002157/0.1514, allocations: 47.91 kB / 483.4 MB, free: 448 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003872/0.1517, allocations: 212.7 kB / 483.6 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.819e-05/0.1518, allocations: 11.98 kB / 483.6 MB, free: 220 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000628/0.1524, allocations: 0.7241 MB / 484.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.1524, allocations: 3.938 kB / 484.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001037/0.1535, allocations: 0.6301 MB / 485 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001386/0.1536, allocations: 128.8 kB / 485.1 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.421e-05/0.1537, allocations: 15.94 kB / 485.1 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00024/0.1539, allocations: 31.95 kB / 485.2 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001171/0.1541, allocations: 47.92 kB / 485.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.626e-05/0.1541, allocations: 11.98 kB / 485.2 MB, free: 14.56 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001352/0.1542, allocations: 148.3 kB / 485.4 MB, free: 14.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.463e-06/0.1542, allocations: 4 kB / 485.4 MB, free: 14.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004183/0.1547, allocations: 79.94 kB / 485.4 MB, free: 14.33 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.0002084/0.1549, allocations: 127.1 kB / 485.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007125/0.1556, allocations: 327.7 kB / 485.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1556, allocations: 0 / 485.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003291/0.156, allocations: 164.3 kB / 486.1 MB, free: 13.72 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004137/0.1564, allocations: 38.88 kB / 486.1 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001794/0.1582, allocations: 0.7386 MB / 486.8 MB, free: 12.92 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003309/0.1585, allocations: 0.7486 MB / 487.6 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.128e-05/0.1586, allocations: 26.28 kB / 487.6 MB, free: 12.12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.862e-05/0.1587, allocations: 19.44 kB / 487.6 MB, free: 12.1 MB / 366.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1587, allocations: 0 / 487.6 MB, free: 12.1 MB / 366.1 MB Notification: Performance of Templates: time 0.009447/0.1682, allocations: 5.081 MB / 492.7 MB, free: 7.027 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 cvode -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