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.002055/0.002055, allocations: 92.62 kB / 20.96 MB, free: 3.469 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.002353/0.002353, allocations: 145.5 kB / 24.25 MB, free: 184 kB / 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 1.502/1.502, allocations: 173.4 MB / 200.8 MB, free: 9.305 MB / 186.7 MB " [Timeout remaining time 178] 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 2.044e-06/2.044e-06, allocations: 0 / 267.3 MB, free: 6.742 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.784e-05/3.989e-05, allocations: 2.312 kB / 267.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004736/0.004776, allocations: 2.66 MB / 270 MB, free: 4.062 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002036/0.006812, allocations: 0.8648 MB / 270.8 MB, free: 3.191 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00024/0.007052, allocations: 7.938 kB / 270.8 MB, free: 3.184 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002536/0.007306, allocations: 55.45 kB / 270.9 MB, free: 3.129 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003276/0.007634, allocations: 114.9 kB / 271 MB, free: 3.016 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006329/0.008266, allocations: 227.6 kB / 271.2 MB, free: 2.793 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007832/0.00905, allocations: 0.5887 MB / 271.8 MB, free: 2.203 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00021/0.00926, allocations: 71.05 kB / 271.9 MB, free: 2.129 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006035/0.009863, allocations: 339.4 kB / 272.2 MB, free: 1.797 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004274/0.01029, allocations: 231.4 kB / 272.4 MB, free: 1.57 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000104/0.01039, allocations: 44 kB / 272.5 MB, free: 1.527 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002113/0.01061, allocations: 99.88 kB / 272.6 MB, free: 1.43 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001557/0.01076, allocations: 107.6 kB / 272.7 MB, free: 1.324 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002345/0.011, allocations: 171.6 kB / 272.9 MB, free: 1.156 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008053/0.0118, allocations: 0.5725 MB / 273.4 MB, free: 0.582 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.0118, allocations: 0 / 273.4 MB, free: 0.582 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.01181, allocations: 0 / 273.4 MB, free: 0.582 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.354e-05/0.01182, allocations: 0 / 273.4 MB, free: 0.582 MB / 250.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.001629/0.01345, allocations: 0.6728 MB / 274.1 MB, free: 15.88 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.01349, allocations: 8.922 kB / 274.1 MB, free: 15.87 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001787/0.01366, allocations: 72.7 kB / 274.2 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00049/0.01415, allocations: 256.5 kB / 274.4 MB, free: 15.52 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.582e-05/0.0142, allocations: 25.38 kB / 274.5 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.518e-05/0.01429, allocations: 36.38 kB / 274.5 MB, free: 15.46 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001074/0.01537, allocations: 442.8 kB / 274.9 MB, free: 15.03 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.313e-05/0.01539, allocations: 4.141 kB / 274.9 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.148e-05/0.01544, allocations: 12.38 kB / 274.9 MB, free: 15.01 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.843e-05/0.01546, allocations: 19.91 kB / 275 MB, free: 14.99 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00106/0.01652, allocations: 451.7 kB / 275.4 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002494/0.01902, allocations: 1.062 MB / 276.5 MB, free: 13.44 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008954/0.01991, allocations: 343.6 kB / 276.8 MB, free: 13.09 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005425/0.02045, allocations: 240.8 kB / 277 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.255e-05/0.0205, allocations: 8.375 kB / 277 MB, free: 12.85 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.842e-05/0.02054, allocations: 38.88 kB / 277.1 MB, free: 12.8 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.503e-06/0.02054, allocations: 0 / 277.1 MB, free: 12.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.005711/0.02625, allocations: 1.974 MB / 279.1 MB, free: 10.77 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.012e-05/0.0263, allocations: 55.91 kB / 279.1 MB, free: 10.7 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003048/0.0266, allocations: 245.8 kB / 279.3 MB, free: 10.45 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.538e-05/0.02667, allocations: 45.69 kB / 279.4 MB, free: 10.4 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001687/0.02684, allocations: 172.9 kB / 279.6 MB, free: 10.22 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001906/0.02703, allocations: 178.6 kB / 279.7 MB, free: 10.05 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002081/0.02724, allocations: 90.33 kB / 279.8 MB, free: 9.953 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002003/0.02744, allocations: 346.8 kB / 280.2 MB, free: 9.605 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005575/0.02799, allocations: 233.2 kB / 280.4 MB, free: 9.379 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005941/0.02859, allocations: 300.1 kB / 280.7 MB, free: 9.066 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009107/0.0295, allocations: 419 kB / 281.1 MB, free: 8.641 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.0295, allocations: 3.938 kB / 281.1 MB, free: 8.637 MB / 266.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001845/0.03134, allocations: 0.7691 MB / 281.9 MB, free: 7.852 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.03136, allocations: 4 kB / 281.9 MB, free: 7.848 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.03137, allocations: 4 kB / 281.9 MB, free: 7.844 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001383/0.03275, allocations: 0.553 MB / 282.4 MB, free: 7.281 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002958/0.03305, allocations: 67.89 kB / 282.5 MB, free: 7.215 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003627/0.03668, allocations: 3.411 MB / 285.9 MB, free: 3.578 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005118/0.03719, allocations: 71.94 kB / 286 MB, free: 3.508 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.192e-05/0.03724, allocations: 20.22 kB / 286 MB, free: 3.488 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.0002588/0.0375, allocations: 177.5 kB / 286.2 MB, free: 3.305 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001462/0.03765, allocations: 51.77 kB / 286.2 MB, free: 3.254 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001767/0.03941, allocations: 0.7108 MB / 286.9 MB, free: 2.523 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.03942, allocations: 4 kB / 286.9 MB, free: 2.52 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.03942, allocations: 0 / 286.9 MB, free: 2.52 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.889e-06/0.03943, allocations: 7.922 kB / 286.9 MB, free: 2.512 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002438/0.04187, allocations: 1.107 MB / 288 MB, free: 1.363 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.04188, allocations: 4 kB / 288 MB, free: 1.359 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002997/0.04217, allocations: 63.89 kB / 288.1 MB, free: 1.297 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001139/0.04331, allocations: 0.5177 MB / 288.6 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.677e-05/0.04337, allocations: 19.97 kB / 288.6 MB, free: 0.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1063/0.1497, allocations: 3.377 MB / 292 MB, free: 30.34 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.1497, allocations: 3.312 kB / 292 MB, free: 30.34 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001965/0.1516, allocations: 1.037 MB / 293.1 MB, free: 30.14 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000199/0.1518, allocations: 88.98 kB / 293.2 MB, free: 30.11 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.954e-05/0.1519, allocations: 16.5 kB / 293.2 MB, free: 30.11 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004556/0.1524, allocations: 73.61 kB / 293.2 MB, free: 30.1 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002265/0.1526, allocations: 93.11 kB / 293.3 MB, free: 30.08 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.315e-05/0.1526, allocations: 19.16 kB / 293.4 MB, free: 30.08 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001448/0.1528, allocations: 180 kB / 293.5 MB, free: 29.98 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1528, allocations: 0 / 293.5 MB, free: 29.98 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005035/0.1533, allocations: 123.1 kB / 293.6 MB, free: 29.96 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.0003015/0.1536, allocations: 137.9 kB / 293.8 MB, free: 29.86 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001449/0.155, allocations: 0.7737 MB / 294.6 MB, free: 29.48 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.155, allocations: 0 / 294.6 MB, free: 29.48 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008124/0.1558, allocations: 0.5193 MB / 295.1 MB, free: 29.17 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005435/0.1564, allocations: 81.47 kB / 295.2 MB, free: 29.15 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001712/0.1581, allocations: 0.8818 MB / 296 MB, free: 28.7 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001779/0.1583, allocations: 195.6 kB / 296.2 MB, free: 28.62 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001408/0.1584, allocations: 33.95 kB / 296.3 MB, free: 28.61 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.181e-05/0.1585, allocations: 38.73 kB / 296.3 MB, free: 28.6 MB / 266.7 MB Notification: Performance of SimCode: time 7.72e-07/0.1585, allocations: 0 / 296.3 MB, free: 28.6 MB / 266.7 MB Notification: Performance of Templates: time 0.01358/0.1721, allocations: 8.596 MB / 304.9 MB, free: 25.3 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.628241572994739]