Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 85.17 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001365/0.001365, allocations: 147.4 kB / 24.89 MB, free: 8.742 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9017/0.9017, allocations: 173.4 MB / 201.5 MB, free: 8.734 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.112e-06/1.112e-06, allocations: 0 / 268.4 MB, free: 6.051 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.258e-05/1.37e-05, allocations: 10.05 kB / 268.5 MB, free: 6.043 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002687/0.002701, allocations: 2.796 MB / 271.3 MB, free: 3.227 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00102/0.003721, allocations: 0.9034 MB / 272.2 MB, free: 2.316 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001086/0.00383, allocations: 7.938 kB / 272.2 MB, free: 2.309 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001808/0.00401, allocations: 63.44 kB / 272.2 MB, free: 2.246 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001758/0.004186, allocations: 111 kB / 272.3 MB, free: 2.137 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003413/0.004527, allocations: 227.5 kB / 272.6 MB, free: 1.914 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000353/0.00488, allocations: 0.5848 MB / 273.1 MB, free: 1.328 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001318/0.005012, allocations: 83.02 kB / 273.2 MB, free: 1.238 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002636/0.005276, allocations: 343.4 kB / 273.6 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002101/0.005486, allocations: 223.5 kB / 273.8 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.698e-05/0.005533, allocations: 47.94 kB / 273.8 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001114/0.005644, allocations: 95.89 kB / 273.9 MB, free: 0.543 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.518e-05/0.00573, allocations: 119.6 kB / 274 MB, free: 436 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000104/0.005833, allocations: 163.7 kB / 274.2 MB, free: 272 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003451/0.006179, allocations: 430.5 kB / 274.6 MB, free: 15.84 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.402e-06/0.00618, allocations: 0 / 274.6 MB, free: 15.84 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.006181, allocations: 4 kB / 274.6 MB, free: 15.84 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.817e-06/0.006184, allocations: 0 / 274.6 MB, free: 15.84 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.0006488/0.006833, allocations: 0.6168 MB / 275.2 MB, free: 15.2 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.564e-05/0.006859, allocations: 8.922 kB / 275.2 MB, free: 15.19 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.082e-05/0.00693, allocations: 60.89 kB / 275.3 MB, free: 15.13 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002125/0.007142, allocations: 204.7 kB / 275.5 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.318e-05/0.007165, allocations: 29.38 kB / 275.5 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.109e-05/0.007216, allocations: 48.3 kB / 275.6 MB, free: 14.83 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003315/0.007548, allocations: 319.6 kB / 275.9 MB, free: 14.51 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.007562, allocations: 4.188 kB / 275.9 MB, free: 14.51 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.504e-05/0.007587, allocations: 16.38 kB / 275.9 MB, free: 14.49 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.007594, allocations: 11.94 kB / 275.9 MB, free: 14.48 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002288/0.007823, allocations: 182.8 kB / 276.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001224/0.009048, allocations: 0.7624 MB / 276.9 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003021/0.00935, allocations: 216.2 kB / 277.1 MB, free: 13.28 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001159/0.009465, allocations: 116.9 kB / 277.2 MB, free: 13.17 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.977e-05/0.009495, allocations: 4.375 kB / 277.2 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.858e-05/0.009514, allocations: 42.88 kB / 277.2 MB, free: 13.11 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.513e-06/0.009515, allocations: 0 / 277.2 MB, free: 13.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.001813/0.01133, allocations: 1.264 MB / 278.5 MB, free: 11.79 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.373e-05/0.01135, allocations: 55.91 kB / 278.6 MB, free: 11.72 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001179/0.01147, allocations: 237 kB / 278.8 MB, free: 11.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.173e-05/0.0115, allocations: 37.7 kB / 278.8 MB, free: 11.43 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.708e-05/0.01156, allocations: 156.9 kB / 279 MB, free: 11.28 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.491e-05/0.01164, allocations: 182.5 kB / 279.2 MB, free: 11.1 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.963e-05/0.01174, allocations: 98.23 kB / 279.2 MB, free: 11 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.748e-05/0.01182, allocations: 354.7 kB / 279.6 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001223/0.01194, allocations: 89.27 kB / 279.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001363/0.01208, allocations: 160.1 kB / 279.8 MB, free: 10.38 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002203/0.0123, allocations: 254.8 kB / 280.1 MB, free: 10.11 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.0123, allocations: 0 / 280.1 MB, free: 10.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0004706/0.01277, allocations: 400.8 kB / 280.5 MB, free: 9.703 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.01279, allocations: 14.91 kB / 280.5 MB, free: 9.691 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.01279, allocations: 0 / 280.5 MB, free: 9.691 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005286/0.01332, allocations: 446.2 kB / 280.9 MB, free: 9.246 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001364/0.01345, allocations: 71.89 kB / 281 MB, free: 9.176 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001527/0.01498, allocations: 3.006 MB / 284 MB, free: 5.969 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00016/0.01514, allocations: 48.12 kB / 284.1 MB, free: 5.922 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.354e-05/0.01517, allocations: 19.98 kB / 284.1 MB, free: 5.902 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.0001057/0.01527, allocations: 148.4 kB / 284.2 MB, free: 5.746 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.008e-05/0.01532, allocations: 31.97 kB / 284.2 MB, free: 5.715 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004646/0.01579, allocations: 428.7 kB / 284.7 MB, free: 5.281 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.01579, allocations: 4 kB / 284.7 MB, free: 5.277 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.01579, allocations: 7.984 kB / 284.7 MB, free: 5.27 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.0158, allocations: 3.938 kB / 284.7 MB, free: 5.266 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007546/0.01655, allocations: 0.6561 MB / 285.3 MB, free: 4.574 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.01655, allocations: 0 / 285.3 MB, free: 4.574 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001313/0.01668, allocations: 51.91 kB / 285.4 MB, free: 4.523 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000471/0.01716, allocations: 442.2 kB / 285.8 MB, free: 4.082 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.252e-05/0.01718, allocations: 15.98 kB / 285.8 MB, free: 4.066 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001255/0.01843, allocations: 3.016 MB / 288.9 MB, free: 0.8555 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.01843, allocations: 0 / 288.9 MB, free: 0.8555 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005828/0.01902, allocations: 0.5794 MB / 289.4 MB, free: 260 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.424e-05/0.01911, allocations: 51.78 kB / 289.5 MB, free: 208 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.009e-05/0.01915, allocations: 12 kB / 289.5 MB, free: 196 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001636/0.01931, allocations: 51.94 kB / 289.5 MB, free: 144 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001178/0.01943, allocations: 96.34 kB / 289.6 MB, free: 48 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.082e-05/0.01946, allocations: 15.98 kB / 289.7 MB, free: 32 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.1009/0.1204, allocations: 79.03 kB / 289.7 MB, free: 27.94 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1204, allocations: 0 / 289.7 MB, free: 27.94 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004183/0.1208, allocations: 120.7 kB / 289.8 MB, free: 27.94 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.0001709/0.121, allocations: 125.8 kB / 290 MB, free: 27.87 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000665/0.1216, allocations: 0.548 MB / 290.5 MB, free: 27.64 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/0.1216, allocations: 1.969 kB / 290.5 MB, free: 27.64 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003635/0.122, allocations: 442.8 kB / 291 MB, free: 27.41 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002694/0.1223, allocations: 81.98 kB / 291 MB, free: 27.41 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/0.1234, allocations: 0.7668 MB / 291.8 MB, free: 27.07 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.397e-05/0.1235, allocations: 109.2 kB / 291.9 MB, free: 27 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.663e-05/0.1235, allocations: 30.72 kB / 291.9 MB, free: 27 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001301/0.1237, allocations: 106.6 kB / 292 MB, free: 26.96 MB / 266.7 MB Notification: Performance of SimCode: time 7.31e-07/0.1237, allocations: 3.625 kB / 292 MB, free: 26.96 MB / 266.7 MB Notification: Performance of Templates: time 0.01036/0.134, allocations: 9.358 MB / 301.4 MB, free: 24.45 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.8975321240723133]