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.001003/0.001009, allocations: 94.39 kB / 16.3 MB, free: 6.133 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.0009769/0.000977, allocations: 179 kB / 17.2 MB, free: 6.016 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.27/1.27, allocations: 223.2 MB / 241.1 MB, free: 368 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003177/0.0003178, allocations: 8 kB / 300.7 MB, free: 6.473 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08804/0.08838, allocations: 50.42 MB / 351.1 MB, free: 4.047 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002454/0.09086, allocations: 2.276 MB / 353.4 MB, free: 1.754 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001237/0.09211, allocations: 0.877 MB / 354.3 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001152/0.09224, allocations: 7.938 kB / 354.3 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001055/0.09235, allocations: 43.67 kB / 354.3 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002242/0.09259, allocations: 119.6 kB / 354.5 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003253/0.09292, allocations: 163.7 kB / 354.6 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003679/0.0933, allocations: 352.5 kB / 355 MB, free: 204 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001475/0.09346, allocations: 90.03 kB / 355 MB, free: 112 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002258/0.09369, allocations: 215.3 kB / 355.3 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002583/0.09396, allocations: 243.1 kB / 355.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.565e-05/0.09401, allocations: 24 kB / 355.5 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001303/0.09415, allocations: 59.97 kB / 355.6 MB, free: 15.58 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.812e-05/0.09424, allocations: 87.64 kB / 355.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.173e-05/0.09432, allocations: 89.52 kB / 355.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003135/0.09464, allocations: 375.2 kB / 356.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.09465, allocations: 4 kB / 356.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.09466, allocations: 0 / 356.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.09467, allocations: 4 kB / 356.1 MB, free: 15.02 MB / 302.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.001128/0.0958, allocations: 0.6824 MB / 356.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.425e-05/0.09584, allocations: 8.031 kB / 356.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.052e-05/0.09592, allocations: 47.47 kB / 356.9 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003008/0.09623, allocations: 293.5 kB / 357.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.981e-05/0.09627, allocations: 29 kB / 357.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.829e-05/0.09634, allocations: 35.91 kB / 357.2 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007642/0.09711, allocations: 450.2 kB / 357.7 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.09714, allocations: 0 / 357.7 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.363e-05/0.0972, allocations: 16 kB / 357.7 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.09721, allocations: 8 kB / 357.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009167/0.09813, allocations: 479.6 kB / 358.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002202/0.1003, allocations: 1.289 MB / 359.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007589/0.1011, allocations: 376.4 kB / 359.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.799e-05/0.1012, allocations: 8.359 kB / 359.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.56e-05/0.1012, allocations: 42.89 kB / 359.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 1.533e-06/0.1012, allocations: 0 / 359.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.005349/0.1066, allocations: 2.367 MB / 362.2 MB, free: 8.609 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.804e-05/0.1066, allocations: 59.83 kB / 362.3 MB, free: 8.539 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003695/0.107, allocations: 250.5 kB / 362.5 MB, free: 8.289 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.341e-05/0.1071, allocations: 41.7 kB / 362.6 MB, free: 8.242 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.1072, allocations: 164.7 kB / 362.7 MB, free: 8.074 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001558/0.1074, allocations: 173.7 kB / 362.9 MB, free: 7.902 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.385e-05/0.1074, allocations: 8 kB / 362.9 MB, free: 7.895 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.1076, allocations: 338.8 kB / 363.2 MB, free: 7.555 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004947/0.1081, allocations: 241 kB / 363.5 MB, free: 7.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005359/0.1086, allocations: 307.1 kB / 363.8 MB, free: 7 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004344/0.1091, allocations: 210.1 kB / 364 MB, free: 6.797 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1091, allocations: 0 / 364 MB, free: 6.797 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001676/0.1108, allocations: 0.7587 MB / 364.7 MB, free: 6.023 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/0.1108, allocations: 8 kB / 364.7 MB, free: 6.016 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.1108, allocations: 0 / 364.7 MB, free: 6.016 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001163/0.112, allocations: 0.5556 MB / 365.3 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003058/0.1123, allocations: 75.89 kB / 365.4 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002942/0.1153, allocations: 3.464 MB / 368.8 MB, free: 1.621 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005528/0.1158, allocations: 112.1 kB / 368.9 MB, free: 1.512 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.586e-05/0.1159, allocations: 16 kB / 369 MB, free: 1.496 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.0002601/0.1162, allocations: 173.5 kB / 369.1 MB, free: 1.316 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.761e-05/0.1162, allocations: 31.62 kB / 369.2 MB, free: 1.285 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001565/0.1178, allocations: 0.7365 MB / 369.9 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.1178, allocations: 4 kB / 369.9 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.1178, allocations: 4 kB / 369.9 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.1179, allocations: 3.984 kB / 369.9 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1598/0.2776, allocations: 1.265 MB / 371.2 MB, free: 24.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.2777, allocations: 1.609 kB / 371.2 MB, free: 24.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002887/0.278, allocations: 62.52 kB / 371.2 MB, free: 24.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001001/0.279, allocations: 0.5306 MB / 371.8 MB, free: 24.74 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.322e-05/0.279, allocations: 16.88 kB / 371.8 MB, free: 24.74 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001965/0.281, allocations: 3.442 MB / 375.2 MB, free: 21.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.281, allocations: 0.7031 kB / 375.2 MB, free: 21.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00197/0.283, allocations: 1.051 MB / 376.3 MB, free: 21.58 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001774/0.2832, allocations: 161.1 kB / 376.4 MB, free: 21.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.684e-05/0.2833, allocations: 16.56 kB / 376.4 MB, free: 21.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005015/0.2838, allocations: 101.6 kB / 376.5 MB, free: 21.48 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002057/0.284, allocations: 103.8 kB / 376.6 MB, free: 21.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.046e-05/0.284, allocations: 22.55 kB / 376.7 MB, free: 21.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001449/0.2842, allocations: 176.4 kB / 376.8 MB, free: 21.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2842, allocations: 0 / 376.8 MB, free: 21.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004685/0.2847, allocations: 127.9 kB / 377 MB, free: 21.41 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.0001932/0.2849, allocations: 142.1 kB / 377.1 MB, free: 21.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001379/0.2863, allocations: 0.8143 MB / 377.9 MB, free: 20.94 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2863, allocations: 0 / 377.9 MB, free: 20.94 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008086/0.2871, allocations: 0.5515 MB / 378.5 MB, free: 20.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003875/0.2875, allocations: 50.72 kB / 378.5 MB, free: 20.6 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001766/0.2893, allocations: 1.153 MB / 379.7 MB, free: 19.89 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002204/0.2895, allocations: 0.8099 MB / 380.5 MB, free: 19.18 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000126/0.2896, allocations: 39.27 kB / 380.5 MB, free: 19.17 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.213e-05/0.2897, allocations: 26.86 kB / 380.5 MB, free: 19.16 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2897, allocations: 0 / 380.5 MB, free: 19.16 MB / 302.1 MB Notification: Performance of Templates: time 0.0138/0.3035, allocations: 8.984 MB / 389.5 MB, free: 16.14 MB / 302.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","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches