Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001252/0.001252, allocations: 103.9 kB / 18.39 MB, free: 4.66 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.001222/0.001222, allocations: 186.4 kB / 19.33 MB, free: 3.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.309/1.309, allocations: 205.1 MB / 225.2 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001355, allocations: 51.94 kB / 329.2 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0981/0.09946, allocations: 46.61 MB / 375.8 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.00606/0.1056, allocations: 2.807 MB / 378.6 MB, free: 1.762 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00237/0.108, allocations: 0.9319 MB / 379.5 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003463/0.1084, allocations: 15.88 kB / 379.6 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003133/0.1087, allocations: 59.44 kB / 379.6 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004863/0.1092, allocations: 111 kB / 379.7 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000767/0.11, allocations: 207.6 kB / 379.9 MB, free: 444 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1936/0.3036, allocations: 0.5691 MB / 380.5 MB, free: 10.4 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003395/0.304, allocations: 113.7 kB / 380.6 MB, free: 10.38 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004713/0.3045, allocations: 247.9 kB / 380.9 MB, free: 10.37 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004292/0.3049, allocations: 272.9 kB / 381.1 MB, free: 10.33 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001016/0.305, allocations: 44.56 kB / 381.2 MB, free: 10.33 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002621/0.3053, allocations: 98.64 kB / 381.3 MB, free: 10.33 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001501/0.3055, allocations: 113.9 kB / 381.4 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002347/0.3057, allocations: 220.4 kB / 381.6 MB, free: 10.26 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006849/0.3064, allocations: 0.533 MB / 382.1 MB, free: 10.2 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3064, allocations: 0 / 382.1 MB, free: 10.2 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3064, allocations: 0 / 382.1 MB, free: 10.2 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.533e-05/0.3064, allocations: 1.375 kB / 382.1 MB, free: 10.2 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.001361/0.3078, allocations: 0.7337 MB / 382.9 MB, free: 9.727 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.3079, allocations: 9.625 kB / 382.9 MB, free: 9.727 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001153/0.308, allocations: 41.81 kB / 382.9 MB, free: 9.707 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000446/0.3084, allocations: 309.4 kB / 383.2 MB, free: 9.477 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.758e-05/0.3085, allocations: 26.5 kB / 383.2 MB, free: 9.477 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001001/0.3086, allocations: 39.42 kB / 383.3 MB, free: 9.473 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009455/0.3095, allocations: 438 kB / 383.7 MB, free: 9.43 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.106e-05/0.3096, allocations: 5.891 kB / 383.7 MB, free: 9.426 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.766e-05/0.3096, allocations: 17.84 kB / 383.7 MB, free: 9.426 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.3096, allocations: 12.2 kB / 383.7 MB, free: 9.426 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009148/0.3106, allocations: 455.8 kB / 384.2 MB, free: 9.418 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002208/0.3128, allocations: 1.257 MB / 385.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007786/0.3136, allocations: 369.4 kB / 385.8 MB, free: 8.594 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004335/0.314, allocations: 250.1 kB / 386 MB, free: 8.496 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4e-05/0.3141, allocations: 4.844 kB / 386 MB, free: 8.496 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.58e-05/0.3141, allocations: 38.94 kB / 386.1 MB, free: 8.453 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 2.504e-06/0.3141, allocations: 0 / 386.1 MB, free: 8.453 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.005016/0.3191, allocations: 2.252 MB / 388.3 MB, free: 7.246 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.477e-05/0.3192, allocations: 65.5 kB / 388.4 MB, free: 7.176 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003001/0.3195, allocations: 252.7 kB / 388.6 MB, free: 7.027 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.421e-05/0.3195, allocations: 41 kB / 388.7 MB, free: 6.988 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.3197, allocations: 168.8 kB / 388.8 MB, free: 6.84 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001373/0.3198, allocations: 164.9 kB / 389 MB, free: 6.719 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001896/0.32, allocations: 102.8 kB / 389.1 MB, free: 6.664 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.728e-05/0.3201, allocations: 342.5 kB / 389.4 MB, free: 6.34 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004831/0.3206, allocations: 236.6 kB / 389.7 MB, free: 6.258 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005514/0.3211, allocations: 305.4 kB / 390 MB, free: 6.121 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008184/0.322, allocations: 419.8 kB / 390.4 MB, free: 5.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.322, allocations: 3.938 kB / 390.4 MB, free: 5.926 MB / 318.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001573/0.3236, allocations: 0.7557 MB / 391.1 MB, free: 5.629 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.3236, allocations: 5.812 kB / 391.1 MB, free: 5.629 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.3236, allocations: 1.656 kB / 391.2 MB, free: 5.629 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001091/0.3247, allocations: 0.5521 MB / 391.7 MB, free: 5.473 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002968/0.325, allocations: 72.34 kB / 391.8 MB, free: 5.469 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002273/0.3273, allocations: 3.657 MB / 395.4 MB, free: 1.996 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005039/0.3278, allocations: 78.28 kB / 395.5 MB, free: 1.984 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.773e-05/0.3279, allocations: 18.77 kB / 395.5 MB, free: 1.98 MB / 318.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.0002286/0.3281, allocations: 164.1 kB / 395.7 MB, free: 1.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.15e-05/0.3282, allocations: 32.56 kB / 395.7 MB, free: 1.824 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001545/0.3297, allocations: 0.7252 MB / 396.4 MB, free: 1.523 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.042e-06/0.3298, allocations: 6.672 kB / 396.4 MB, free: 1.523 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.3298, allocations: 0 / 396.4 MB, free: 1.523 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.3298, allocations: 3.891 kB / 396.5 MB, free: 1.523 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002126/0.3319, allocations: 1.263 MB / 397.7 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.3319, allocations: 0 / 397.7 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002662/0.3322, allocations: 62 kB / 397.8 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009742/0.3332, allocations: 0.5305 MB / 398.3 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.712e-05/0.3333, allocations: 24.25 kB / 398.3 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002536/0.3358, allocations: 3.622 MB / 402 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.3358, allocations: 5.922 kB / 402 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001943/0.3378, allocations: 1.027 MB / 403 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002203/0.338, allocations: 164.1 kB / 403.1 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.795e-05/0.3381, allocations: 18.16 kB / 403.2 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004502/0.3385, allocations: 67.25 kB / 403.2 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002267/0.3388, allocations: 95.61 kB / 403.3 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.378e-05/0.3388, allocations: 20.48 kB / 403.3 MB, free: 12.59 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002094/0.339, allocations: 183 kB / 403.5 MB, free: 12.48 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.673e-06/0.339, allocations: 0 / 403.5 MB, free: 12.48 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005923/0.3396, allocations: 126.5 kB / 403.6 MB, free: 12.46 MB / 334.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.0002496/0.3399, allocations: 143.4 kB / 403.8 MB, free: 12.34 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001679/0.3416, allocations: 0.8014 MB / 404.6 MB, free: 11.94 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3416, allocations: 1.156 kB / 404.6 MB, free: 11.94 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009127/0.3425, allocations: 0.5451 MB / 405.1 MB, free: 11.62 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005202/0.3431, allocations: 67.47 kB / 405.2 MB, free: 11.59 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002114/0.3452, allocations: 0.9839 MB / 406.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004164/0.3456, allocations: 0.801 MB / 407 MB, free: 10.28 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001057/0.3457, allocations: 34.73 kB / 407 MB, free: 10.27 MB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3457, allocations: 0 / 407 MB, free: 10.27 MB / 334.1 MB Notification: Performance of Templates: time 0.0118/0.3575, allocations: 8.963 MB / 416 MB, free: 5.57 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches