Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00148/0.00148, allocations: 177.9 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.526/1.526, allocations: 205.4 MB / 222.6 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009187/0.0009188, allocations: 96.86 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3685/0.3685, allocations: 43.56 MB / 362.7 MB, free: 52.09 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007024/0.0007026, allocations: 12 kB / 431.4 MB, free: 6.152 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1563/0.1571, allocations: 58.84 MB / 490.2 MB, free: 11.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.002385/0.1595, allocations: 1.874 MB / 492.1 MB, free: 9.34 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001126/0.1607, allocations: 0.7376 MB / 492.8 MB, free: 8.594 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.945e-05/0.1608, allocations: 4 kB / 492.8 MB, free: 8.59 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001701/0.161, allocations: 31.78 kB / 492.9 MB, free: 8.559 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001063/0.1611, allocations: 55.53 kB / 492.9 MB, free: 8.504 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003575/0.1614, allocations: 99.86 kB / 493 MB, free: 8.406 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003357/0.1618, allocations: 295.3 kB / 493.3 MB, free: 8.113 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001922/0.162, allocations: 68.66 kB / 493.4 MB, free: 8.047 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001985/0.1622, allocations: 123.5 kB / 493.5 MB, free: 7.926 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002269/0.1624, allocations: 139.5 kB / 493.6 MB, free: 7.789 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.106e-05/0.1625, allocations: 16 kB / 493.7 MB, free: 7.773 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001327/0.1626, allocations: 51.95 kB / 493.7 MB, free: 7.723 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.077e-05/0.1627, allocations: 47.83 kB / 493.8 MB, free: 7.676 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 7.057e-05/0.1628, allocations: 65.58 kB / 493.8 MB, free: 7.605 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002818/0.1631, allocations: 239.6 kB / 494.1 MB, free: 7.371 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.1631, allocations: 8 kB / 494.1 MB, free: 7.363 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.245e-06/0.1631, allocations: 0 / 494.1 MB, free: 7.363 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.1631, allocations: 0 / 494.1 MB, free: 7.363 MB / 378.7 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.0008953/0.164, allocations: 0.5222 MB / 494.6 MB, free: 6.793 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.1641, allocations: 15.97 kB / 494.6 MB, free: 6.777 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.493e-05/0.1641, allocations: 27.66 kB / 494.6 MB, free: 6.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002819/0.1644, allocations: 246.6 kB / 494.9 MB, free: 6.469 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.364e-05/0.1645, allocations: 16.44 kB / 494.9 MB, free: 6.453 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.276e-05/0.1645, allocations: 16 kB / 494.9 MB, free: 6.438 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005074/0.165, allocations: 263.2 kB / 495.2 MB, free: 6.172 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.1651, allocations: 11.89 kB / 495.2 MB, free: 6.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.029e-05/0.1651, allocations: 12 kB / 495.2 MB, free: 6.148 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.1651, allocations: 7.953 kB / 495.2 MB, free: 6.141 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004641/0.1656, allocations: 237.6 kB / 495.4 MB, free: 5.91 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001359/0.167, allocations: 0.748 MB / 496.2 MB, free: 5.109 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005121/0.1675, allocations: 246.4 kB / 496.4 MB, free: 4.859 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002523/0.1677, allocations: 148.8 kB / 496.6 MB, free: 4.711 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.847e-05/0.1678, allocations: 4 kB / 496.6 MB, free: 4.707 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.437e-05/0.1678, allocations: 34.56 kB / 496.6 MB, free: 4.664 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 1.273e-06/0.1678, allocations: 0 / 496.6 MB, free: 4.664 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.003025/0.1709, allocations: 1.504 MB / 498.1 MB, free: 3.051 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.791e-05/0.1709, allocations: 55.41 kB / 498.1 MB, free: 2.984 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001905/0.1711, allocations: 198.6 kB / 498.3 MB, free: 2.777 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.455e-05/0.1711, allocations: 33.69 kB / 498.4 MB, free: 2.738 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.108e-05/0.1712, allocations: 136.6 kB / 498.5 MB, free: 2.602 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.791e-05/0.1713, allocations: 114.5 kB / 498.6 MB, free: 2.488 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.864e-05/0.1714, allocations: 7.938 kB / 498.6 MB, free: 2.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.1715, allocations: 334.8 kB / 499 MB, free: 2.145 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002464/0.1717, allocations: 123.9 kB / 499.1 MB, free: 2.023 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002686/0.172, allocations: 171.1 kB / 499.2 MB, free: 1.844 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002307/0.1723, allocations: 115.8 kB / 499.4 MB, free: 1.73 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1723, allocations: 0 / 499.4 MB, free: 1.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008385/0.1731, allocations: 453.9 kB / 499.8 MB, free: 1.277 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.1731, allocations: 4 kB / 499.8 MB, free: 1.273 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.1732, allocations: 4 kB / 499.8 MB, free: 1.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005175/0.1737, allocations: 236.7 kB / 0.4883 GB, free: 1.035 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000219/0.1739, allocations: 55.91 kB / 0.4884 GB, free: 0.9805 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007462/0.1747, allocations: 0.7475 MB / 0.4891 GB, free: 212 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002787/0.175, allocations: 47.95 kB / 0.4891 GB, free: 164 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.206e-05/0.175, allocations: 20.05 kB / 0.4892 GB, free: 144 kB / 378.7 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,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.24/0.415, allocations: 142.3 kB / 0.4893 GB, free: 43.26 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.735e-05/0.4151, allocations: 22.22 kB / 0.4893 GB, free: 43.26 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001194/0.4152, allocations: 33.41 kB / 0.4894 GB, free: 43.25 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.4152, allocations: 3.859 kB / 0.4894 GB, free: 43.25 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-05/0.4153, allocations: 5.266 kB / 0.4894 GB, free: 43.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.4153, allocations: 0.7031 kB / 0.4894 GB, free: 43.25 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00179/0.4171, allocations: 0.9511 MB / 0.4903 GB, free: 42.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/0.4171, allocations: 1.625 kB / 0.4903 GB, free: 42.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002815/0.4174, allocations: 54.66 kB / 0.4903 GB, free: 42.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005745/0.418, allocations: 216.1 kB / 0.4906 GB, free: 42.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.521e-05/0.418, allocations: 12.69 kB / 0.4906 GB, free: 42.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006415/0.4187, allocations: 0.7106 MB / 0.4913 GB, free: 42.39 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.4187, allocations: 1.125 kB / 0.4913 GB, free: 42.39 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001304/0.42, allocations: 0.6414 MB / 0.4919 GB, free: 42.24 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001373/0.4201, allocations: 127.4 kB / 0.492 GB, free: 42.14 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.356e-05/0.4202, allocations: 10.78 kB / 0.492 GB, free: 42.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002835/0.4205, allocations: 50.22 kB / 0.4921 GB, free: 42.14 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001526/0.4206, allocations: 62.34 kB / 0.4921 GB, free: 42.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.032e-05/0.4207, allocations: 15.25 kB / 0.4921 GB, free: 42.14 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001392/0.4208, allocations: 145.8 kB / 0.4923 GB, free: 42.07 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4208, allocations: 2.953 kB / 0.4923 GB, free: 42.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003799/0.4212, allocations: 76.84 kB / 0.4924 GB, free: 42.07 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002071/0.4214, allocations: 120.5 kB / 0.4925 GB, free: 41.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007239/0.4222, allocations: 325.7 kB / 0.4928 GB, free: 41.98 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.4222, allocations: 0 / 0.4928 GB, free: 41.98 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003306/0.4225, allocations: 166.4 kB / 0.4929 GB, free: 41.96 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004032/0.4229, allocations: 31.16 kB / 0.493 GB, free: 41.96 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002092/0.425, allocations: 0.9634 MB / 0.4939 GB, free: 41.55 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002777/0.4253, allocations: 0.7511 MB / 0.4946 GB, free: 40.85 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.774e-05/0.4254, allocations: 22.88 kB / 0.4947 GB, free: 40.84 MB / 378.7 MB Notification: Performance of SimCode: time 1.813e-06/0.4254, allocations: 0 / 0.4947 GB, free: 40.84 MB / 378.7 MB Notification: Performance of Templates: time 0.007525/0.4329, allocations: 4.062 MB / 0.4986 GB, free: 40.53 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches