Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_3.2.3_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_3.2.3_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.00129/0.001291, allocations: 106.4 kB / 17.03 MB, free: 5.703 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.001266/0.001266, allocations: 194.9 kB / 17.96 MB, free: 5.082 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.493/1.493, allocations: 205.1 MB / 223.8 MB, free: 12.26 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.261/0.261, allocations: 43.52 MB / 314.7 MB, free: 476 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.001524/0.001524, allocations: 70.31 kB / 384.2 MB, free: 56.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1415, allocations: 57.79 MB / 442 MB, free: 6.137 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003235/0.1448, allocations: 2.23 MB / 444.2 MB, free: 3.891 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001118/0.1459, allocations: 0.776 MB / 445 MB, free: 3.105 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001058/0.146, allocations: 4 kB / 445 MB, free: 3.102 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001853/0.1462, allocations: 35.66 kB / 445 MB, free: 3.066 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001048/0.1464, allocations: 67.39 kB / 445.1 MB, free: 3 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003743/0.1467, allocations: 135.7 kB / 445.2 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002688/0.147, allocations: 339.2 kB / 445.5 MB, free: 2.535 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001768/0.1472, allocations: 85.97 kB / 445.6 MB, free: 2.449 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000158/0.1474, allocations: 147.5 kB / 445.8 MB, free: 2.305 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000177/0.1475, allocations: 151.5 kB / 445.9 MB, free: 2.156 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.616e-05/0.1476, allocations: 31.94 kB / 445.9 MB, free: 2.125 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001183/0.1477, allocations: 75.94 kB / 446 MB, free: 2.051 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.904e-05/0.1478, allocations: 71.69 kB / 446.1 MB, free: 1.98 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001015/0.1479, allocations: 127.4 kB / 446.2 MB, free: 1.855 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003148/0.1482, allocations: 346.8 kB / 446.5 MB, free: 1.516 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.1482, allocations: 4 kB / 446.5 MB, free: 1.512 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1483, allocations: 0 / 446.5 MB, free: 1.512 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.1483, allocations: 4 kB / 446.6 MB, free: 1.508 MB / 318.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.0007806/0.1491, allocations: 0.5459 MB / 447.1 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.1491, allocations: 11.89 kB / 447.1 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.088e-05/0.1492, allocations: 28.66 kB / 447.1 MB, free: 0.875 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002838/0.1494, allocations: 253 kB / 447.4 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.122e-05/0.1495, allocations: 20.81 kB / 447.4 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.192e-05/0.1495, allocations: 24.28 kB / 447.4 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000409/0.15, allocations: 267.5 kB / 447.7 MB, free: 288 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.15, allocations: 0 / 447.7 MB, free: 288 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.412e-05/0.15, allocations: 8 kB / 447.7 MB, free: 280 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.15, allocations: 4 kB / 447.7 MB, free: 276 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003926/0.1504, allocations: 237.6 kB / 447.9 MB, free: 40 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001274/0.1517, allocations: 0.7129 MB / 448.6 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000528/0.1522, allocations: 250.4 kB / 448.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002506/0.1525, allocations: 140.8 kB / 449 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.166e-05/0.1526, allocations: 7.984 kB / 449 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.438e-05/0.1526, allocations: 34.5 kB / 449.1 MB, free: 14.83 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.412e-06/0.1526, allocations: 4 kB / 449.1 MB, free: 14.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.003088/0.1557, allocations: 1.452 MB / 450.5 MB, free: 13.26 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.246e-05/0.1558, allocations: 55.41 kB / 450.6 MB, free: 13.2 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002083/0.156, allocations: 198.6 kB / 450.8 MB, free: 12.99 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.676e-05/0.156, allocations: 37.7 kB / 450.8 MB, free: 12.95 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.805e-05/0.1561, allocations: 136.6 kB / 450.9 MB, free: 12.81 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.313e-05/0.1562, allocations: 110.4 kB / 451.1 MB, free: 12.7 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001132/0.1564, allocations: 69.69 kB / 451.1 MB, free: 12.62 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.1565, allocations: 334.8 kB / 451.4 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002525/0.1568, allocations: 123.7 kB / 451.6 MB, free: 12.17 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000269/0.157, allocations: 163.4 kB / 451.7 MB, free: 12 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004162/0.1575, allocations: 255.2 kB / 452 MB, free: 11.73 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1575, allocations: 0 / 452 MB, free: 11.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007597/0.1582, allocations: 441.6 kB / 452.4 MB, free: 11.29 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.1583, allocations: 5.25 kB / 452.4 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.1583, allocations: 0 / 452.4 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005173/0.1588, allocations: 240.7 kB / 452.6 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002285/0.1591, allocations: 55.91 kB / 452.7 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007576/0.1598, allocations: 0.7513 MB / 453.5 MB, free: 10.22 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002296/0.1601, allocations: 36.05 kB / 453.5 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.399e-05/0.1601, allocations: 16 kB / 453.5 MB, free: 10.17 MB / 334.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.0001594/0.1603, allocations: 150.3 kB / 453.7 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.399e-05/0.1603, allocations: 19.72 kB / 453.7 MB, free: 9.992 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.964e-05/0.1604, allocations: 42.58 kB / 453.7 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.186e-05/0.1604, allocations: 4 kB / 453.7 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.477e-06/0.1605, allocations: 0 / 453.7 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.1605, allocations: 0 / 453.7 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001671/0.1622, allocations: 0.9556 MB / 454.7 MB, free: 8.926 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.1622, allocations: 4 kB / 454.7 MB, free: 8.922 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002333/0.1624, allocations: 51.91 kB / 454.7 MB, free: 8.871 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003849/0.1628, allocations: 212.7 kB / 454.9 MB, free: 8.66 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.878e-05/0.1628, allocations: 12 kB / 454.9 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006058/0.1635, allocations: 0.7124 MB / 455.7 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1635, allocations: 0 / 455.7 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001055/0.1645, allocations: 0.634 MB / 456.3 MB, free: 7.254 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001295/0.1647, allocations: 132.8 kB / 456.4 MB, free: 7.105 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.249e-05/0.1647, allocations: 15.94 kB / 456.4 MB, free: 7.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002305/0.165, allocations: 27.97 kB / 456.5 MB, free: 7.062 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/0.1651, allocations: 51.91 kB / 456.5 MB, free: 7.012 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.697e-05/0.1651, allocations: 20.05 kB / 456.5 MB, free: 6.992 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001427/0.1653, allocations: 144.2 kB / 456.7 MB, free: 6.852 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1653, allocations: 0 / 456.7 MB, free: 6.852 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004021/0.1657, allocations: 72 kB / 456.7 MB, free: 6.781 MB / 334.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.0002623/0.166, allocations: 131.2 kB / 456.9 MB, free: 6.645 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007447/0.1667, allocations: 323.6 kB / 457.2 MB, free: 6.328 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.1667, allocations: 4.125 kB / 457.2 MB, free: 6.324 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003289/0.1671, allocations: 168 kB / 457.4 MB, free: 6.16 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004111/0.1675, allocations: 44.14 kB / 457.4 MB, free: 6.121 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001847/0.1694, allocations: 0.7353 MB / 458.1 MB, free: 5.355 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003462/0.1697, allocations: 0.7524 MB / 458.9 MB, free: 4.578 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.392e-05/0.1698, allocations: 26.28 kB / 458.9 MB, free: 4.555 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.63e-05/0.1699, allocations: 27.36 kB / 458.9 MB, free: 4.527 MB / 334.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1699, allocations: 0 / 458.9 MB, free: 4.527 MB / 334.1 MB Notification: Performance of Templates: time 0.009313/0.1792, allocations: 5.071 MB / 464 MB, free: 15.46 MB / 350.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches