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.005496/0.005496, allocations: 75.75 kB / 21.97 MB, free: 2.602 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.001628/0.001628, allocations: 164.2 kB / 25.33 MB, free: 8.754 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.9729/0.9729, allocations: 158.6 MB / 187.2 MB, free: 2.938 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.663e-06/1.663e-06, allocations: 0 / 251 MB, free: 7.539 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.203e-05/2.369e-05, allocations: 2.312 kB / 251 MB, free: 7.535 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.006688/0.006712, allocations: 2.838 MB / 253.9 MB, free: 4.676 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.004713/0.01142, allocations: 0.9202 MB / 254.8 MB, free: 3.742 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001758/0.0116, allocations: 7.938 kB / 254.8 MB, free: 3.734 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002235/0.01182, allocations: 67.38 kB / 254.9 MB, free: 3.668 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002457/0.01207, allocations: 115 kB / 255 MB, free: 3.555 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005415/0.01261, allocations: 223.5 kB / 255.2 MB, free: 3.336 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004348/0.01305, allocations: 0.577 MB / 255.8 MB, free: 2.758 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001751/0.01322, allocations: 75.05 kB / 255.8 MB, free: 2.684 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000322/0.01354, allocations: 347.3 kB / 256.2 MB, free: 2.344 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002338/0.01378, allocations: 227.4 kB / 256.4 MB, free: 2.121 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.275e-05/0.01383, allocations: 44 kB / 256.4 MB, free: 2.078 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001369/0.01397, allocations: 91.95 kB / 256.5 MB, free: 1.988 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 9.786e-05/0.01406, allocations: 131.5 kB / 256.7 MB, free: 1.859 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000131/0.0142, allocations: 151.6 kB / 256.8 MB, free: 1.711 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004326/0.01463, allocations: 438.6 kB / 257.2 MB, free: 1.281 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.01463, allocations: 0 / 257.2 MB, free: 1.281 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.01463, allocations: 0 / 257.2 MB, free: 1.281 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.01464, allocations: 0 / 257.2 MB, free: 1.281 MB / 234.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.0008848/0.01552, allocations: 0.7454 MB / 258 MB, free: 0.4961 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.01556, allocations: 11.98 kB / 258 MB, free: 496 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001088/0.01567, allocations: 68.66 kB / 258.1 MB, free: 428 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002946/0.01596, allocations: 255.4 kB / 258.3 MB, free: 144 kB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.226e-05/0.016, allocations: 25.38 kB / 258.3 MB, free: 120 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.023e-05/0.01606, allocations: 40.33 kB / 258.4 MB, free: 80 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005325/0.01659, allocations: 379.6 kB / 258.7 MB, free: 15.7 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.0166, allocations: 192 / 258.7 MB, free: 15.7 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.982e-05/0.01663, allocations: 12.38 kB / 258.8 MB, free: 15.69 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.172e-05/0.01664, allocations: 11.94 kB / 258.8 MB, free: 15.68 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004157/0.01706, allocations: 293.8 kB / 259.1 MB, free: 15.39 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001338/0.0184, allocations: 1.034 MB / 260.1 MB, free: 14.3 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004516/0.01885, allocations: 268.7 kB / 260.4 MB, free: 14.02 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001993/0.01905, allocations: 156.4 kB / 260.5 MB, free: 13.87 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.837e-05/0.01909, allocations: 8.375 kB / 260.5 MB, free: 13.86 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.314e-05/0.01911, allocations: 45.7 kB / 260.6 MB, free: 13.8 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 1.633e-06/0.01911, allocations: 4 kB / 260.6 MB, free: 13.8 MB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.002531/0.02164, allocations: 1.591 MB / 262.2 MB, free: 12.14 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.887e-05/0.02167, allocations: 59.89 kB / 262.2 MB, free: 12.07 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001773/0.02185, allocations: 292.3 kB / 262.5 MB, free: 11.77 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.184e-05/0.02188, allocations: 37.7 kB / 262.5 MB, free: 11.72 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.511e-05/0.02197, allocations: 219.6 kB / 262.7 MB, free: 11.5 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.923e-05/0.02207, allocations: 170.6 kB / 262.9 MB, free: 11.34 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001196/0.02218, allocations: 107.9 kB / 263 MB, free: 11.22 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.02231, allocations: 0.5156 MB / 263.5 MB, free: 10.7 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002192/0.02253, allocations: 149.2 kB / 263.7 MB, free: 10.55 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002514/0.02278, allocations: 249.1 kB / 263.9 MB, free: 10.28 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003517/0.02313, allocations: 308 kB / 264.2 MB, free: 9.957 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.02313, allocations: 0 / 264.2 MB, free: 9.957 MB / 250.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0007976/0.02393, allocations: 0.6016 MB / 264.8 MB, free: 9.336 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.02395, allocations: 8 kB / 264.8 MB, free: 9.328 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.02395, allocations: 0 / 264.8 MB, free: 9.328 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006813/0.02463, allocations: 490.6 kB / 265.3 MB, free: 8.836 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001582/0.02479, allocations: 71.89 kB / 265.4 MB, free: 8.766 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00227/0.02706, allocations: 4.501 MB / 269.9 MB, free: 3.992 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001894/0.02725, allocations: 47.94 kB / 269.9 MB, free: 3.945 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.024e-05/0.02728, allocations: 23.98 kB / 270 MB, free: 3.922 MB / 250.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.000132/0.02741, allocations: 196.3 kB / 270.1 MB, free: 3.719 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.583e-05/0.02748, allocations: 51.77 kB / 270.2 MB, free: 3.668 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007462/0.02822, allocations: 0.5629 MB / 270.8 MB, free: 3.082 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.02823, allocations: 4 kB / 270.8 MB, free: 3.078 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.02823, allocations: 8 kB / 270.8 MB, free: 3.07 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.02824, allocations: 7.922 kB / 270.8 MB, free: 3.062 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001139/0.02938, allocations: 0.9939 MB / 271.8 MB, free: 2.02 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.02938, allocations: 0 / 271.8 MB, free: 2.02 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001406/0.02952, allocations: 51.92 kB / 271.8 MB, free: 1.969 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005746/0.03009, allocations: 486.5 kB / 272.3 MB, free: 1.48 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.017e-05/0.03012, allocations: 15.98 kB / 272.3 MB, free: 1.465 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002035/0.03216, allocations: 4.502 MB / 276.8 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.03216, allocations: 4 kB / 276.8 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009024/0.03306, allocations: 0.8287 MB / 277.7 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001189/0.03318, allocations: 87.62 kB / 277.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.492e-05/0.03323, allocations: 23.92 kB / 277.8 MB, free: 11.71 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001736/0.0334, allocations: 52.05 kB / 277.8 MB, free: 11.66 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001425/0.03354, allocations: 100.2 kB / 277.9 MB, free: 11.56 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.517e-05/0.03357, allocations: 19.98 kB / 277.9 MB, free: 11.54 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001028/0.03367, allocations: 205.1 kB / 278.1 MB, free: 11.34 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03367, allocations: 0 / 278.1 MB, free: 11.34 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003133/0.03398, allocations: 120 kB / 278.2 MB, free: 11.22 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.0001817/0.03417, allocations: 151.1 kB / 278.4 MB, free: 11.07 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008098/0.03498, allocations: 0.7544 MB / 279.1 MB, free: 10.27 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.03498, allocations: 3.938 kB / 279.2 MB, free: 10.27 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004505/0.03543, allocations: 0.5877 MB / 279.7 MB, free: 9.645 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003341/0.03576, allocations: 84.36 kB / 279.8 MB, free: 9.562 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001416/0.03718, allocations: 0.8645 MB / 280.7 MB, free: 8.664 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.108e-05/0.03725, allocations: 109.2 kB / 280.8 MB, free: 8.539 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.299e-05/0.03733, allocations: 30.97 kB / 280.8 MB, free: 8.512 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.693e-05/0.0374, allocations: 32.48 kB / 280.9 MB, free: 8.48 MB / 266.7 MB Notification: Performance of SimCode: time 1.082e-06/0.0374, allocations: 3.938 kB / 280.9 MB, free: 8.477 MB / 266.7 MB Notification: Performance of Templates: time 0.009999/0.0474, allocations: 8.639 MB / 289.5 MB, free: 15.86 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.1406378969550133]