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.001529/0.001529, allocations: 112.2 kB / 21.19 MB, free: 0.7617 MB / 14.72 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.001651/0.001651, allocations: 209.9 kB / 24.49 MB, free: 4.145 MB / 14.72 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.383/1.383, allocations: 230.6 MB / 258.3 MB, free: 7.965 MB / 206.1 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 0.001581/0.001581, allocations: 47.92 kB / 379 MB, free: 2.625 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2464/0.248, allocations: 53.35 MB / 432.4 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004883/0.2529, allocations: 2.989 MB / 435.4 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001985/0.2549, allocations: 1.064 MB / 436.4 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001952/0.2551, allocations: 7.938 kB / 436.4 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003246/0.2554, allocations: 75.31 kB / 436.5 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004119/0.2558, allocations: 166.9 kB / 436.7 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004325/0.2562, allocations: 187.7 kB / 436.9 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006956/0.2569, allocations: 0.6008 MB / 437.5 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001995/0.2571, allocations: 86.97 kB / 437.6 MB, free: 1.742 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003503/0.2575, allocations: 267.2 kB / 437.8 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004041/0.2579, allocations: 291 kB / 438.1 MB, free: 1.195 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.231e-05/0.258, allocations: 51.94 kB / 438.1 MB, free: 1.145 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000197/0.2582, allocations: 107.9 kB / 438.3 MB, free: 1.039 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000176/0.2584, allocations: 123.6 kB / 438.4 MB, free: 0.918 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002544/0.2586, allocations: 234.9 kB / 438.6 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007156/0.2593, allocations: 0.585 MB / 439.2 MB, free: 108 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.686e-06/0.2593, allocations: 0 / 439.2 MB, free: 108 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2593, allocations: 0 / 439.2 MB, free: 108 kB / 334.1 MB Notification: Performance of Transformations before backend: time 7.635e-06/0.2593, allocations: 4 kB / 439.2 MB, free: 104 kB / 334.1 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.001514/0.2609, allocations: 0.7156 MB / 439.9 MB, free: 15.35 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.2609, allocations: 8.031 kB / 439.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/0.261, allocations: 48.66 kB / 440 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005172/0.2615, allocations: 264.8 kB / 440.2 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.798e-05/0.2616, allocations: 29.38 kB / 440.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.532e-05/0.2617, allocations: 36.38 kB / 440.3 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009037/0.2626, allocations: 438.6 kB / 440.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.066e-05/0.2626, allocations: 19.94 kB / 440.7 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.228e-05/0.2626, allocations: 11.94 kB / 440.7 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.18e-05/0.2626, allocations: 12 kB / 440.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009922/0.2636, allocations: 443.6 kB / 441.2 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002469/0.2661, allocations: 1.221 MB / 442.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009214/0.267, allocations: 377.1 kB / 442.8 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004886/0.2675, allocations: 226.1 kB / 443 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.485e-05/0.2676, allocations: 8.438 kB / 443 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.567e-05/0.2676, allocations: 39 kB / 443 MB, free: 12.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.664e-06/0.2676, allocations: 0 / 443 MB, free: 12.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.00542/0.273, allocations: 1.947 MB / 445 MB, free: 10.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.559e-05/0.2731, allocations: 67.78 kB / 445.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003147/0.2734, allocations: 269.8 kB / 445.3 MB, free: 9.746 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.017e-05/0.2735, allocations: 41.7 kB / 445.4 MB, free: 9.699 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001354/0.2736, allocations: 168.9 kB / 445.5 MB, free: 9.527 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001777/0.2738, allocations: 194.5 kB / 445.7 MB, free: 9.336 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001804/0.274, allocations: 98.28 kB / 445.8 MB, free: 9.234 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.2741, allocations: 342.8 kB / 446.2 MB, free: 8.891 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005227/0.2746, allocations: 229.2 kB / 446.4 MB, free: 8.668 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005586/0.2752, allocations: 284.1 kB / 446.7 MB, free: 8.375 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008453/0.2761, allocations: 402.7 kB / 447 MB, free: 7.961 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2761, allocations: 0 / 447 MB, free: 7.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001657/0.2777, allocations: 0.7182 MB / 447.8 MB, free: 7.227 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.2777, allocations: 7.938 kB / 447.8 MB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.2777, allocations: 0 / 447.8 MB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001112/0.2788, allocations: 432 kB / 448.2 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002811/0.2791, allocations: 71.89 kB / 448.3 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003401/0.2825, allocations: 3.458 MB / 451.7 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005226/0.2831, allocations: 76.06 kB / 451.8 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.454e-05/0.2831, allocations: 16 kB / 451.8 MB, free: 2.918 MB / 350.1 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.0002557/0.2834, allocations: 162.4 kB / 452 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000101/0.2835, allocations: 43.77 kB / 452 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001706/0.2852, allocations: 0.7029 MB / 452.7 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.679e-06/0.2852, allocations: 12 kB / 452.7 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.2852, allocations: 0 / 452.7 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.2852, allocations: 3.984 kB / 452.7 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002446/0.2876, allocations: 1.244 MB / 454 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.2876, allocations: 4 kB / 454 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002818/0.2879, allocations: 55.97 kB / 454 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001/0.2889, allocations: 406.2 kB / 454.4 MB, free: 212 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.846e-05/0.289, allocations: 19.97 kB / 454.4 MB, free: 192 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003287/0.2922, allocations: 3.403 MB / 457.9 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.2922, allocations: 0 / 457.9 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002146/0.2944, allocations: 1.015 MB / 458.9 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002255/0.2946, allocations: 87.81 kB / 459 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.566e-05/0.2947, allocations: 20 kB / 459 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004777/0.2952, allocations: 75.89 kB / 459 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002222/0.2954, allocations: 100.2 kB / 459.1 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.552e-05/0.2955, allocations: 19.98 kB / 459.2 MB, free: 11.2 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002203/0.2957, allocations: 193.2 kB / 459.4 MB, free: 11.01 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2957, allocations: 3.938 kB / 459.4 MB, free: 11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005221/0.2962, allocations: 123.9 kB / 459.5 MB, free: 10.88 MB / 366.1 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.001388/0.2976, allocations: 385.2 kB / 459.9 MB, free: 10.63 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001727/0.2993, allocations: 0.7558 MB / 460.6 MB, free: 9.852 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.2993, allocations: 0 / 460.6 MB, free: 9.852 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009678/0.3003, allocations: 0.5106 MB / 461.1 MB, free: 9.312 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000573/0.3009, allocations: 79.12 kB / 461.2 MB, free: 9.238 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002257/0.3031, allocations: 1.057 MB / 462.3 MB, free: 8.145 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004813/0.3036, allocations: 0.8085 MB / 463.1 MB, free: 7.305 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001246/0.3037, allocations: 39.42 kB / 463.1 MB, free: 7.266 MB / 366.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3037, allocations: 3.938 kB / 463.1 MB, free: 7.262 MB / 366.1 MB Notification: Performance of Templates: time 0.01429/0.318, allocations: 9.509 MB / 472.6 MB, free: 13.76 MB / 382.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/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: 8.230588419130072]