Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001641/0.001641, allocations: 109.8 kB / 17.33 MB, free: 5.988 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002153/0.002153, allocations: 205.8 kB / 18.26 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 227.4 MB / 246.4 MB, free: 10.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2167/0.2167, allocations: 46.1 MB / 343.8 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 80.69 kB / 417 MB, free: 20.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1321, allocations: 62.44 MB / 479.5 MB, free: 5.641 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003856/0.136, allocations: 2.403 MB / 481.9 MB, free: 3.223 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001382/0.1374, allocations: 0.892 MB / 482.8 MB, free: 2.324 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.1375, allocations: 4 kB / 482.8 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002825/0.1378, allocations: 47.7 kB / 482.8 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001679/0.138, allocations: 67.53 kB / 482.9 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003041/0.1383, allocations: 119.8 kB / 483 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003482/0.1386, allocations: 343.4 kB / 483.3 MB, free: 1.754 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001905/0.1388, allocations: 94.78 kB / 483.4 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002528/0.1391, allocations: 151.5 kB / 483.6 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002169/0.1393, allocations: 167.4 kB / 483.7 MB, free: 1.348 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.479e-05/0.1394, allocations: 28 kB / 483.8 MB, free: 1.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001544/0.1395, allocations: 87.97 kB / 483.9 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001051/0.1397, allocations: 79.67 kB / 483.9 MB, free: 1.156 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001451/0.1398, allocations: 139.3 kB / 484.1 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003933/0.1402, allocations: 371.1 kB / 484.4 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1402, allocations: 4 kB / 484.4 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1402, allocations: 0 / 484.4 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.1402, allocations: 0 / 484.4 MB, free: 0.6523 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0009195/0.1412, allocations: 0.5732 MB / 485 MB, free: 32 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.1412, allocations: 13.11 kB / 485 MB, free: 20 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002004/0.1414, allocations: 36.69 kB / 485.1 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002844/0.1417, allocations: 260.4 kB / 485.3 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.945e-05/0.1417, allocations: 20.94 kB / 485.3 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.249e-05/0.1418, allocations: 24.36 kB / 485.4 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005285/0.1423, allocations: 269.1 kB / 485.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/0.1424, allocations: 0 / 485.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.421e-05/0.1424, allocations: 11.98 kB / 485.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.839e-06/0.1424, allocations: 7.984 kB / 485.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005161/0.1429, allocations: 234.1 kB / 485.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001372/0.1443, allocations: 0.7521 MB / 486.6 MB, free: 14.33 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005448/0.1449, allocations: 242.4 kB / 486.9 MB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002579/0.1452, allocations: 139.9 kB / 487 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.482e-05/0.1452, allocations: 4 kB / 487 MB, free: 13.94 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.649e-05/0.1452, allocations: 34.56 kB / 487 MB, free: 13.9 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.483e-06/0.1452, allocations: 0 / 487 MB, free: 13.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.003274/0.1485, allocations: 1.418 MB / 488.5 MB, free: 12.37 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.283e-05/0.1486, allocations: 59.41 kB / 488.5 MB, free: 12.3 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002943/0.1489, allocations: 211.7 kB / 488.7 MB, free: 12.08 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.219e-05/0.149, allocations: 37.7 kB / 488.8 MB, free: 12.04 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001329/0.1491, allocations: 132.7 kB / 488.9 MB, free: 11.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001436/0.1493, allocations: 122.4 kB / 489 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001436/0.1494, allocations: 65.59 kB / 489.1 MB, free: 11.71 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.1496, allocations: 338.8 kB / 489.4 MB, free: 11.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002463/0.1498, allocations: 120 kB / 489.5 MB, free: 11.26 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002872/0.1501, allocations: 167.3 kB / 489.7 MB, free: 11.08 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004251/0.1506, allocations: 227.2 kB / 489.9 MB, free: 10.85 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.1506, allocations: 0 / 489.9 MB, free: 10.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008881/0.1515, allocations: 437.8 kB / 490.3 MB, free: 10.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.011e-05/0.1515, allocations: 10.66 kB / 490.3 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.399e-05/0.1515, allocations: 3.938 kB / 490.3 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006569/0.1522, allocations: 200.7 kB / 490.5 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002382/0.1525, allocations: 51.91 kB / 490.6 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008647/0.1533, allocations: 0.7319 MB / 491.3 MB, free: 9.391 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002502/0.1536, allocations: 44.02 kB / 491.4 MB, free: 9.348 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.704e-05/0.1536, allocations: 8 kB / 491.4 MB, free: 9.34 MB / 366.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,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0001726/0.1538, allocations: 145.8 kB / 491.5 MB, free: 9.188 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.98e-05/0.1539, allocations: 27.66 kB / 491.5 MB, free: 9.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.717e-05/0.154, allocations: 34.66 kB / 491.6 MB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.154, allocations: 4 kB / 491.6 MB, free: 9.121 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.154, allocations: 0 / 491.6 MB, free: 9.121 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.154, allocations: 3.984 kB / 491.6 MB, free: 9.117 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001615/0.1556, allocations: 0.9401 MB / 492.5 MB, free: 8.109 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.1556, allocations: 4.031 kB / 492.5 MB, free: 8.105 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002361/0.1559, allocations: 55.89 kB / 492.6 MB, free: 8.051 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003693/0.1563, allocations: 168.7 kB / 492.7 MB, free: 7.883 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.878e-05/0.1563, allocations: 11.98 kB / 492.8 MB, free: 7.871 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006509/0.157, allocations: 0.7006 MB / 493.5 MB, free: 7.145 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.157, allocations: 0 / 493.5 MB, free: 7.145 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001098/0.1581, allocations: 0.6145 MB / 494.1 MB, free: 6.508 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001283/0.1582, allocations: 132.8 kB / 494.2 MB, free: 6.359 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.696e-05/0.1583, allocations: 8 kB / 494.2 MB, free: 6.352 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002536/0.1585, allocations: 35.95 kB / 494.2 MB, free: 6.316 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001308/0.1587, allocations: 43.92 kB / 494.3 MB, free: 6.273 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.534e-05/0.1587, allocations: 12 kB / 494.3 MB, free: 6.262 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001431/0.1589, allocations: 153.5 kB / 494.5 MB, free: 6.113 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1589, allocations: 4.062 kB / 494.5 MB, free: 6.109 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003624/0.1592, allocations: 72 kB / 494.5 MB, free: 6.039 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,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009471/0.1602, allocations: 368.3 kB / 494.9 MB, free: 5.789 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007885/0.161, allocations: 319.7 kB / 495.2 MB, free: 5.477 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.161, allocations: 0 / 495.2 MB, free: 5.477 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003365/0.1613, allocations: 159.9 kB / 495.4 MB, free: 5.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004279/0.1618, allocations: 41.23 kB / 495.4 MB, free: 5.285 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002062/0.1639, allocations: 0.8668 MB / 496.3 MB, free: 4.395 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003824/0.1642, allocations: 0.7564 MB / 497 MB, free: 3.609 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001082/0.1644, allocations: 30.28 kB / 497 MB, free: 3.578 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.283e-05/0.1644, allocations: 27.42 kB / 497.1 MB, free: 3.551 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1645, allocations: 0 / 497.1 MB, free: 3.551 MB / 366.1 MB Notification: Performance of Templates: time 0.01008/0.1745, allocations: 5.121 MB / 0.4904 GB, free: 14.44 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches