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.001363/0.001363, allocations: 77.97 kB / 21.42 MB, free: 3.074 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.001606/0.001606, allocations: 165.3 kB / 24.82 MB, free: 9.27 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.9853/0.9853, allocations: 177.1 MB / 205.3 MB, free: 5.52 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.613e-06/1.613e-06, allocations: 0 / 273.4 MB, free: 1.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.502e-05/1.663e-05, allocations: 5.266 kB / 273.4 MB, free: 1.324 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002935/0.002951, allocations: 2.922 MB / 276.3 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001518/0.004469, allocations: 1.033 MB / 277.3 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002015/0.004671, allocations: 7.938 kB / 277.3 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002802/0.004951, allocations: 83.22 kB / 277.4 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003279/0.005279, allocations: 158.8 kB / 277.6 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003191/0.005598, allocations: 195.6 kB / 277.8 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004635/0.006062, allocations: 0.6123 MB / 278.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004335/0.006495, allocations: 79.03 kB / 278.5 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003898/0.006885, allocations: 367.3 kB / 278.8 MB, free: 11.86 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002931/0.007178, allocations: 243.4 kB / 279.1 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.346e-05/0.007251, allocations: 51.98 kB / 279.1 MB, free: 11.57 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001788/0.00743, allocations: 103.8 kB / 279.2 MB, free: 11.46 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001308/0.007561, allocations: 135.5 kB / 279.3 MB, free: 11.33 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001258/0.007687, allocations: 171.6 kB / 279.5 MB, free: 11.16 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004658/0.008153, allocations: 458.5 kB / 280 MB, free: 10.71 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.494e-06/0.008155, allocations: 0 / 280 MB, free: 10.71 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.008156, allocations: 0 / 280 MB, free: 10.71 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.008162, allocations: 0 / 280 MB, free: 10.71 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.0008513/0.009013, allocations: 0.7959 MB / 280.8 MB, free: 9.883 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.00905, allocations: 8.031 kB / 280.8 MB, free: 9.875 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001104/0.00916, allocations: 72.66 kB / 280.8 MB, free: 9.805 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003047/0.009465, allocations: 284 kB / 281.1 MB, free: 9.492 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.008e-05/0.009495, allocations: 29.38 kB / 281.1 MB, free: 9.465 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.358e-05/0.009549, allocations: 36.38 kB / 281.2 MB, free: 9.43 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003915/0.00994, allocations: 314.9 kB / 281.5 MB, free: 9.117 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/0.009956, allocations: 4.141 kB / 281.5 MB, free: 9.113 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.856e-05/0.009985, allocations: 16.38 kB / 281.5 MB, free: 9.098 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/0.009994, allocations: 11.94 kB / 281.5 MB, free: 9.086 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002897/0.01028, allocations: 214.7 kB / 281.7 MB, free: 8.875 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00129/0.01157, allocations: 1.004 MB / 282.7 MB, free: 7.832 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003808/0.01195, allocations: 257.6 kB / 283 MB, free: 7.562 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001449/0.0121, allocations: 117.1 kB / 283.1 MB, free: 7.445 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.53e-05/0.01213, allocations: 8.5 kB / 283.1 MB, free: 7.438 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.196e-05/0.01216, allocations: 41.89 kB / 283.1 MB, free: 7.387 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.443e-06/0.01216, allocations: 0 / 283.1 MB, free: 7.387 MB / 266.7 MB Notification: Performance of matching and sorting (n=54): time 0.002072/0.01423, allocations: 1.361 MB / 284.5 MB, free: 5.957 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.585e-05/0.01426, allocations: 59.91 kB / 284.6 MB, free: 5.883 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001679/0.01442, allocations: 296.2 kB / 284.9 MB, free: 5.578 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.062e-05/0.01446, allocations: 37.7 kB / 284.9 MB, free: 5.535 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.84e-05/0.01456, allocations: 227.6 kB / 285.1 MB, free: 5.309 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001089/0.01467, allocations: 194.4 kB / 285.3 MB, free: 5.117 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001146/0.01479, allocations: 107.9 kB / 285.4 MB, free: 5.004 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003641/0.01515, allocations: 0.5195 MB / 285.9 MB, free: 4.473 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001463/0.0153, allocations: 105.2 kB / 286 MB, free: 4.371 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001652/0.01546, allocations: 185 kB / 286.2 MB, free: 4.164 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002453/0.01571, allocations: 255.9 kB / 286.5 MB, free: 3.895 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.01571, allocations: 0 / 286.5 MB, free: 3.895 MB / 266.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0006058/0.01631, allocations: 0.4885 MB / 286.9 MB, free: 3.383 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.01633, allocations: 4 kB / 287 MB, free: 3.379 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.01633, allocations: 3.938 kB / 287 MB, free: 3.375 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005258/0.01686, allocations: 339.5 kB / 287.3 MB, free: 3.031 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001374/0.017, allocations: 63.91 kB / 287.3 MB, free: 2.969 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1049/0.1219, allocations: 4.377 MB / 291.7 MB, free: 23.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003271/0.1222, allocations: 52.77 kB / 291.8 MB, free: 23.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.075e-05/0.1223, allocations: 16.92 kB / 291.8 MB, free: 23.41 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.0001737/0.1224, allocations: 192.6 kB / 292 MB, free: 23.25 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.695e-05/0.1225, allocations: 53.19 kB / 292 MB, free: 23.25 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007445/0.1233, allocations: 0.4956 MB / 292.5 MB, free: 23.18 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.1233, allocations: 7.453 kB / 292.5 MB, free: 23.18 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.1233, allocations: 1 kB / 292.5 MB, free: 23.18 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.1233, allocations: 4.125 kB / 292.5 MB, free: 23.18 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001124/0.1244, allocations: 0.8879 MB / 293.4 MB, free: 22.88 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.1244, allocations: 4.594 kB / 293.4 MB, free: 22.87 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001517/0.1246, allocations: 48.98 kB / 293.5 MB, free: 22.87 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005299/0.1251, allocations: 337.7 kB / 293.8 MB, free: 22.84 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.472e-05/0.1251, allocations: 22.83 kB / 293.8 MB, free: 22.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001275/0.1264, allocations: 4.39 MB / 298.2 MB, free: 18.65 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1264, allocations: 1.156 kB / 298.2 MB, free: 18.65 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008044/0.1272, allocations: 0.7066 MB / 298.9 MB, free: 18.41 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001288/0.1273, allocations: 82.64 kB / 299 MB, free: 18.41 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.846e-05/0.1274, allocations: 19.77 kB / 299 MB, free: 18.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001971/0.1276, allocations: 52.28 kB / 299.1 MB, free: 18.41 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.1277, allocations: 103.6 kB / 299.2 MB, free: 18.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.741e-05/0.1278, allocations: 24.53 kB / 299.2 MB, free: 18.41 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.127e-05/0.1278, allocations: 199.9 kB / 299.4 MB, free: 18.28 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1278, allocations: 0 / 299.4 MB, free: 18.28 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003531/0.1282, allocations: 123.5 kB / 299.5 MB, free: 18.28 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.0007226/0.1289, allocations: 370.2 kB / 299.9 MB, free: 18.18 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006784/0.1296, allocations: 0.6804 MB / 300.6 MB, free: 17.81 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1296, allocations: 3.656 kB / 300.6 MB, free: 17.81 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003919/0.13, allocations: 0.5538 MB / 301.1 MB, free: 17.45 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003609/0.1304, allocations: 108.1 kB / 301.2 MB, free: 17.45 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001326/0.1317, allocations: 0.864 MB / 302.1 MB, free: 17 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.97e-05/0.1317, allocations: 113.4 kB / 302.2 MB, free: 16.93 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001019/0.1319, allocations: 31.67 kB / 302.2 MB, free: 16.92 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001611/0.132, allocations: 137.6 kB / 302.4 MB, free: 16.85 MB / 266.7 MB Notification: Performance of SimCode: time 1.082e-06/0.132, allocations: 0 / 302.4 MB, free: 16.85 MB / 266.7 MB Notification: Performance of Templates: time 0.01222/0.1442, allocations: 9.566 MB / 311.9 MB, free: 12.76 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: 2.870625543873757]