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.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.001/0.001, allocations: 79.73 kB / 21.97 MB, free: 2.594 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.001132/0.001132, allocations: 164 kB / 25.32 MB, free: 9.113 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.901/0.901, allocations: 158.6 MB / 187.2 MB, free: 2.426 MB / 170.7 MB " [Timeout remaining time 179] 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.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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.442e-06/1.442e-06, allocations: 0 / 251 MB, free: 3.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.966e-05/2.11e-05, allocations: 2.312 kB / 251 MB, free: 3.586 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.00319/0.003211, allocations: 2.829 MB / 253.9 MB, free: 0.7344 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001512/0.004723, allocations: 0.9238 MB / 254.8 MB, free: 15.8 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001874/0.004911, allocations: 4 kB / 254.8 MB, free: 15.8 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002245/0.005135, allocations: 67.31 kB / 254.9 MB, free: 15.73 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002336/0.005369, allocations: 115 kB / 255 MB, free: 15.62 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005123/0.005881, allocations: 227.5 kB / 255.2 MB, free: 15.39 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004835/0.006364, allocations: 0.5771 MB / 255.8 MB, free: 14.82 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001643/0.006529, allocations: 75.03 kB / 255.8 MB, free: 14.74 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003292/0.006858, allocations: 351.3 kB / 256.2 MB, free: 14.4 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002619/0.00712, allocations: 227.5 kB / 256.4 MB, free: 14.18 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.706e-05/0.007177, allocations: 48 kB / 256.4 MB, free: 14.13 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001606/0.007337, allocations: 91.95 kB / 256.5 MB, free: 14.04 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001171/0.007455, allocations: 115.6 kB / 256.7 MB, free: 13.93 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001331/0.007588, allocations: 159.6 kB / 256.8 MB, free: 13.77 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004714/0.008059, allocations: 434.5 kB / 257.2 MB, free: 13.34 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.008062, allocations: 0 / 257.2 MB, free: 13.34 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.008063, allocations: 4 kB / 257.2 MB, free: 13.34 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.612e-06/0.008069, allocations: 0 / 257.2 MB, free: 13.34 MB / 250.7 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.0009067/0.008976, allocations: 0.7377 MB / 258 MB, free: 12.56 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.009014, allocations: 15.98 kB / 258 MB, free: 12.55 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001097/0.009124, allocations: 76.59 kB / 258.1 MB, free: 12.47 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002751/0.009399, allocations: 247.4 kB / 258.3 MB, free: 12.2 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.255e-05/0.009431, allocations: 29.38 kB / 258.3 MB, free: 12.18 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.363e-05/0.009485, allocations: 40.33 kB / 258.4 MB, free: 12.14 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005086/0.009994, allocations: 367.6 kB / 258.7 MB, free: 11.77 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.976e-05/0.01001, allocations: 8.172 kB / 258.7 MB, free: 11.76 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.846e-05/0.01004, allocations: 12.38 kB / 258.8 MB, free: 11.75 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.349e-05/0.01006, allocations: 19.88 kB / 258.8 MB, free: 11.73 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003889/0.01044, allocations: 285.8 kB / 259.1 MB, free: 11.45 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001636/0.01208, allocations: 1.038 MB / 260.1 MB, free: 10.36 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004539/0.01253, allocations: 272.8 kB / 260.4 MB, free: 10.08 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001925/0.01273, allocations: 159.2 kB / 260.5 MB, free: 9.922 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.046e-05/0.01276, allocations: 12.38 kB / 260.5 MB, free: 9.91 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.515e-05/0.01278, allocations: 45.7 kB / 260.6 MB, free: 9.855 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 1.643e-06/0.01278, allocations: 0 / 260.6 MB, free: 9.855 MB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.002427/0.01521, allocations: 1.579 MB / 262.1 MB, free: 8.207 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.135e-05/0.01524, allocations: 63.89 kB / 262.2 MB, free: 8.133 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001792/0.01542, allocations: 288.3 kB / 262.5 MB, free: 7.832 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.58e-05/0.01546, allocations: 41.7 kB / 262.5 MB, free: 7.785 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.69e-05/0.01555, allocations: 223.6 kB / 262.8 MB, free: 7.562 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.01566, allocations: 174.6 kB / 262.9 MB, free: 7.391 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001218/0.01578, allocations: 99.94 kB / 263 MB, free: 7.285 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.01592, allocations: 0.5195 MB / 263.5 MB, free: 6.754 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002271/0.01615, allocations: 161.2 kB / 263.7 MB, free: 6.598 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002446/0.01639, allocations: 237.1 kB / 263.9 MB, free: 6.34 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000346/0.01674, allocations: 319.9 kB / 264.2 MB, free: 6.004 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.01674, allocations: 0 / 264.2 MB, free: 6.004 MB / 250.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.000794/0.01753, allocations: 0.5977 MB / 264.8 MB, free: 5.387 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.01755, allocations: 10.66 kB / 264.8 MB, free: 5.379 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.01756, allocations: 0 / 264.8 MB, free: 5.379 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006571/0.01822, allocations: 490.7 kB / 265.3 MB, free: 4.887 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001524/0.01837, allocations: 67.89 kB / 265.4 MB, free: 4.82 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002327/0.0207, allocations: 4.494 MB / 269.9 MB, free: 52 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002018/0.0209, allocations: 51.94 kB / 269.9 MB, free: 0 / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.324e-05/0.02094, allocations: 23.98 kB / 270 MB, free: 15.98 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 (46): * Single equations (assignments): 43 * 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,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0001327/0.02107, allocations: 192.4 kB / 270.1 MB, free: 15.78 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.785e-05/0.02114, allocations: 51.77 kB / 270.2 MB, free: 15.73 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007236/0.02187, allocations: 0.5667 MB / 270.8 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/0.02187, allocations: 8 kB / 270.8 MB, free: 15.13 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.584e-06/0.02187, allocations: 4 kB / 270.8 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.02188, allocations: 11.92 kB / 270.8 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001102/0.02298, allocations: 0.9823 MB / 271.8 MB, free: 14.08 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.02298, allocations: 3.938 kB / 271.8 MB, free: 14.08 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001399/0.02312, allocations: 51.92 kB / 271.8 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005426/0.02367, allocations: 494.6 kB / 272.3 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.919e-05/0.0237, allocations: 15.98 kB / 272.3 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001661/0.02536, allocations: 4.497 MB / 276.8 MB, free: 8.742 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.02536, allocations: 0 / 276.8 MB, free: 8.742 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008698/0.02623, allocations: 0.8328 MB / 277.7 MB, free: 7.875 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001131/0.02634, allocations: 87.78 kB / 277.7 MB, free: 7.789 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.563e-05/0.02639, allocations: 23.92 kB / 277.8 MB, free: 7.766 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001718/0.02656, allocations: 43.95 kB / 277.8 MB, free: 7.723 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001369/0.0267, allocations: 100.3 kB / 277.9 MB, free: 7.625 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.507e-05/0.02672, allocations: 19.98 kB / 277.9 MB, free: 7.605 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.798e-05/0.02682, allocations: 205.1 kB / 278.1 MB, free: 7.406 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02682, allocations: 0 / 278.1 MB, free: 7.406 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000294/0.02711, allocations: 124 kB / 278.2 MB, free: 7.285 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,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001768/0.02729, allocations: 147.1 kB / 278.4 MB, free: 7.133 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00078/0.02807, allocations: 0.7543 MB / 279.1 MB, free: 6.34 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.02807, allocations: 256 / 279.1 MB, free: 6.34 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004126/0.02848, allocations: 0.5914 MB / 279.7 MB, free: 5.711 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003284/0.02881, allocations: 88.3 kB / 279.8 MB, free: 5.625 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001363/0.03017, allocations: 0.8569 MB / 280.7 MB, free: 4.73 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.546e-05/0.03024, allocations: 105.3 kB / 280.8 MB, free: 4.609 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.602e-05/0.03032, allocations: 30.97 kB / 280.8 MB, free: 4.582 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.562e-05/0.03038, allocations: 40.42 kB / 280.9 MB, free: 4.543 MB / 266.7 MB Notification: Performance of SimCode: time 8.51e-07/0.03038, allocations: 4 kB / 280.9 MB, free: 4.539 MB / 266.7 MB Notification: Performance of Templates: time 0.01025/0.04063, allocations: 9.319 MB / 290.2 MB, free: 11.24 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 240] 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","",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.0267727370373905]