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.001034/0.001034, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.0009899/0.0009899, allocations: 169.9 kB / 24.91 MB, free: 9.195 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.9768/0.9768, allocations: 177.1 MB / 205.3 MB, free: 5.492 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.072e-06/1.072e-06, allocations: 0 / 273.5 MB, free: 1.27 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.439e-05/1.546e-05, allocations: 2.312 kB / 273.5 MB, free: 1.266 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003032/0.003048, allocations: 2.976 MB / 276.5 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00148/0.004527, allocations: 1.06 MB / 277.5 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001399/0.004667, allocations: 7.938 kB / 277.5 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002515/0.004919, allocations: 79.23 kB / 277.6 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002834/0.005202, allocations: 162.8 kB / 277.8 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002872/0.005489, allocations: 199.6 kB / 278 MB, free: 12.76 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004155/0.005905, allocations: 0.6162 MB / 278.6 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001328/0.006038, allocations: 79.02 kB / 278.7 MB, free: 12.06 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003091/0.006347, allocations: 371.2 kB / 279 MB, free: 11.7 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002423/0.006589, allocations: 235.4 kB / 279.2 MB, free: 11.47 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.241e-05/0.006651, allocations: 48 kB / 279.3 MB, free: 11.42 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001284/0.00678, allocations: 99.86 kB / 279.4 MB, free: 11.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001093/0.006889, allocations: 139.6 kB / 279.5 MB, free: 11.19 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001128/0.007002, allocations: 167.6 kB / 279.7 MB, free: 11.02 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000379/0.007381, allocations: 470.4 kB / 280.1 MB, free: 10.56 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.643e-06/0.007383, allocations: 0 / 280.1 MB, free: 10.56 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.007383, allocations: 0 / 280.1 MB, free: 10.56 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.007388, allocations: 0 / 280.1 MB, free: 10.56 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.0006944/0.008082, allocations: 0.6517 MB / 280.8 MB, free: 9.887 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.972e-05/0.008112, allocations: 12.03 kB / 280.8 MB, free: 9.875 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.054e-05/0.008182, allocations: 52.89 kB / 280.9 MB, free: 9.824 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002596/0.008442, allocations: 249.2 kB / 281.1 MB, free: 9.547 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.594e-05/0.008468, allocations: 29.38 kB / 281.1 MB, free: 9.52 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.596e-05/0.008514, allocations: 36.38 kB / 281.2 MB, free: 9.484 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000326/0.00884, allocations: 310.9 kB / 281.5 MB, free: 9.176 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.008854, allocations: 8.141 kB / 281.5 MB, free: 9.168 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.504e-05/0.008879, allocations: 12.38 kB / 281.5 MB, free: 9.156 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.008887, allocations: 11.94 kB / 281.5 MB, free: 9.145 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002542/0.009142, allocations: 182.8 kB / 281.7 MB, free: 8.965 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001057/0.0102, allocations: 0.7691 MB / 282.5 MB, free: 8.172 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003552/0.01055, allocations: 233.1 kB / 282.7 MB, free: 7.93 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001256/0.01068, allocations: 105.8 kB / 282.8 MB, free: 7.828 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.172e-05/0.01071, allocations: 8.5 kB / 282.8 MB, free: 7.82 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.287e-05/0.01073, allocations: 47.05 kB / 282.8 MB, free: 7.766 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.743e-06/0.01074, allocations: 0 / 282.8 MB, free: 7.766 MB / 266.7 MB Notification: Performance of matching and sorting (n=54): time 0.002114/0.01285, allocations: 1.283 MB / 284.1 MB, free: 6.422 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.592e-05/0.01288, allocations: 59.84 kB / 284.2 MB, free: 6.352 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001409/0.01302, allocations: 246.5 kB / 284.4 MB, free: 6.098 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.231e-05/0.01305, allocations: 41.7 kB / 284.5 MB, free: 6.051 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.157e-05/0.01311, allocations: 156.9 kB / 284.6 MB, free: 5.891 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.871e-05/0.01321, allocations: 194.4 kB / 284.8 MB, free: 5.699 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001115/0.01332, allocations: 98.28 kB / 284.9 MB, free: 5.598 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.545e-05/0.01341, allocations: 342.8 kB / 285.2 MB, free: 5.254 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001272/0.01353, allocations: 93.27 kB / 285.3 MB, free: 5.16 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001401/0.01367, allocations: 152.1 kB / 285.5 MB, free: 4.996 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002276/0.0139, allocations: 241.6 kB / 285.7 MB, free: 4.742 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.0139, allocations: 0 / 285.7 MB, free: 4.742 MB / 266.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0004803/0.01438, allocations: 384.9 kB / 286.1 MB, free: 4.352 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/0.01439, allocations: 4 kB / 286.1 MB, free: 4.348 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.0144, allocations: 4 kB / 286.1 MB, free: 4.344 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004802/0.01488, allocations: 323 kB / 286.4 MB, free: 4.02 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001445/0.01503, allocations: 71.91 kB / 286.5 MB, free: 3.949 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001506/0.01653, allocations: 2.998 MB / 289.5 MB, free: 0.75 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000174/0.01671, allocations: 55.89 kB / 289.5 MB, free: 0.6953 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.41e-05/0.01673, allocations: 20.16 kB / 289.6 MB, free: 0.6758 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.0001113/0.01684, allocations: 140.5 kB / 289.7 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.846e-05/0.0169, allocations: 47.89 kB / 289.7 MB, free: 492 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004835/0.01738, allocations: 416.7 kB / 290.1 MB, free: 60 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.01739, allocations: 4 kB / 290.1 MB, free: 56 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.01739, allocations: 4 kB / 290.2 MB, free: 52 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.01739, allocations: 3.984 kB / 290.2 MB, free: 48 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09968/0.1171, allocations: 0.6466 MB / 290.8 MB, free: 25.31 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.1171, allocations: 0.75 kB / 290.8 MB, free: 25.31 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001828/0.1173, allocations: 55.19 kB / 290.9 MB, free: 25.31 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005294/0.1178, allocations: 305.6 kB / 291.2 MB, free: 25.29 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.91e-05/0.1178, allocations: 17.89 kB / 291.2 MB, free: 25.29 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001229/0.1191, allocations: 3 MB / 294.2 MB, free: 22.54 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.1191, allocations: 4.594 kB / 294.2 MB, free: 22.53 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006869/0.1197, allocations: 0.5573 MB / 294.7 MB, free: 22.36 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001213/0.1199, allocations: 62.06 kB / 294.8 MB, free: 22.36 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.919e-05/0.1199, allocations: 20.38 kB / 294.8 MB, free: 22.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001935/0.1201, allocations: 50.8 kB / 294.9 MB, free: 22.36 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001585/0.1203, allocations: 98.78 kB / 295 MB, free: 22.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.779e-05/0.1203, allocations: 15.5 kB / 295 MB, free: 22.36 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.599e-05/0.1204, allocations: 83.55 kB / 295.1 MB, free: 22.35 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1204, allocations: 0 / 295.1 MB, free: 22.35 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003389/0.1207, allocations: 124.3 kB / 295.2 MB, free: 22.35 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.0009327/0.1217, allocations: 472.1 kB / 295.6 MB, free: 22.25 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006416/0.1223, allocations: 0.5422 MB / 296.2 MB, free: 22.01 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.173e-06/0.1223, allocations: 2.688 kB / 296.2 MB, free: 22.01 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003445/0.1226, allocations: 439 kB / 296.6 MB, free: 21.77 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003077/0.123, allocations: 109.7 kB / 296.7 MB, free: 21.77 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001298/0.1243, allocations: 0.7988 MB / 297.5 MB, free: 21.39 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.458e-05/0.1243, allocations: 116.7 kB / 297.6 MB, free: 21.32 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001052/0.1244, allocations: 35.83 kB / 297.7 MB, free: 21.31 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001571/0.1246, allocations: 112.4 kB / 297.8 MB, free: 21.27 MB / 266.7 MB Notification: Performance of SimCode: time 1.002e-06/0.1246, allocations: 0 / 297.8 MB, free: 21.27 MB / 266.7 MB Notification: Performance of Templates: time 0.01205/0.1366, allocations: 9.455 MB / 307.2 MB, free: 17.93 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 -s gbode -gbm=radauIIA3 -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: 2.770641826558858]