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.000922/0.000922, allocations: 80.8 kB / 22.28 MB, free: 2.207 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.001065/0.001065, allocations: 169.6 kB / 25.69 MB, free: 8.434 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.9091/0.9091, allocations: 158.6 MB / 187.6 MB, free: 2.793 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.452e-06/1.452e-06, allocations: 0 / 251.5 MB, free: 7.281 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.197e-06/1.065e-05, allocations: 2.312 kB / 251.5 MB, free: 7.277 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002524/0.002535, allocations: 2.795 MB / 254.3 MB, free: 4.461 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001105/0.00364, allocations: 0.9471 MB / 255.3 MB, free: 3.504 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001092/0.00375, allocations: 11.94 kB / 255.3 MB, free: 3.492 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001763/0.003926, allocations: 59.42 kB / 255.3 MB, free: 3.434 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001796/0.004105, allocations: 111 kB / 255.4 MB, free: 3.324 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003607/0.004466, allocations: 219.5 kB / 255.7 MB, free: 3.109 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003652/0.004831, allocations: 0.5849 MB / 256.2 MB, free: 2.523 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001301/0.004962, allocations: 82.97 kB / 256.3 MB, free: 2.441 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002647/0.005226, allocations: 351.3 kB / 256.7 MB, free: 2.098 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002171/0.005443, allocations: 223.5 kB / 256.9 MB, free: 1.879 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.787e-05/0.005491, allocations: 44 kB / 256.9 MB, free: 1.836 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000114/0.005605, allocations: 91.94 kB / 257 MB, free: 1.746 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.729e-05/0.005693, allocations: 119.6 kB / 257.1 MB, free: 1.629 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001074/0.0058, allocations: 155.6 kB / 257.3 MB, free: 1.473 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003452/0.006145, allocations: 438.5 kB / 257.7 MB, free: 1.043 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.754e-06/0.006147, allocations: 0 / 257.7 MB, free: 1.043 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.006147, allocations: 0 / 257.7 MB, free: 1.043 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.007e-06/0.006151, allocations: 4 kB / 257.7 MB, free: 1.039 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.0006757/0.006827, allocations: 0.6168 MB / 258.3 MB, free: 404 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.856e-05/0.006856, allocations: 11.98 kB / 258.3 MB, free: 392 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.182e-05/0.006928, allocations: 60.89 kB / 258.4 MB, free: 332 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00022/0.007148, allocations: 216.6 kB / 258.6 MB, free: 88 kB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.601e-05/0.007174, allocations: 33.38 kB / 258.6 MB, free: 56 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.586e-05/0.007219, allocations: 32.31 kB / 258.7 MB, free: 24 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003556/0.007575, allocations: 323.7 kB / 259 MB, free: 15.7 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.007589, allocations: 4.172 kB / 259 MB, free: 15.69 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.578e-05/0.007614, allocations: 16.38 kB / 259 MB, free: 15.68 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.007622, allocations: 11.94 kB / 259 MB, free: 15.66 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002285/0.007851, allocations: 182.9 kB / 259.2 MB, free: 15.48 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.008876, allocations: 0.7701 MB / 260 MB, free: 14.68 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002996/0.009175, allocations: 200.3 kB / 260.2 MB, free: 14.48 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001219/0.009297, allocations: 108.4 kB / 260.3 MB, free: 14.38 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.151e-05/0.009329, allocations: 20.28 kB / 260.3 MB, free: 14.36 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.078e-05/0.009349, allocations: 38.94 kB / 260.3 MB, free: 14.31 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 1.533e-06/0.009351, allocations: 0 / 260.3 MB, free: 14.31 MB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.001874/0.01123, allocations: 1.274 MB / 261.6 MB, free: 12.98 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.869e-05/0.01125, allocations: 55.91 kB / 261.7 MB, free: 12.91 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001339/0.01139, allocations: 225 kB / 261.9 MB, free: 12.68 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.691e-05/0.01142, allocations: 45.7 kB / 261.9 MB, free: 12.62 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.652e-05/0.01149, allocations: 164.8 kB / 262.1 MB, free: 12.46 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.296e-05/0.01158, allocations: 170.6 kB / 262.3 MB, free: 12.29 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001071/0.01169, allocations: 98.23 kB / 262.3 MB, free: 12.19 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.362e-05/0.01177, allocations: 350.7 kB / 262.7 MB, free: 11.84 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001203/0.0119, allocations: 93.28 kB / 262.8 MB, free: 11.75 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001407/0.01204, allocations: 164.1 kB / 262.9 MB, free: 11.57 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002199/0.01226, allocations: 238.9 kB / 263.2 MB, free: 11.32 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.01226, allocations: 0 / 263.2 MB, free: 11.32 MB / 250.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0004695/0.01273, allocations: 408.8 kB / 263.6 MB, free: 10.9 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.01274, allocations: 7.938 kB / 263.6 MB, free: 10.89 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.01274, allocations: 4 kB / 263.6 MB, free: 10.89 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005228/0.01327, allocations: 442.3 kB / 264 MB, free: 10.45 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001332/0.0134, allocations: 71.84 kB / 264.1 MB, free: 10.38 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001329/0.01473, allocations: 3.025 MB / 267.1 MB, free: 7.152 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001598/0.01489, allocations: 51.94 kB / 267.2 MB, free: 7.102 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.363e-05/0.01491, allocations: 12 kB / 267.2 MB, free: 7.09 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.0001088/0.01502, allocations: 152.5 kB / 267.3 MB, free: 6.93 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.94e-05/0.01507, allocations: 31.97 kB / 267.4 MB, free: 6.898 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004573/0.01553, allocations: 416.8 kB / 267.8 MB, free: 6.477 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.526e-06/0.01553, allocations: 8 kB / 267.8 MB, free: 6.469 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-06/0.01553, allocations: 0 / 267.8 MB, free: 6.469 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.01554, allocations: 7.984 kB / 267.8 MB, free: 6.461 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007399/0.01628, allocations: 0.6521 MB / 268.4 MB, free: 5.777 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.01628, allocations: 0 / 268.4 MB, free: 5.777 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001291/0.01641, allocations: 55.92 kB / 268.5 MB, free: 5.723 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004639/0.01687, allocations: 442.1 kB / 268.9 MB, free: 5.281 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.455e-05/0.0169, allocations: 23.91 kB / 268.9 MB, free: 5.258 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001235/0.01813, allocations: 3.005 MB / 271.9 MB, free: 2.059 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.01813, allocations: 4 kB / 271.9 MB, free: 2.055 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005597/0.01869, allocations: 0.5675 MB / 272.5 MB, free: 1.461 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.362e-05/0.01879, allocations: 55.67 kB / 272.6 MB, free: 1.406 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.335e-05/0.01883, allocations: 23.98 kB / 272.6 MB, free: 1.383 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001548/0.01899, allocations: 44.08 kB / 272.6 MB, free: 1.34 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001181/0.0191, allocations: 100.3 kB / 272.7 MB, free: 1.242 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.016e-05/0.01912, allocations: 11.98 kB / 272.7 MB, free: 1.23 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.407e-05/0.01918, allocations: 78.77 kB / 272.8 MB, free: 1.152 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01918, allocations: 0 / 272.8 MB, free: 1.152 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002552/0.01943, allocations: 124 kB / 272.9 MB, free: 1.031 MB / 250.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.0001386/0.01957, allocations: 120.3 kB / 273.1 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005262/0.0201, allocations: 0.554 MB / 273.6 MB, free: 328 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.0201, allocations: 0 / 273.6 MB, free: 328 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003257/0.02043, allocations: 452.6 kB / 274.1 MB, free: 15.85 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002457/0.02067, allocations: 84.3 kB / 274.1 MB, free: 15.77 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001111/0.02178, allocations: 0.7644 MB / 274.9 MB, free: 14.96 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.852e-05/0.02184, allocations: 105.3 kB / 275 MB, free: 14.84 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.289e-05/0.02191, allocations: 35.05 kB / 275 MB, free: 14.81 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001237/0.02204, allocations: 107.3 kB / 275.1 MB, free: 14.7 MB / 266.7 MB Notification: Performance of SimCode: time 9.32e-07/0.02204, allocations: 0 / 275.1 MB, free: 14.7 MB / 266.7 MB Notification: Performance of Templates: time 0.00968/0.03172, allocations: 9.35 MB / 284.5 MB, free: 5.387 MB / 266.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: 2.8460812838748097]