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.001284/0.001284, allocations: 106.5 kB / 21.22 MB, free: 0.6797 MB / 14.72 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.00138/0.00138, allocations: 209.3 kB / 24.54 MB, free: 4.055 MB / 14.72 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 1.446/1.446, allocations: 230.3 MB / 258 MB, free: 8.262 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001929/0.001929, allocations: 59.91 kB / 378.8 MB, free: 2.789 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2383/0.2402, allocations: 53.36 MB / 432.1 MB, free: 7.09 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004859/0.2451, allocations: 2.977 MB / 435.1 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001954/0.2471, allocations: 1.068 MB / 436.2 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001627/0.2472, allocations: 15.88 kB / 436.2 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003008/0.2475, allocations: 75.36 kB / 436.2 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003981/0.2479, allocations: 158.8 kB / 436.4 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003532/0.2483, allocations: 187.7 kB / 436.6 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006255/0.2489, allocations: 0.6008 MB / 437.2 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001964/0.2491, allocations: 86.91 kB / 437.3 MB, free: 1.906 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003292/0.2494, allocations: 267.2 kB / 437.5 MB, free: 1.645 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003987/0.2498, allocations: 291 kB / 437.8 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.096e-05/0.2499, allocations: 48 kB / 437.9 MB, free: 1.312 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001998/0.2501, allocations: 95.98 kB / 438 MB, free: 1.219 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001894/0.2503, allocations: 135.6 kB / 438.1 MB, free: 1.086 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002504/0.2505, allocations: 234.9 kB / 438.3 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006965/0.2512, allocations: 0.597 MB / 438.9 MB, free: 268 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.2512, allocations: 0 / 438.9 MB, free: 268 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2512, allocations: 0 / 438.9 MB, free: 268 kB / 334.1 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.2513, allocations: 4 kB / 438.9 MB, free: 264 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.001625/0.2529, allocations: 0.7 MB / 439.6 MB, free: 15.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.2529, allocations: 15.97 kB / 439.6 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001146/0.253, allocations: 44.66 kB / 439.7 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005125/0.2535, allocations: 272.7 kB / 439.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.226e-05/0.2536, allocations: 29.38 kB / 440 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.735e-05/0.2537, allocations: 36.38 kB / 440 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009379/0.2546, allocations: 446.6 kB / 440.4 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.183e-05/0.2546, allocations: 3.953 kB / 440.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.901e-05/0.2547, allocations: 16 kB / 440.5 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.808e-06/0.2547, allocations: 8 kB / 440.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001069/0.2558, allocations: 447.7 kB / 440.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002522/0.2583, allocations: 1.206 MB / 442.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009456/0.2592, allocations: 388.4 kB / 442.5 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005509/0.2598, allocations: 226.1 kB / 442.7 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.362e-05/0.2598, allocations: 8.422 kB / 442.7 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.961e-05/0.2598, allocations: 39 kB / 442.8 MB, free: 12.28 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.873e-06/0.2598, allocations: 3.938 kB / 442.8 MB, free: 12.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.005753/0.2656, allocations: 1.951 MB / 444.7 MB, free: 10.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.533e-05/0.2656, allocations: 59.78 kB / 444.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003068/0.266, allocations: 269.8 kB / 445 MB, free: 9.918 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.243e-05/0.266, allocations: 41.7 kB / 445.1 MB, free: 9.871 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001274/0.2661, allocations: 172.9 kB / 445.3 MB, free: 9.695 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000164/0.2663, allocations: 194.4 kB / 445.4 MB, free: 9.504 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001873/0.2665, allocations: 102.3 kB / 445.5 MB, free: 9.398 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.2666, allocations: 346.8 kB / 445.9 MB, free: 9.051 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005128/0.2672, allocations: 225.2 kB / 446.1 MB, free: 8.832 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005804/0.2677, allocations: 288.1 kB / 446.4 MB, free: 8.535 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00085/0.2686, allocations: 398.8 kB / 446.8 MB, free: 8.125 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2686, allocations: 0 / 446.8 MB, free: 8.125 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001701/0.2703, allocations: 0.722 MB / 447.5 MB, free: 7.387 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.2703, allocations: 4 kB / 447.5 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.2703, allocations: 4 kB / 447.5 MB, free: 7.379 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001129/0.2714, allocations: 433.5 kB / 447.9 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002763/0.2717, allocations: 67.84 kB / 448 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003277/0.275, allocations: 3.45 MB / 451.4 MB, free: 3.176 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005612/0.2756, allocations: 75.94 kB / 451.5 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.749e-05/0.2756, allocations: 19.98 kB / 451.5 MB, free: 3.082 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.0002439/0.2759, allocations: 165.8 kB / 451.7 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.898e-05/0.2759, allocations: 39.75 kB / 451.7 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001729/0.2777, allocations: 0.7107 MB / 452.4 MB, free: 2.148 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.2777, allocations: 4 kB / 452.4 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.2777, allocations: 0 / 452.4 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.2777, allocations: 7.922 kB / 452.5 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002483/0.2802, allocations: 1.24 MB / 453.7 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.2802, allocations: 0 / 453.7 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002921/0.2805, allocations: 59.91 kB / 453.8 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001046/0.2815, allocations: 406.3 kB / 454.2 MB, free: 380 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.514e-05/0.2816, allocations: 15.98 kB / 454.2 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00329/0.2849, allocations: 3.416 MB / 457.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.2849, allocations: 0 / 457.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002213/0.2871, allocations: 1.016 MB / 458.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002252/0.2873, allocations: 87.72 kB / 458.7 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.072e-05/0.2874, allocations: 16 kB / 458.7 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005186/0.2879, allocations: 71.91 kB / 458.8 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002253/0.2881, allocations: 104.2 kB / 458.9 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.481e-05/0.2882, allocations: 19.97 kB / 458.9 MB, free: 11.35 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002134/0.2884, allocations: 193.2 kB / 459.1 MB, free: 11.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2884, allocations: 0 / 459.1 MB, free: 11.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005172/0.2889, allocations: 119.9 kB / 459.2 MB, free: 11.05 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.001387/0.2903, allocations: 381 kB / 459.6 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001768/0.2921, allocations: 0.7519 MB / 460.3 MB, free: 10.01 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2921, allocations: 0 / 460.3 MB, free: 10.01 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009742/0.293, allocations: 0.5261 MB / 460.8 MB, free: 9.453 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005676/0.2936, allocations: 71.2 kB / 460.9 MB, free: 9.387 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002094/0.2957, allocations: 1.015 MB / 461.9 MB, free: 8.344 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004279/0.2961, allocations: 0.8124 MB / 462.7 MB, free: 7.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001397/0.2963, allocations: 47.25 kB / 462.8 MB, free: 7.457 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001008/0.2964, allocations: 35.42 kB / 462.8 MB, free: 7.422 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2964, allocations: 0 / 462.8 MB, free: 7.422 MB / 366.1 MB Notification: Performance of Templates: time 0.0182/0.3146, allocations: 10.59 MB / 473.4 MB, free: 12.88 MB / 382.1 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: 4.663209414109588]