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.001343/0.001343, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00155/0.00155, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2319/0.2319, allocations: 46.1 MB / 344.1 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 75.39 kB / 417.6 MB, free: 19.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1389, allocations: 62.45 MB / 480 MB, free: 5.246 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003956/0.1429, allocations: 2.359 MB / 482.4 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001529/0.1444, allocations: 0.8997 MB / 483.3 MB, free: 1.965 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.1446, allocations: 4 kB / 483.3 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002779/0.1448, allocations: 47.52 kB / 483.3 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001867/0.145, allocations: 83.39 kB / 483.4 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000346/0.1454, allocations: 147.6 kB / 483.6 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003387/0.1457, allocations: 351.3 kB / 483.9 MB, free: 1.344 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001912/0.1459, allocations: 76.94 kB / 484 MB, free: 1.266 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002476/0.1462, allocations: 159.5 kB / 484.1 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002317/0.1464, allocations: 163.4 kB / 484.3 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.086e-05/0.1465, allocations: 28 kB / 484.3 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001566/0.1467, allocations: 87.97 kB / 484.4 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001292/0.1468, allocations: 71.75 kB / 484.5 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001363/0.147, allocations: 139.3 kB / 484.6 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004098/0.1474, allocations: 371.1 kB / 485 MB, free: 272 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1474, allocations: 0 / 485 MB, free: 272 kB / 350.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1474, allocations: 0 / 485 MB, free: 272 kB / 350.1 MB Notification: Performance of Transformations before backend: time 9.177e-06/0.1474, allocations: 0 / 485 MB, free: 272 kB / 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.0009498/0.1484, allocations: 0.5849 MB / 485.6 MB, free: 15.63 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.1484, allocations: 9.109 kB / 485.6 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001898/0.1486, allocations: 36.64 kB / 485.6 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000279/0.1489, allocations: 256.4 kB / 485.8 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.084e-05/0.1489, allocations: 20.94 kB / 485.9 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.204e-05/0.149, allocations: 20.38 kB / 485.9 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000504/0.1495, allocations: 277.1 kB / 486.2 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.1495, allocations: 0 / 486.2 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.125e-05/0.1496, allocations: 12 kB / 486.2 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.515e-06/0.1496, allocations: 4 kB / 486.2 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000507/0.1501, allocations: 230.1 kB / 486.4 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001368/0.1515, allocations: 0.7482 MB / 487.1 MB, free: 13.94 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005478/0.152, allocations: 246.4 kB / 487.4 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002535/0.1523, allocations: 132.8 kB / 487.5 MB, free: 13.56 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.007e-05/0.1523, allocations: 8.062 kB / 487.5 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.179e-05/0.1524, allocations: 34.56 kB / 487.6 MB, free: 13.51 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.433e-06/0.1524, allocations: 0 / 487.6 MB, free: 13.51 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.003138/0.1555, allocations: 1.421 MB / 489 MB, free: 11.97 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.402e-05/0.1556, allocations: 55.41 kB / 489 MB, free: 11.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002184/0.1558, allocations: 207.7 kB / 489.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.78e-05/0.1558, allocations: 37.7 kB / 489.3 MB, free: 11.65 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.455e-05/0.1559, allocations: 136.7 kB / 489.4 MB, free: 11.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.931e-05/0.156, allocations: 122.4 kB / 489.5 MB, free: 11.39 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.1562, allocations: 69.59 kB / 489.6 MB, free: 11.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.1563, allocations: 334.8 kB / 489.9 MB, free: 10.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002387/0.1565, allocations: 119.9 kB / 490 MB, free: 10.87 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000266/0.1568, allocations: 159.3 kB / 490.2 MB, free: 10.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004059/0.1572, allocations: 243.1 kB / 490.4 MB, free: 10.45 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.1572, allocations: 0 / 490.4 MB, free: 10.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008473/0.1581, allocations: 429.8 kB / 490.9 MB, free: 10.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.1581, allocations: 8 kB / 490.9 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.1581, allocations: 3.938 kB / 490.9 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005481/0.1587, allocations: 204.3 kB / 491.1 MB, free: 9.809 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002137/0.1589, allocations: 55.84 kB / 491.1 MB, free: 9.754 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008519/0.1598, allocations: 0.7359 MB / 491.9 MB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002647/0.16, allocations: 35.97 kB / 491.9 MB, free: 8.957 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.658e-05/0.1601, allocations: 15.98 kB / 491.9 MB, free: 8.941 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.000187/0.1603, allocations: 145.7 kB / 492 MB, free: 8.789 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.539e-05/0.1604, allocations: 27.78 kB / 492.1 MB, free: 8.762 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001084/0.1605, allocations: 38.64 kB / 492.1 MB, free: 8.723 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.1605, allocations: 4 kB / 492.1 MB, free: 8.719 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/0.1605, allocations: 0 / 492.1 MB, free: 8.719 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.1605, allocations: 0 / 492.1 MB, free: 8.719 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001791/0.1623, allocations: 0.9478 MB / 493.1 MB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.1623, allocations: 0 / 493.1 MB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002327/0.1626, allocations: 47.97 kB / 493.1 MB, free: 7.656 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004225/0.163, allocations: 176.7 kB / 493.3 MB, free: 7.48 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.473e-05/0.163, allocations: 7.984 kB / 493.3 MB, free: 7.473 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007118/0.1638, allocations: 0.6927 MB / 494 MB, free: 6.754 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.1638, allocations: 4 kB / 494 MB, free: 6.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001168/0.1649, allocations: 0.6184 MB / 494.6 MB, free: 6.109 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001444/0.1651, allocations: 132.8 kB / 494.7 MB, free: 5.961 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.069e-05/0.1652, allocations: 8 kB / 494.7 MB, free: 5.953 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002793/0.1655, allocations: 40.02 kB / 494.8 MB, free: 5.914 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000144/0.1656, allocations: 43.92 kB / 494.8 MB, free: 5.871 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.911e-05/0.1656, allocations: 15.98 kB / 494.8 MB, free: 5.855 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001804/0.1658, allocations: 149.5 kB / 495 MB, free: 5.711 MB / 366.1 MB Notification: Performance of sort global known variables: time 3e-07/0.1658, allocations: 0 / 495 MB, free: 5.711 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003943/0.1662, allocations: 72 kB / 495.1 MB, free: 5.641 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.0009567/0.1672, allocations: 378.4 kB / 495.4 MB, free: 5.379 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008098/0.168, allocations: 315.7 kB / 495.7 MB, free: 5.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.168, allocations: 0 / 495.7 MB, free: 5.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003589/0.1684, allocations: 164 kB / 495.9 MB, free: 4.91 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004163/0.1688, allocations: 38.83 kB / 495.9 MB, free: 4.875 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001995/0.1708, allocations: 0.7535 MB / 496.7 MB, free: 4.098 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003618/0.1712, allocations: 0.7564 MB / 497.4 MB, free: 3.316 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001089/0.1713, allocations: 22.28 kB / 497.5 MB, free: 3.293 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.593e-05/0.1714, allocations: 23.44 kB / 497.5 MB, free: 3.27 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1714, allocations: 0 / 497.5 MB, free: 3.27 MB / 366.1 MB Notification: Performance of Templates: time 0.01053/0.182, allocations: 5.122 MB / 0.4908 GB, free: 14.16 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