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.002187/0.002187, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.002552/0.002552, allocations: 165.3 kB / 24.28 MB, free: 156 kB / 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 1.639/1.639, allocations: 177.1 MB / 204.6 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] 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 2.214e-06/2.214e-06, allocations: 0 / 272.3 MB, free: 1.863 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.239e-05/4.46e-05, allocations: 2.312 kB / 272.3 MB, free: 1.859 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004964/0.005009, allocations: 2.933 MB / 275.2 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001978/0.006987, allocations: 1.029 MB / 276.3 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001429/0.007129, allocations: 4 kB / 276.3 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003176/0.007447, allocations: 83.22 kB / 276.3 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000388/0.007835, allocations: 158.8 kB / 276.5 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005956/0.008431, allocations: 203.5 kB / 276.7 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007079/0.009139, allocations: 0.6123 MB / 277.3 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001828/0.009321, allocations: 75.03 kB / 277.4 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000515/0.009836, allocations: 375.3 kB / 277.8 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000393/0.01023, allocations: 235.4 kB / 278 MB, free: 12.15 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001036/0.01033, allocations: 48 kB / 278 MB, free: 12.1 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002202/0.01055, allocations: 95.92 kB / 278.1 MB, free: 12.01 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002003/0.01075, allocations: 143.5 kB / 278.3 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002241/0.01098, allocations: 163.6 kB / 278.4 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000848/0.01183, allocations: 0.6269 MB / 279.1 MB, free: 11.08 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.01183, allocations: 0 / 279.1 MB, free: 11.08 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.01183, allocations: 0 / 279.1 MB, free: 11.08 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.01184, allocations: 0 / 279.1 MB, free: 11.08 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.00155/0.01339, allocations: 0.8073 MB / 279.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.01342, allocations: 8.031 kB / 279.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001855/0.01361, allocations: 80.64 kB / 279.9 MB, free: 10.15 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004778/0.01408, allocations: 267.3 kB / 280.2 MB, free: 9.859 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.78e-05/0.01412, allocations: 29.38 kB / 280.2 MB, free: 9.832 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.948e-05/0.0142, allocations: 32.38 kB / 280.3 MB, free: 9.801 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008652/0.01507, allocations: 426.8 kB / 280.7 MB, free: 9.379 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.619e-05/0.01509, allocations: 8.141 kB / 280.7 MB, free: 9.371 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.53e-05/0.01514, allocations: 12.38 kB / 280.7 MB, free: 9.359 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.302e-05/0.01515, allocations: 11.94 kB / 280.7 MB, free: 9.348 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009858/0.01614, allocations: 411.7 kB / 281.1 MB, free: 8.945 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00253/0.01867, allocations: 1.157 MB / 282.3 MB, free: 7.738 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009047/0.01957, allocations: 357.7 kB / 282.6 MB, free: 7.371 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004728/0.02005, allocations: 213.1 kB / 282.8 MB, free: 7.16 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.239e-05/0.0201, allocations: 8.5 kB / 282.8 MB, free: 7.152 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.97e-05/0.02014, allocations: 45.83 kB / 282.9 MB, free: 7.098 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.583e-06/0.02014, allocations: 0 / 282.9 MB, free: 7.098 MB / 266.7 MB Notification: Performance of matching and sorting (n=54): time 0.005423/0.02556, allocations: 1.888 MB / 284.8 MB, free: 5.141 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.361e-05/0.02562, allocations: 59.91 kB / 284.8 MB, free: 5.066 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000374/0.02599, allocations: 340.2 kB / 285.2 MB, free: 4.719 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.82e-05/0.02606, allocations: 41.7 kB / 285.2 MB, free: 4.672 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001718/0.02623, allocations: 227.7 kB / 285.4 MB, free: 4.445 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002115/0.02644, allocations: 202.4 kB / 285.6 MB, free: 4.246 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002145/0.02666, allocations: 115.9 kB / 285.7 MB, free: 4.125 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002964/0.02695, allocations: 0.5352 MB / 286.3 MB, free: 3.578 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004894/0.02744, allocations: 205.2 kB / 286.5 MB, free: 3.379 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005672/0.02801, allocations: 313 kB / 286.8 MB, free: 3.047 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008341/0.02884, allocations: 408 kB / 287.2 MB, free: 2.629 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.02884, allocations: 0 / 287.2 MB, free: 2.629 MB / 266.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001714/0.03056, allocations: 0.7305 MB / 287.9 MB, free: 1.875 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.03058, allocations: 7.938 kB / 287.9 MB, free: 1.867 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.03059, allocations: 4 kB / 287.9 MB, free: 1.863 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00119/0.03178, allocations: 422.9 kB / 288.3 MB, free: 1.438 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002652/0.03204, allocations: 63.91 kB / 288.4 MB, free: 1.375 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1128/0.1448, allocations: 4.681 MB / 293.1 MB, free: 24.13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004906/0.1453, allocations: 53.91 kB / 293.1 MB, free: 24.13 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.835e-05/0.1454, allocations: 18.3 kB / 293.1 MB, free: 24.13 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.0002192/0.1456, allocations: 206.5 kB / 293.3 MB, free: 23.97 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001264/0.1457, allocations: 57.19 kB / 293.4 MB, free: 23.97 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001524/0.1472, allocations: 0.6927 MB / 294.1 MB, free: 23.89 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.1472, allocations: 7.438 kB / 294.1 MB, free: 23.89 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.1472, allocations: 1.844 kB / 294.1 MB, free: 23.89 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.393e-06/0.1472, allocations: 4 kB / 294.1 MB, free: 23.89 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002044/0.1493, allocations: 1.191 MB / 295.3 MB, free: 23.39 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.1493, allocations: 1.094 kB / 295.3 MB, free: 23.39 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002533/0.1495, allocations: 59.62 kB / 295.4 MB, free: 23.39 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009681/0.1505, allocations: 403.4 kB / 295.8 MB, free: 23.27 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.953e-05/0.1506, allocations: 18.8 kB / 295.8 MB, free: 23.26 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002256/0.1528, allocations: 4.659 MB / 300.4 MB, free: 18.8 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.1528, allocations: 0 / 300.4 MB, free: 18.8 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001797/0.1546, allocations: 1.047 MB / 301.5 MB, free: 18.31 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002144/0.1548, allocations: 83.56 kB / 301.6 MB, free: 18.28 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.03e-05/0.1549, allocations: 18.94 kB / 301.6 MB, free: 18.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004029/0.1553, allocations: 52.92 kB / 301.6 MB, free: 18.26 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002394/0.1556, allocations: 102.6 kB / 301.7 MB, free: 18.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.446e-05/0.1556, allocations: 21.22 kB / 301.8 MB, free: 18.23 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000185/0.1558, allocations: 229 kB / 302 MB, free: 18.08 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1558, allocations: 0 / 302 MB, free: 18.08 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005063/0.1563, allocations: 124.8 kB / 302.1 MB, free: 18.06 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.002426/0.1587, allocations: 419.1 kB / 302.5 MB, free: 17.94 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00153/0.1602, allocations: 0.8787 MB / 303.4 MB, free: 17.45 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.1603, allocations: 4 kB / 303.4 MB, free: 17.44 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009067/0.1612, allocations: 0.6427 MB / 304 MB, free: 17.01 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005982/0.1618, allocations: 111.8 kB / 304.1 MB, free: 16.97 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001767/0.1635, allocations: 0.9074 MB / 305 MB, free: 16.45 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001929/0.1637, allocations: 204.6 kB / 305.2 MB, free: 16.36 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001336/0.1638, allocations: 35.2 kB / 305.3 MB, free: 16.34 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001064/0.164, allocations: 41.41 kB / 305.3 MB, free: 16.33 MB / 266.7 MB Notification: Performance of SimCode: time 9.12e-07/0.164, allocations: 0 / 305.3 MB, free: 16.33 MB / 266.7 MB Notification: Performance of Templates: time 0.01341/0.1774, allocations: 8.823 MB / 314.1 MB, free: 10.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 -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.918870736961253]