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.000787/0.000787, allocations: 96.94 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008498/0.0008499, allocations: 183.3 kB / 16.92 MB, free: 6.934 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.611/1.611, allocations: 205.4 MB / 223.1 MB, free: 5.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4239/0.4239, allocations: 43.58 MB / 315 MB, free: 8.777 MB / 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.0005782/0.0005788, allocations: 16 kB / 384.6 MB, free: 7.645 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1608/0.1614, allocations: 58.87 MB / 443.4 MB, free: 12.67 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.002757/0.1642, allocations: 1.928 MB / 445.4 MB, free: 10.73 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001467/0.1657, allocations: 0.7646 MB / 446.1 MB, free: 9.957 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001535/0.1659, allocations: 11.94 kB / 446.1 MB, free: 9.945 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002059/0.1661, allocations: 27.78 kB / 446.2 MB, free: 9.918 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001451/0.1662, allocations: 59.59 kB / 446.2 MB, free: 9.859 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003906/0.1666, allocations: 103.8 kB / 446.3 MB, free: 9.758 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003766/0.167, allocations: 319.3 kB / 446.6 MB, free: 9.445 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002458/0.1673, allocations: 69.02 kB / 446.7 MB, free: 9.379 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002194/0.1675, allocations: 131.5 kB / 446.8 MB, free: 9.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002438/0.1678, allocations: 143.4 kB / 447 MB, free: 9.109 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.978e-05/0.1678, allocations: 16 kB / 447 MB, free: 9.094 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000139/0.168, allocations: 67.89 kB / 447.1 MB, free: 9.027 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.152e-05/0.1681, allocations: 51.75 kB / 447.1 MB, free: 8.977 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001362/0.1682, allocations: 137.1 kB / 447.2 MB, free: 8.836 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003947/0.1686, allocations: 315.1 kB / 447.6 MB, free: 8.527 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1686, allocations: 0 / 447.6 MB, free: 8.527 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.609e-06/0.1686, allocations: 4 kB / 447.6 MB, free: 8.523 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.1686, allocations: 0 / 447.6 MB, free: 8.523 MB / 382.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.001002/0.1697, allocations: 0.5264 MB / 448.1 MB, free: 7.949 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.1697, allocations: 8.031 kB / 448.1 MB, free: 7.941 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.557e-05/0.1698, allocations: 24.66 kB / 448.1 MB, free: 7.918 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003279/0.1701, allocations: 247.9 kB / 448.4 MB, free: 7.637 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.677e-05/0.1702, allocations: 16.81 kB / 448.4 MB, free: 7.621 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.82e-05/0.1702, allocations: 24.38 kB / 448.4 MB, free: 7.598 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005251/0.1708, allocations: 263.5 kB / 448.7 MB, free: 7.336 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.851e-05/0.1708, allocations: 3.906 kB / 448.7 MB, free: 7.332 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.547e-05/0.1708, allocations: 12 kB / 448.7 MB, free: 7.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.1709, allocations: 8 kB / 448.7 MB, free: 7.312 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005064/0.1714, allocations: 241.6 kB / 448.9 MB, free: 7.078 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00136/0.1727, allocations: 0.744 MB / 449.7 MB, free: 6.281 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005333/0.1733, allocations: 254.4 kB / 449.9 MB, free: 6.023 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002636/0.1736, allocations: 132.9 kB / 450 MB, free: 5.891 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.113e-05/0.1736, allocations: 7.984 kB / 450 MB, free: 5.883 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.568e-05/0.1736, allocations: 42.55 kB / 450.1 MB, free: 5.832 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 3.096e-06/0.1736, allocations: 0 / 450.1 MB, free: 5.832 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.003197/0.1769, allocations: 1.508 MB / 451.6 MB, free: 4.215 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.716e-05/0.1769, allocations: 55.41 kB / 451.6 MB, free: 4.148 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002139/0.1771, allocations: 198.6 kB / 451.8 MB, free: 3.941 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.952e-05/0.1772, allocations: 37.7 kB / 451.9 MB, free: 3.898 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.1773, allocations: 140.6 kB / 452 MB, free: 3.758 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.555e-05/0.1774, allocations: 110.4 kB / 452.1 MB, free: 3.648 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.349e-05/0.1775, allocations: 37.7 kB / 452.2 MB, free: 3.605 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.1776, allocations: 330.8 kB / 452.5 MB, free: 3.273 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002547/0.1779, allocations: 127.9 kB / 452.6 MB, free: 3.148 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002868/0.1782, allocations: 171 kB / 452.8 MB, free: 2.969 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004574/0.1786, allocations: 255.1 kB / 453 MB, free: 2.707 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.1786, allocations: 0 / 453 MB, free: 2.707 MB / 382.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008624/0.1795, allocations: 449.9 kB / 453.5 MB, free: 2.258 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/0.1795, allocations: 4 kB / 453.5 MB, free: 2.254 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.1796, allocations: 0 / 453.5 MB, free: 2.254 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005885/0.1801, allocations: 232.7 kB / 453.7 MB, free: 2.023 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002377/0.1804, allocations: 63.89 kB / 453.8 MB, free: 1.961 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001044/0.1815, allocations: 0.7553 MB / 454.5 MB, free: 1.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002642/0.1817, allocations: 51.89 kB / 454.6 MB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.151e-05/0.1818, allocations: 12 kB / 454.6 MB, free: 1.117 MB / 382.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.0001754/0.182, allocations: 154.1 kB / 454.7 MB, free: 0.957 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.708e-05/0.182, allocations: 23.72 kB / 454.8 MB, free: 0.9336 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.458e-05/0.1821, allocations: 42.58 kB / 454.8 MB, free: 0.8906 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.1821, allocations: 4 kB / 454.8 MB, free: 0.8867 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.1821, allocations: 0 / 454.8 MB, free: 0.8867 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.1822, allocations: 3.984 kB / 454.8 MB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2923/0.4744, allocations: 0.9543 MB / 455.8 MB, free: 46.35 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.014e-05/0.4745, allocations: 0 / 455.8 MB, free: 46.35 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002789/0.4748, allocations: 54.27 kB / 455.8 MB, free: 46.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004513/0.4752, allocations: 220.3 kB / 456 MB, free: 46.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.04e-05/0.4753, allocations: 10.8 kB / 456 MB, free: 46.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005811/0.4759, allocations: 0.7086 MB / 456.7 MB, free: 45.83 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.4759, allocations: 3.031 kB / 456.7 MB, free: 45.83 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001016/0.4769, allocations: 0.6458 MB / 457.4 MB, free: 45.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001378/0.4771, allocations: 125.9 kB / 457.5 MB, free: 45.59 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.189e-05/0.4771, allocations: 11.66 kB / 457.5 MB, free: 45.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002547/0.4774, allocations: 51.31 kB / 457.6 MB, free: 45.59 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001166/0.4775, allocations: 45.77 kB / 457.6 MB, free: 45.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.362e-05/0.4775, allocations: 13.67 kB / 457.6 MB, free: 45.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001234/0.4777, allocations: 143.9 kB / 457.8 MB, free: 45.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4777, allocations: 0 / 457.8 MB, free: 45.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003768/0.478, allocations: 75.77 kB / 457.8 MB, free: 45.52 MB / 382.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.0001967/0.4782, allocations: 128.9 kB / 458 MB, free: 45.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006344/0.4789, allocations: 333.3 kB / 458.3 MB, free: 45.42 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.4789, allocations: 0 / 458.3 MB, free: 45.42 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003091/0.4792, allocations: 160.6 kB / 458.5 MB, free: 45.42 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000412/0.4796, allocations: 35.62 kB / 458.5 MB, free: 45.42 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001814/0.4815, allocations: 0.9565 MB / 459.4 MB, free: 45.04 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000215/0.4817, allocations: 0.7542 MB / 460.2 MB, free: 44.33 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.577e-05/0.4818, allocations: 20.52 kB / 460.2 MB, free: 44.33 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.209e-05/0.4818, allocations: 24.2 kB / 460.2 MB, free: 44.32 MB / 382.1 MB Notification: Performance of SimCode: time 3.01e-07/0.4819, allocations: 0 / 460.2 MB, free: 44.32 MB / 382.1 MB Notification: Performance of Templates: time 0.008294/0.4901, allocations: 4.732 MB / 465 MB, free: 44.06 MB / 382.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches