Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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(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_3.2.3_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_3.2.3_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.00146/0.00146, allocations: 94.66 kB / 16.95 MB, free: 6.113 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.002071/0.002071, allocations: 171.3 kB / 17.83 MB, free: 5.734 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.549/1.549, allocations: 205.4 MB / 224 MB, free: 13.07 MB / 190.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.0004222/0.0004222, allocations: 8 kB / 280.8 MB, free: 3.734 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1078, allocations: 47.59 MB / 328.4 MB, free: 4.078 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002884/0.1108, allocations: 2.378 MB / 330.7 MB, free: 1.684 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001464/0.1123, allocations: 0.901 MB / 331.6 MB, free: 0.7734 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001368/0.1124, allocations: 4 kB / 331.6 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001855/0.1126, allocations: 39.64 kB / 331.7 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002049/0.1128, allocations: 95.28 kB / 331.8 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003852/0.1132, allocations: 163.7 kB / 331.9 MB, free: 488 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004531/0.1137, allocations: 0.4993 MB / 332.4 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001771/0.1139, allocations: 86.03 kB / 332.5 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002306/0.1141, allocations: 211.3 kB / 332.7 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000349/0.1145, allocations: 243.1 kB / 333 MB, free: 15.44 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.809e-05/0.1145, allocations: 24 kB / 333 MB, free: 15.42 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001312/0.1147, allocations: 59.97 kB / 333 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001047/0.1148, allocations: 99.67 kB / 333.1 MB, free: 15.26 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.57e-05/0.1149, allocations: 85.52 kB / 333.2 MB, free: 15.17 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00035/0.1152, allocations: 379.2 kB / 333.6 MB, free: 14.8 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.1152, allocations: 4 kB / 333.6 MB, free: 14.8 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1153, allocations: 0 / 333.6 MB, free: 14.8 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.384e-06/0.1153, allocations: 0 / 333.6 MB, free: 14.8 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.001228/0.1165, allocations: 0.6862 MB / 334.3 MB, free: 14.06 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.1165, allocations: 8.031 kB / 334.3 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.37e-05/0.1167, allocations: 47.53 kB / 334.3 MB, free: 14.01 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00035/0.117, allocations: 297.4 kB / 334.6 MB, free: 13.67 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.655e-05/0.1171, allocations: 29 kB / 334.7 MB, free: 13.64 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.349e-05/0.1171, allocations: 35.98 kB / 334.7 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007888/0.1179, allocations: 438.3 kB / 335.1 MB, free: 13.17 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.363e-05/0.118, allocations: 11.84 kB / 335.1 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.084e-05/0.118, allocations: 20 kB / 335.1 MB, free: 13.14 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.095e-05/0.118, allocations: 8 kB / 335.2 MB, free: 13.13 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008872/0.1189, allocations: 463.7 kB / 335.6 MB, free: 12.68 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002145/0.1211, allocations: 1.3 MB / 336.9 MB, free: 11.31 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000783/0.1219, allocations: 380.5 kB / 337.3 MB, free: 10.93 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004471/0.1223, allocations: 249.5 kB / 337.5 MB, free: 10.68 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.193e-05/0.1224, allocations: 4.375 kB / 337.5 MB, free: 10.68 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.774e-05/0.1224, allocations: 42.88 kB / 337.6 MB, free: 10.63 MB / 286.1 MB Notification: Performance of pre-optimization done (n=45): time 1.853e-06/0.1224, allocations: 3.938 kB / 337.6 MB, free: 10.62 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.004867/0.1273, allocations: 2.366 MB / 339.9 MB, free: 8.121 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.28e-05/0.1274, allocations: 59.84 kB / 340 MB, free: 8.051 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002336/0.1276, allocations: 242.6 kB / 340.2 MB, free: 7.809 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.622e-05/0.1277, allocations: 49.69 kB / 340.3 MB, free: 7.754 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.962e-05/0.1278, allocations: 164.6 kB / 340.4 MB, free: 7.59 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001389/0.1279, allocations: 173.7 kB / 340.6 MB, free: 7.418 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.416e-05/0.128, allocations: 12 kB / 340.6 MB, free: 7.406 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.1281, allocations: 342.8 kB / 341 MB, free: 7.062 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004637/0.1286, allocations: 241 kB / 341.2 MB, free: 6.824 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004985/0.1291, allocations: 303.2 kB / 341.5 MB, free: 6.512 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003974/0.1295, allocations: 206.1 kB / 341.7 MB, free: 6.312 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1295, allocations: 0 / 341.7 MB, free: 6.312 MB / 286.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001463/0.131, allocations: 0.7626 MB / 342.5 MB, free: 5.531 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.131, allocations: 4 kB / 342.5 MB, free: 5.527 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.131, allocations: 128 / 342.5 MB, free: 5.527 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001108/0.1321, allocations: 0.5606 MB / 343 MB, free: 4.957 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002607/0.1324, allocations: 67.91 kB / 343.1 MB, free: 4.891 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002632/0.135, allocations: 3.462 MB / 346.5 MB, free: 1.141 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004626/0.1355, allocations: 108.2 kB / 346.7 MB, free: 1.035 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.283e-05/0.1356, allocations: 23.92 kB / 346.7 MB, free: 1.012 MB / 286.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.000219/0.1358, allocations: 161.6 kB / 346.8 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.543e-05/0.1359, allocations: 39.48 kB / 346.9 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001506/0.1374, allocations: 0.7404 MB / 347.6 MB, free: 48 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.67e-06/0.1374, allocations: 4 kB / 347.6 MB, free: 44 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.1374, allocations: 0 / 347.6 MB, free: 44 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.1374, allocations: 0 / 347.6 MB, free: 44 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002113/0.1395, allocations: 1.267 MB / 348.9 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.1396, allocations: 8 kB / 348.9 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000259/0.1398, allocations: 63.89 kB / 349 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009225/0.1408, allocations: 0.5293 MB / 349.5 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.367e-05/0.1408, allocations: 23.97 kB / 349.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002571/0.1434, allocations: 3.425 MB / 352.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1434, allocations: 4.031 kB / 352.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001916/0.1453, allocations: 1.047 MB / 354 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001783/0.1455, allocations: 156.7 kB / 354.1 MB, free: 9.109 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.746e-05/0.1456, allocations: 15.95 kB / 354.2 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004292/0.146, allocations: 107.9 kB / 354.3 MB, free: 8.988 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002035/0.1463, allocations: 100.2 kB / 354.4 MB, free: 8.891 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.098e-05/0.1463, allocations: 23.97 kB / 354.4 MB, free: 8.867 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001615/0.1465, allocations: 178 kB / 354.6 MB, free: 8.695 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1465, allocations: 0 / 354.6 MB, free: 8.695 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005159/0.147, allocations: 123.9 kB / 354.7 MB, free: 8.574 MB / 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.0002669/0.1473, allocations: 155.1 kB / 354.8 MB, free: 8.414 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001627/0.1489, allocations: 0.8137 MB / 355.6 MB, free: 7.574 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1489, allocations: 7.938 kB / 355.6 MB, free: 7.566 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008965/0.1498, allocations: 0.541 MB / 356.2 MB, free: 7 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005335/0.1504, allocations: 56.72 kB / 356.2 MB, free: 6.945 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002278/0.1527, allocations: 1.16 MB / 357.4 MB, free: 5.758 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004596/0.1531, allocations: 0.7957 MB / 358.2 MB, free: 4.934 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001501/0.1533, allocations: 35.22 kB / 358.2 MB, free: 4.895 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.256e-05/0.1534, allocations: 27.42 kB / 358.3 MB, free: 4.867 MB / 302.1 MB Notification: Performance of SimCode: time 7.11e-07/0.1534, allocations: 0 / 358.3 MB, free: 4.867 MB / 302.1 MB Notification: Performance of Templates: time 0.01479/0.1682, allocations: 9.012 MB / 367.3 MB, free: 11.85 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches