Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001303/0.001303, allocations: 91.02 kB / 16.31 MB, free: 5.66 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.001637/0.001637, allocations: 179 kB / 17.21 MB, free: 5.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 223.3 MB / 241.2 MB, free: 5.445 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004105/0.0004107, allocations: 10.48 kB / 300.8 MB, free: 6.445 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1123, allocations: 50.43 MB / 351.2 MB, free: 11.88 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003169/0.1156, allocations: 2.383 MB / 353.6 MB, free: 9.477 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00185/0.1174, allocations: 0.8536 MB / 354.5 MB, free: 8.617 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003187/0.1178, allocations: 4 kB / 354.5 MB, free: 8.613 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000261/0.1181, allocations: 43.64 kB / 354.5 MB, free: 8.57 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003553/0.1184, allocations: 95.3 kB / 354.6 MB, free: 8.477 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006088/0.119, allocations: 159.7 kB / 354.8 MB, free: 8.32 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007475/0.1198, allocations: 0.4954 MB / 355.3 MB, free: 7.824 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002678/0.1201, allocations: 90.31 kB / 355.4 MB, free: 7.734 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000444/0.1205, allocations: 211.3 kB / 355.6 MB, free: 7.527 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004078/0.121, allocations: 239.1 kB / 355.8 MB, free: 7.293 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.424e-05/0.1211, allocations: 27.94 kB / 355.8 MB, free: 7.266 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001876/0.1212, allocations: 67.95 kB / 355.9 MB, free: 7.199 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001146/0.1214, allocations: 87.7 kB / 356 MB, free: 7.113 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001349/0.1215, allocations: 85.52 kB / 356.1 MB, free: 7.023 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004262/0.1219, allocations: 382.9 kB / 356.4 MB, free: 6.648 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.122, allocations: 0 / 356.4 MB, free: 6.648 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.122, allocations: 4 kB / 356.4 MB, free: 6.645 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.682e-05/0.122, allocations: 0 / 356.4 MB, free: 6.645 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001378/0.1234, allocations: 0.6901 MB / 357.1 MB, free: 5.906 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.1234, allocations: 12.03 kB / 357.1 MB, free: 5.895 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001686/0.1236, allocations: 43.48 kB / 357.2 MB, free: 5.852 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004537/0.1241, allocations: 293.4 kB / 357.5 MB, free: 5.527 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.289e-05/0.1241, allocations: 29 kB / 357.5 MB, free: 5.496 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.591e-05/0.1242, allocations: 39.91 kB / 357.5 MB, free: 5.457 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008839/0.1251, allocations: 446.3 kB / 358 MB, free: 5.016 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/0.1251, allocations: 0 / 358 MB, free: 5.016 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.242e-05/0.1252, allocations: 16 kB / 358 MB, free: 5 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.1252, allocations: 8 kB / 358 MB, free: 4.992 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009385/0.1262, allocations: 479.6 kB / 358.5 MB, free: 4.527 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002365/0.1285, allocations: 1.289 MB / 359.8 MB, free: 3.16 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008135/0.1294, allocations: 370 kB / 360.1 MB, free: 2.789 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000474/0.1299, allocations: 253.5 kB / 360.4 MB, free: 2.539 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.31e-05/0.1299, allocations: 16.31 kB / 360.4 MB, free: 2.523 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.74e-05/0.13, allocations: 42.86 kB / 360.4 MB, free: 2.473 MB / 286.1 MB Notification: Performance of pre-optimization done (n=45): time 1.854e-06/0.13, allocations: 4 kB / 360.4 MB, free: 2.469 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.005363/0.1353, allocations: 2.368 MB / 362.8 MB, free: 15.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.547e-05/0.1354, allocations: 59.84 kB / 362.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000287/0.1357, allocations: 246.5 kB / 363.1 MB, free: 15.64 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.386e-05/0.1358, allocations: 45.7 kB / 363.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000133/0.1359, allocations: 164.7 kB / 363.3 MB, free: 15.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002514/0.1362, allocations: 165.8 kB / 363.5 MB, free: 15.26 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.474e-05/0.1362, allocations: 8 kB / 363.5 MB, free: 15.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.1364, allocations: 342.8 kB / 363.8 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005137/0.1369, allocations: 245 kB / 364 MB, free: 14.67 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005297/0.1374, allocations: 307.2 kB / 364.3 MB, free: 14.35 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004161/0.1378, allocations: 202.1 kB / 364.5 MB, free: 14.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1379, allocations: 0 / 364.5 MB, free: 14.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001522/0.1394, allocations: 0.7627 MB / 365.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.1394, allocations: 4 kB / 365.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.1395, allocations: 8 kB / 365.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001101/0.1406, allocations: 0.5549 MB / 365.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002857/0.1409, allocations: 79.89 kB / 365.9 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002875/0.1438, allocations: 3.462 MB / 369.4 MB, free: 8.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004757/0.1442, allocations: 100 kB / 369.5 MB, free: 8.875 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.833e-05/0.1443, allocations: 19.98 kB / 369.5 MB, free: 8.855 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 43 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0002156/0.1445, allocations: 177.5 kB / 369.7 MB, free: 8.672 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.898e-05/0.1446, allocations: 35.62 kB / 369.7 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001529/0.1461, allocations: 0.7287 MB / 370.5 MB, free: 7.898 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.1462, allocations: 8 kB / 370.5 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.1462, allocations: 0 / 370.5 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.1462, allocations: 7.922 kB / 370.5 MB, free: 7.883 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002148/0.1483, allocations: 1.279 MB / 371.8 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.1484, allocations: 0 / 371.8 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002656/0.1486, allocations: 59.91 kB / 371.8 MB, free: 6.477 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009466/0.1496, allocations: 0.5372 MB / 372.3 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.46e-05/0.1496, allocations: 15.98 kB / 372.4 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00263/0.1523, allocations: 3.427 MB / 375.8 MB, free: 2.199 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.1523, allocations: 0 / 375.8 MB, free: 2.199 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001865/0.1542, allocations: 1.047 MB / 376.8 MB, free: 1.125 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001971/0.1544, allocations: 160.7 kB / 377 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.773e-05/0.1545, allocations: 12 kB / 377 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004457/0.1549, allocations: 99.91 kB / 377.1 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002085/0.1551, allocations: 108.2 kB / 377.2 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.015e-05/0.1552, allocations: 15.98 kB / 377.2 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001797/0.1554, allocations: 182 kB / 377.4 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1554, allocations: 0 / 377.4 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000552/0.1559, allocations: 128 kB / 377.5 MB, free: 424 kB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,clutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002549/0.1562, allocations: 138.5 kB / 377.7 MB, free: 276 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001543/0.1577, allocations: 0.8177 MB / 378.5 MB, free: 15.43 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1578, allocations: 4 kB / 378.5 MB, free: 15.43 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008728/0.1586, allocations: 0.537 MB / 379 MB, free: 14.86 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004969/0.1592, allocations: 72.36 kB / 379.1 MB, free: 14.79 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002138/0.1613, allocations: 1.161 MB / 380.3 MB, free: 13.61 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003783/0.1617, allocations: 0.7957 MB / 381 MB, free: 12.78 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001514/0.1619, allocations: 27.3 kB / 381.1 MB, free: 12.75 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.045e-05/0.1619, allocations: 27.42 kB / 381.1 MB, free: 12.73 MB / 318.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1619, allocations: 4 kB / 381.1 MB, free: 12.72 MB / 318.1 MB Notification: Performance of Templates: time 0.01542/0.1774, allocations: 9.009 MB / 390.1 MB, free: 3.746 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches