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.0007758/0.0007758, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.003099/0.003099, allocations: 163.5 kB / 24.7 MB, free: 9.426 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.857/0.857, allocations: 177.1 MB / 205 MB, free: 5.723 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.653e-06/1.653e-06, allocations: 0 / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.721e-05/1.887e-05, allocations: 2.281 kB / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.00297/0.002989, allocations: 2.789 MB / 328.6 MB, free: 12.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001064/0.004053, allocations: 1.013 MB / 329.6 MB, free: 11.6 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001172/0.00417, allocations: 7.938 kB / 329.6 MB, free: 11.59 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002697/0.00444, allocations: 83.28 kB / 329.7 MB, free: 11.51 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002382/0.004678, allocations: 162.7 kB / 329.9 MB, free: 11.35 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002354/0.004913, allocations: 195.7 kB / 330.1 MB, free: 11.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003894/0.005303, allocations: 0.6161 MB / 330.7 MB, free: 10.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001445/0.005447, allocations: 78.98 kB / 330.8 MB, free: 10.46 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005273/0.005974, allocations: 363.3 kB / 331.1 MB, free: 10.1 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000228/0.006202, allocations: 235.4 kB / 331.3 MB, free: 9.871 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.627e-05/0.006259, allocations: 44 kB / 331.4 MB, free: 9.828 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001141/0.006373, allocations: 111.8 kB / 331.5 MB, free: 9.719 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001164/0.006489, allocations: 135.5 kB / 331.6 MB, free: 9.586 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001041/0.006593, allocations: 159.6 kB / 331.8 MB, free: 9.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004554/0.007049, allocations: 0.6309 MB / 332.4 MB, free: 8.797 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.044e-06/0.007051, allocations: 4 kB / 332.4 MB, free: 8.793 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.007052, allocations: 0 / 332.4 MB, free: 8.793 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.007057, allocations: 0 / 332.4 MB, free: 8.793 MB / 298.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.0008933/0.007951, allocations: 0.7028 MB / 333.1 MB, free: 8.062 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/0.007987, allocations: 8.031 kB / 333.1 MB, free: 8.055 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.334e-05/0.00806, allocations: 48.66 kB / 333.2 MB, free: 8.008 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003085/0.008369, allocations: 268.4 kB / 333.4 MB, free: 7.715 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.865e-05/0.008398, allocations: 29.38 kB / 333.5 MB, free: 7.688 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.357e-05/0.008451, allocations: 36.38 kB / 333.5 MB, free: 7.652 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005415/0.008993, allocations: 434.9 kB / 333.9 MB, free: 7.223 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.00901, allocations: 12.14 kB / 333.9 MB, free: 7.211 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.915e-05/0.009039, allocations: 16.38 kB / 334 MB, free: 7.195 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.365e-06/0.009047, allocations: 11.94 kB / 334 MB, free: 7.184 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005616/0.009609, allocations: 439.7 kB / 334.4 MB, free: 6.754 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001332/0.01094, allocations: 1.071 MB / 335.5 MB, free: 5.637 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005446/0.01149, allocations: 369.1 kB / 335.8 MB, free: 5.266 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002735/0.01176, allocations: 234.2 kB / 336.1 MB, free: 5.035 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.452e-05/0.01179, allocations: 8.5 kB / 336.1 MB, free: 5.027 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.864e-05/0.01181, allocations: 39.06 kB / 336.1 MB, free: 4.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 1.502e-06/0.01181, allocations: 0 / 336.1 MB, free: 4.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=54): time 0.003246/0.01506, allocations: 1.969 MB / 338.1 MB, free: 2.949 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.681e-05/0.0151, allocations: 55.91 kB / 338.1 MB, free: 2.883 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004262/0.01552, allocations: 261.8 kB / 338.4 MB, free: 2.621 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.611e-05/0.01556, allocations: 45.7 kB / 338.4 MB, free: 2.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.896e-05/0.01563, allocations: 168.9 kB / 338.6 MB, free: 2.402 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.808e-05/0.01573, allocations: 198.4 kB / 338.8 MB, free: 2.207 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/0.01583, allocations: 94.33 kB / 338.9 MB, free: 2.109 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.621e-05/0.01592, allocations: 346.7 kB / 339.2 MB, free: 1.762 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002883/0.01621, allocations: 221.2 kB / 339.4 MB, free: 1.547 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000307/0.01652, allocations: 296 kB / 339.7 MB, free: 1.238 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005284/0.01705, allocations: 395 kB / 340.1 MB, free: 0.832 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.01705, allocations: 0 / 340.1 MB, free: 0.832 MB / 298.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.000972/0.01802, allocations: 0.7144 MB / 340.8 MB, free: 104 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.01803, allocations: 11.94 kB / 340.8 MB, free: 92 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.496e-06/0.01804, allocations: 0 / 340.8 MB, free: 92 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006573/0.0187, allocations: 428.7 kB / 341.3 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000135/0.01883, allocations: 67.89 kB / 341.3 MB, free: 15.6 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001832/0.02066, allocations: 3.389 MB / 344.7 MB, free: 11.98 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002412/0.0209, allocations: 72.16 kB / 344.8 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.583e-05/0.02093, allocations: 27.98 kB / 344.8 MB, free: 11.88 MB / 314.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.0001389/0.02107, allocations: 169.7 kB / 345 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.189e-05/0.02113, allocations: 39.77 kB / 345 MB, free: 11.66 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001209/0.02234, allocations: 0.6991 MB / 345.7 MB, free: 10.95 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.02234, allocations: 11.98 kB / 345.7 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-06/0.02235, allocations: 0 / 345.7 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.02235, allocations: 3.984 kB / 345.7 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001286/0.02364, allocations: 1.116 MB / 346.8 MB, free: 9.766 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.02364, allocations: 3.938 kB / 346.8 MB, free: 9.762 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000139/0.02378, allocations: 63.91 kB / 346.9 MB, free: 9.699 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005402/0.02432, allocations: 403.2 kB / 347.3 MB, free: 9.297 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.56e-05/0.02434, allocations: 19.98 kB / 347.3 MB, free: 9.277 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001624/0.02597, allocations: 3.357 MB / 350.7 MB, free: 5.695 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.02597, allocations: 4.094 kB / 350.7 MB, free: 5.691 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001174/0.02714, allocations: 1.008 MB / 351.7 MB, free: 4.66 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001217/0.02726, allocations: 87.72 kB / 351.8 MB, free: 4.574 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.457e-05/0.02731, allocations: 23.94 kB / 351.8 MB, free: 4.551 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002362/0.02755, allocations: 71.91 kB / 351.9 MB, free: 4.48 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001234/0.02767, allocations: 92.31 kB / 352 MB, free: 4.391 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.47e-05/0.02769, allocations: 27.91 kB / 352 MB, free: 4.363 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001187/0.02781, allocations: 189.2 kB / 352.2 MB, free: 4.18 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02781, allocations: 0 / 352.2 MB, free: 4.18 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002897/0.0281, allocations: 116 kB / 352.3 MB, free: 4.066 MB / 314.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.0009112/0.02901, allocations: 412.1 kB / 352.7 MB, free: 3.812 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008894/0.0299, allocations: 0.7558 MB / 353.4 MB, free: 3.031 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.0299, allocations: 0 / 353.4 MB, free: 3.031 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004652/0.03037, allocations: 0.5183 MB / 354 MB, free: 2.488 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003048/0.03067, allocations: 76 kB / 354 MB, free: 2.418 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00116/0.03183, allocations: 0.9494 MB / 355 MB, free: 1.438 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001184/0.03195, allocations: 204.2 kB / 355.2 MB, free: 1.207 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.796e-05/0.03202, allocations: 40.48 kB / 355.2 MB, free: 1.168 MB / 314.7 MB Notification: Performance of SimCode: time 2.81e-07/0.03202, allocations: 4 kB / 355.2 MB, free: 1.164 MB / 314.7 MB Notification: Performance of Templates: time 0.00732/0.03934, allocations: 9.652 MB / 364.9 MB, free: 7.516 MB / 330.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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 480] 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: 5.407882342115045]