Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 80.92 kB / 21.49 MB, free: 2.996 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 169.9 kB / 24.91 MB, free: 8.723 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9964/0.9964, allocations: 177.1 MB / 205.3 MB, free: 5.102 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,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.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,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.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 273.4 MB, free: 1.195 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.207e-05/2.375e-05, allocations: 2.312 kB / 273.4 MB, free: 1.191 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003296/0.003319, allocations: 2.935 MB / 276.4 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001397/0.004717, allocations: 1.06 MB / 277.4 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001452/0.004862, allocations: 7.938 kB / 277.4 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003128/0.005175, allocations: 83.22 kB / 277.5 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002869/0.005462, allocations: 154.8 kB / 277.7 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000265/0.005726, allocations: 199.6 kB / 277.9 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004373/0.006164, allocations: 0.6123 MB / 278.5 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001579/0.006322, allocations: 83.02 kB / 278.6 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003242/0.006646, allocations: 375.2 kB / 278.9 MB, free: 11.67 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002612/0.006907, allocations: 239.4 kB / 279.2 MB, free: 11.43 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.274e-05/0.00697, allocations: 48 kB / 279.2 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001299/0.0071, allocations: 99.86 kB / 279.3 MB, free: 11.29 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001268/0.007227, allocations: 131.6 kB / 279.4 MB, free: 11.16 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001227/0.007349, allocations: 167.6 kB / 279.6 MB, free: 11 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004286/0.007778, allocations: 466.4 kB / 280 MB, free: 10.54 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.007781, allocations: 0 / 280 MB, free: 10.54 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.007782, allocations: 0 / 280 MB, free: 10.54 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.007789, allocations: 4 kB / 280.1 MB, free: 10.54 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.0007937/0.008582, allocations: 0.6556 MB / 280.7 MB, free: 9.855 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.008616, allocations: 8.031 kB / 280.7 MB, free: 9.848 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.389e-05/0.0087, allocations: 60.89 kB / 280.8 MB, free: 9.789 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003009/0.009001, allocations: 249.2 kB / 281 MB, free: 9.512 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.882e-05/0.00903, allocations: 25.38 kB / 281 MB, free: 9.488 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.248e-05/0.009082, allocations: 36.38 kB / 281.1 MB, free: 9.453 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003679/0.00945, allocations: 318.9 kB / 281.4 MB, free: 9.137 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.709e-05/0.009467, allocations: 8.125 kB / 281.4 MB, free: 9.129 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.777e-05/0.009495, allocations: 16.38 kB / 281.4 MB, free: 9.113 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.009505, allocations: 11.94 kB / 281.4 MB, free: 9.102 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002576/0.009763, allocations: 182.8 kB / 281.6 MB, free: 8.922 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001141/0.0109, allocations: 0.7691 MB / 282.4 MB, free: 8.129 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003958/0.0113, allocations: 225.1 kB / 282.6 MB, free: 7.895 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001368/0.01144, allocations: 110.3 kB / 282.7 MB, free: 7.785 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.845e-05/0.01147, allocations: 12.5 kB / 282.7 MB, free: 7.773 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.918e-05/0.0115, allocations: 35.06 kB / 282.7 MB, free: 7.73 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.575e-06/0.01151, allocations: 4 kB / 282.8 MB, free: 7.727 MB / 266.7 MB Notification: Performance of matching and sorting (n=54): time 0.002614/0.01412, allocations: 1.279 MB / 284 MB, free: 6.387 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.605e-05/0.01416, allocations: 59.91 kB / 284.1 MB, free: 6.316 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000195/0.01435, allocations: 242.6 kB / 284.3 MB, free: 6.066 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.934e-05/0.01439, allocations: 45.7 kB / 284.4 MB, free: 6.016 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.365e-05/0.01445, allocations: 156.8 kB / 284.5 MB, free: 5.855 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.01456, allocations: 194.4 kB / 284.7 MB, free: 5.664 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001587/0.01472, allocations: 94.28 kB / 284.8 MB, free: 5.566 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.01484, allocations: 350.7 kB / 285.1 MB, free: 5.215 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001998/0.01504, allocations: 85.28 kB / 285.2 MB, free: 5.129 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002182/0.01526, allocations: 152.1 kB / 285.4 MB, free: 4.965 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003472/0.01561, allocations: 241.7 kB / 285.6 MB, free: 4.711 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.01561, allocations: 0 / 285.6 MB, free: 4.711 MB / 266.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0007543/0.01636, allocations: 388.9 kB / 286 MB, free: 4.316 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.01638, allocations: 4 kB / 286 MB, free: 4.312 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.01639, allocations: 0 / 286 MB, free: 4.312 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007723/0.01716, allocations: 337.4 kB / 286.3 MB, free: 3.977 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002155/0.01738, allocations: 59.91 kB / 286.4 MB, free: 3.918 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002093/0.01947, allocations: 2.991 MB / 289.4 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003049/0.01977, allocations: 59.89 kB / 289.4 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.676e-05/0.01981, allocations: 20.14 kB / 289.5 MB, free: 0.6445 MB / 266.7 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 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0001813/0.01999, allocations: 148.5 kB / 289.6 MB, free: 500 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.449e-05/0.02009, allocations: 35.97 kB / 289.6 MB, free: 464 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006521/0.02074, allocations: 424.7 kB / 290.1 MB, free: 24 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.02074, allocations: 4 kB / 290.1 MB, free: 20 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.02075, allocations: 4 kB / 290.1 MB, free: 16 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.02075, allocations: 3.984 kB / 290.1 MB, free: 12 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1252/0.1459, allocations: 0.645 MB / 290.7 MB, free: 25.37 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.1459, allocations: 1.766 kB / 290.7 MB, free: 25.37 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001769/0.1461, allocations: 51.69 kB / 290.8 MB, free: 25.37 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005776/0.1467, allocations: 310.8 kB / 291.1 MB, free: 25.34 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.801e-05/0.1467, allocations: 17.78 kB / 291.1 MB, free: 25.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001223/0.1479, allocations: 2.988 MB / 294.1 MB, free: 22.59 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.1479, allocations: 5.094 kB / 294.1 MB, free: 22.59 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007569/0.1487, allocations: 0.56 MB / 294.6 MB, free: 22.42 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001323/0.1488, allocations: 55.98 kB / 294.7 MB, free: 22.42 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.645e-05/0.1489, allocations: 19.33 kB / 294.7 MB, free: 22.42 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001968/0.1491, allocations: 50.45 kB / 294.8 MB, free: 22.42 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001663/0.1492, allocations: 97.62 kB / 294.9 MB, free: 22.42 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.612e-05/0.1493, allocations: 20.7 kB / 294.9 MB, free: 22.42 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.621e-05/0.1494, allocations: 87.88 kB / 295 MB, free: 22.41 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1494, allocations: 0 / 295 MB, free: 22.41 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003769/0.1497, allocations: 124.4 kB / 295.1 MB, free: 22.41 MB / 266.7 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009897/0.1507, allocations: 468 kB / 295.5 MB, free: 22.3 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006609/0.1514, allocations: 0.5474 MB / 296.1 MB, free: 22.07 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/0.1514, allocations: 2.75 kB / 296.1 MB, free: 22.07 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004852/0.1519, allocations: 434.3 kB / 296.5 MB, free: 21.83 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003313/0.1522, allocations: 103.8 kB / 296.6 MB, free: 21.83 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001346/0.1536, allocations: 0.809 MB / 297.4 MB, free: 21.45 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.699e-05/0.1536, allocations: 112.1 kB / 297.5 MB, free: 21.37 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.924e-05/0.1537, allocations: 31.89 kB / 297.6 MB, free: 21.36 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001611/0.1539, allocations: 113.4 kB / 297.7 MB, free: 21.32 MB / 266.7 MB Notification: Performance of SimCode: time 1.172e-06/0.1539, allocations: 0 / 297.7 MB, free: 21.32 MB / 266.7 MB Notification: Performance of Templates: time 0.01147/0.1654, allocations: 9.45 MB / 307.1 MB, free: 18.02 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1120917410589755]