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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=1000,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=1000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001356/0.001356, allocations: 111.8 kB / 17.06 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001595/0.001595, allocations: 196 kB / 18 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009574/0.0009574, allocations: 47.92 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2521/0.2531, allocations: 49.42 MB / 400.7 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003845/0.257, allocations: 2.814 MB / 403.5 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001382/0.2584, allocations: 0.8881 MB / 404.4 MB, free: 5.176 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001435/0.2586, allocations: 4 kB / 404.4 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002493/0.2588, allocations: 59.45 kB / 404.5 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002643/0.2591, allocations: 111 kB / 404.6 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005151/0.2596, allocations: 215.6 kB / 404.8 MB, free: 4.793 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004974/0.2601, allocations: 0.5735 MB / 405.4 MB, free: 4.219 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001955/0.2603, allocations: 110.7 kB / 405.5 MB, free: 4.105 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002439/0.2606, allocations: 243.3 kB / 405.7 MB, free: 3.867 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003012/0.2609, allocations: 275 kB / 406 MB, free: 3.598 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.886e-05/0.261, allocations: 51.98 kB / 406 MB, free: 3.547 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001666/0.2612, allocations: 95.88 kB / 406.1 MB, free: 3.453 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001243/0.2613, allocations: 115.6 kB / 406.2 MB, free: 3.34 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001798/0.2615, allocations: 215 kB / 406.4 MB, free: 3.129 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005336/0.262, allocations: 0.5292 MB / 407 MB, free: 2.602 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.262, allocations: 0 / 407 MB, free: 2.602 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.262, allocations: 0 / 407 MB, free: 2.602 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.665e-06/0.2621, allocations: 0 / 407 MB, free: 2.602 MB / 318.1 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.001307/0.2634, allocations: 0.7559 MB / 407.7 MB, free: 1.793 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.232e-05/0.2634, allocations: 8.031 kB / 407.7 MB, free: 1.785 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001/0.2635, allocations: 40.7 kB / 407.8 MB, free: 1.746 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003961/0.2639, allocations: 318.6 kB / 408.1 MB, free: 1.395 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.937e-05/0.264, allocations: 25.38 kB / 408.1 MB, free: 1.371 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.729e-05/0.264, allocations: 32.38 kB / 408.1 MB, free: 1.34 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008136/0.2649, allocations: 446.6 kB / 408.6 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.125e-05/0.2649, allocations: 11.89 kB / 408.6 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.179e-05/0.2649, allocations: 12 kB / 408.6 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.265, allocations: 8 kB / 408.6 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009137/0.2659, allocations: 467.6 kB / 409.1 MB, free: 416 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002146/0.268, allocations: 1.25 MB / 410.3 MB, free: 15.09 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007976/0.2688, allocations: 375.6 kB / 410.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004625/0.2693, allocations: 245.5 kB / 410.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.837e-05/0.2694, allocations: 4.375 kB / 410.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.593e-05/0.2694, allocations: 42.94 kB / 411 MB, free: 14.41 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 1.532e-06/0.2694, allocations: 3.938 kB / 411 MB, free: 14.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.005074/0.2745, allocations: 2.27 MB / 413.3 MB, free: 11.99 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.514e-05/0.2746, allocations: 55.84 kB / 413.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002302/0.2748, allocations: 246.6 kB / 413.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.893e-05/0.2748, allocations: 45.69 kB / 413.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.952e-05/0.2749, allocations: 168.9 kB / 413.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001254/0.2751, allocations: 170.6 kB / 413.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001765/0.2753, allocations: 106.2 kB / 414 MB, free: 11.18 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.2754, allocations: 342.8 kB / 414.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000468/0.2759, allocations: 229 kB / 414.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005142/0.2764, allocations: 303.2 kB / 414.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007627/0.2772, allocations: 415.7 kB / 415.3 MB, free: 9.879 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.2772, allocations: 0 / 415.3 MB, free: 9.879 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001504/0.2787, allocations: 0.7549 MB / 416 MB, free: 9.105 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.2787, allocations: 11.98 kB / 416.1 MB, free: 9.094 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.2787, allocations: 0 / 416.1 MB, free: 9.094 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001058/0.2798, allocations: 0.5491 MB / 416.6 MB, free: 8.535 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002789/0.2801, allocations: 75.89 kB / 416.7 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002717/0.2828, allocations: 3.662 MB / 420.3 MB, free: 4.496 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004589/0.2833, allocations: 71.94 kB / 420.4 MB, free: 4.426 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.769e-05/0.2833, allocations: 19.98 kB / 420.4 MB, free: 4.406 MB / 334.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 (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.0001929/0.2835, allocations: 166.5 kB / 420.6 MB, free: 4.234 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.724e-05/0.2836, allocations: 35.77 kB / 420.6 MB, free: 4.199 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001515/0.2851, allocations: 0.7325 MB / 421.4 MB, free: 3.457 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.2852, allocations: 4 kB / 421.4 MB, free: 3.453 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.135e-06/0.2852, allocations: 0 / 421.4 MB, free: 3.453 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.2852, allocations: 0 / 421.4 MB, free: 3.453 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002097/0.2873, allocations: 1.27 MB / 422.6 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.2873, allocations: 0 / 422.6 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002734/0.2876, allocations: 59.89 kB / 422.7 MB, free: 2.055 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009527/0.2885, allocations: 0.5255 MB / 423.2 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.211e-05/0.2886, allocations: 23.92 kB / 423.2 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002627/0.2912, allocations: 3.626 MB / 426.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.2912, allocations: 4.031 kB / 426.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001854/0.2931, allocations: 1.029 MB / 427.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001727/0.2933, allocations: 160.9 kB / 428.1 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.127e-05/0.2934, allocations: 16 kB / 428.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004613/0.2938, allocations: 71.84 kB / 428.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002234/0.2941, allocations: 96.28 kB / 428.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.057e-05/0.2941, allocations: 15.98 kB / 428.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001721/0.2943, allocations: 182 kB / 428.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.2943, allocations: 0 / 428.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004802/0.2948, allocations: 127.9 kB / 428.6 MB, free: 11.83 MB / 350.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,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002351/0.295, allocations: 146.3 kB / 428.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001511/0.2965, allocations: 0.8018 MB / 429.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2966, allocations: 256 / 429.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008608/0.2974, allocations: 0.5448 MB / 430 MB, free: 10.29 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004975/0.2979, allocations: 56.53 kB / 430.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001912/0.2999, allocations: 0.9798 MB / 431.1 MB, free: 9.223 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003325/0.3002, allocations: 0.7957 MB / 431.9 MB, free: 8.402 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001302/0.3004, allocations: 39.27 kB / 431.9 MB, free: 8.367 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.198e-05/0.3004, allocations: 31.44 kB / 431.9 MB, free: 8.336 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3004, allocations: 3.938 kB / 431.9 MB, free: 8.332 MB / 350.1 MB Notification: Performance of Templates: time 0.01455/0.315, allocations: 10.06 MB / 442 MB, free: 14.31 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (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) 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) Reference file matches