Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007941/0.0007941, allocations: 88.28 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0035/0.0035, allocations: 157.9 kB / 24.7 MB, free: 9.414 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8349/0.8349, allocations: 177 MB / 204.8 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 325.8 MB, free: 15.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.106e-05/2.25e-05, allocations: 3.125 kB / 325.8 MB, free: 15.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002903/0.002925, allocations: 2.779 MB / 328.5 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001215/0.00414, allocations: 1.017 MB / 329.6 MB, free: 11.55 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001145/0.004255, allocations: 7.938 kB / 329.6 MB, free: 11.54 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000189/0.004444, allocations: 79.3 kB / 329.6 MB, free: 11.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002242/0.004668, allocations: 166.7 kB / 329.8 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002088/0.004877, allocations: 195.6 kB / 330 MB, free: 11.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000668/0.005545, allocations: 0.6123 MB / 330.6 MB, free: 10.49 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001248/0.00567, allocations: 79.05 kB / 330.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002677/0.005938, allocations: 367.3 kB / 331.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002007/0.006138, allocations: 235.4 kB / 331.3 MB, free: 9.824 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.857e-05/0.006187, allocations: 48 kB / 331.3 MB, free: 9.777 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001035/0.00629, allocations: 99.86 kB / 331.4 MB, free: 9.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.23e-05/0.006383, allocations: 135.5 kB / 331.6 MB, free: 9.547 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003825/0.006765, allocations: 167.6 kB / 331.7 MB, free: 9.383 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004782/0.007243, allocations: 0.627 MB / 332.3 MB, free: 8.754 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.007246, allocations: 0 / 332.3 MB, free: 8.754 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.007247, allocations: 4 kB / 332.4 MB, free: 8.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.007253, allocations: 0 / 332.4 MB, free: 8.75 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.0009162/0.008169, allocations: 0.7 MB / 333.1 MB, free: 8.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.008204, allocations: 11.98 kB / 333.1 MB, free: 8.008 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.74e-05/0.008282, allocations: 52.64 kB / 333.1 MB, free: 7.957 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003291/0.008611, allocations: 260.5 kB / 333.4 MB, free: 7.676 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.638e-05/0.008637, allocations: 29.38 kB / 333.4 MB, free: 7.648 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.227e-05/0.00869, allocations: 36.38 kB / 333.4 MB, free: 7.613 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005441/0.009234, allocations: 434.9 kB / 333.9 MB, free: 7.184 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/0.009253, allocations: 20.08 kB / 333.9 MB, free: 7.164 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.05e-05/0.009283, allocations: 12.38 kB / 333.9 MB, free: 7.152 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.009294, allocations: 11.94 kB / 333.9 MB, free: 7.141 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005862/0.00988, allocations: 439.6 kB / 334.3 MB, free: 6.707 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001382/0.01126, allocations: 1.078 MB / 335.4 MB, free: 5.582 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005691/0.01183, allocations: 365.2 kB / 335.8 MB, free: 5.211 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002829/0.01211, allocations: 230.2 kB / 336 MB, free: 4.984 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.402e-05/0.01215, allocations: 4.5 kB / 336 MB, free: 4.98 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.179e-05/0.01217, allocations: 43.06 kB / 336 MB, free: 4.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 2.304e-06/0.01217, allocations: 7.922 kB / 336 MB, free: 4.922 MB / 298.7 MB Notification: Performance of matching and sorting (n=54): time 0.003079/0.01525, allocations: 1.965 MB / 338 MB, free: 2.898 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.54e-05/0.01529, allocations: 59.84 kB / 338.1 MB, free: 2.828 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001909/0.01548, allocations: 265.8 kB / 338.3 MB, free: 2.562 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.855e-05/0.01552, allocations: 45.69 kB / 338.4 MB, free: 2.512 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.682e-05/0.0156, allocations: 172.9 kB / 338.5 MB, free: 2.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004004/0.016, allocations: 190.4 kB / 338.7 MB, free: 2.152 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/0.01611, allocations: 94.33 kB / 338.8 MB, free: 2.055 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.735e-05/0.0162, allocations: 346.7 kB / 339.2 MB, free: 1.707 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002828/0.01648, allocations: 221.2 kB / 339.4 MB, free: 1.492 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003196/0.0168, allocations: 292.1 kB / 339.7 MB, free: 1.184 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004727/0.01727, allocations: 398.9 kB / 340 MB, free: 0.7773 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.01727, allocations: 0 / 340 MB, free: 0.7773 MB / 298.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0009112/0.01818, allocations: 0.7028 MB / 340.8 MB, free: 56 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.0182, allocations: 7.938 kB / 340.8 MB, free: 48 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.01821, allocations: 4 kB / 340.8 MB, free: 44 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006442/0.01885, allocations: 435 kB / 341.2 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001366/0.01899, allocations: 63.91 kB / 341.3 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001833/0.02082, allocations: 3.4 MB / 344.7 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002306/0.02105, allocations: 71.94 kB / 344.7 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.795e-05/0.02108, allocations: 28.22 kB / 344.7 MB, free: 11.82 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.000153/0.02123, allocations: 170 kB / 344.9 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.147e-05/0.02128, allocations: 39.77 kB / 345 MB, free: 11.6 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009345/0.02222, allocations: 0.7029 MB / 345.7 MB, free: 10.88 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.02222, allocations: 4 kB / 345.7 MB, free: 10.88 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.02223, allocations: 4 kB / 345.7 MB, free: 10.87 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.02223, allocations: 7.969 kB / 345.7 MB, free: 10.86 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001586/0.02382, allocations: 1.116 MB / 346.8 MB, free: 9.703 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.02382, allocations: 3.938 kB / 346.8 MB, free: 9.699 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001359/0.02396, allocations: 59.91 kB / 346.9 MB, free: 9.641 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000532/0.02449, allocations: 406.1 kB / 347.2 MB, free: 9.234 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.754e-05/0.02452, allocations: 19.98 kB / 347.3 MB, free: 9.215 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001671/0.02619, allocations: 3.362 MB / 350.6 MB, free: 5.625 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.02619, allocations: 4.062 kB / 350.6 MB, free: 5.621 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00117/0.02736, allocations: 1.008 MB / 351.6 MB, free: 4.59 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001192/0.02748, allocations: 79.69 kB / 351.7 MB, free: 4.512 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.535e-05/0.02752, allocations: 23.94 kB / 351.7 MB, free: 4.488 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002231/0.02775, allocations: 75.89 kB / 351.8 MB, free: 4.414 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001335/0.02788, allocations: 92.31 kB / 351.9 MB, free: 4.324 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.369e-05/0.0279, allocations: 19.98 kB / 351.9 MB, free: 4.305 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001168/0.02802, allocations: 189.2 kB / 352.1 MB, free: 4.121 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02802, allocations: 0 / 352.1 MB, free: 4.121 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002954/0.02832, allocations: 124 kB / 352.2 MB, free: 4 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.0006827/0.029, allocations: 404 kB / 352.6 MB, free: 3.727 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001171/0.03017, allocations: 0.748 MB / 353.4 MB, free: 2.949 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.03017, allocations: 0 / 353.4 MB, free: 2.949 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004632/0.03064, allocations: 0.522 MB / 353.9 MB, free: 2.402 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003382/0.03097, allocations: 80.72 kB / 354 MB, free: 2.324 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001231/0.03221, allocations: 0.9376 MB / 354.9 MB, free: 1.359 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001282/0.03233, allocations: 212.2 kB / 355.1 MB, free: 1.121 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.118e-05/0.0324, allocations: 36.48 kB / 355.2 MB, free: 1.086 MB / 314.7 MB Notification: Performance of SimCode: time 8.82e-07/0.03241, allocations: 7.938 kB / 355.2 MB, free: 1.078 MB / 314.7 MB Notification: Performance of Templates: time 0.007763/0.04017, allocations: 9.644 MB / 364.8 MB, free: 7.438 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.251631827093661]