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.001412/0.001412, allocations: 105.3 kB / 17.73 MB, free: 5.32 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.001578/0.001578, allocations: 188.2 kB / 18.66 MB, free: 4.395 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.578/1.578, allocations: 205.1 MB / 224.5 MB, free: 12.22 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.001285/0.001285, allocations: 48.39 kB / 328.5 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09196/0.09326, allocations: 46.62 MB / 375.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.005927/0.09923, allocations: 2.806 MB / 377.9 MB, free: 1.758 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002252/0.1015, allocations: 0.9435 MB / 378.9 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004826/0.102, allocations: 4 kB / 378.9 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004317/0.1025, allocations: 63.38 kB / 378.9 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006628/0.1032, allocations: 103.1 kB / 379 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009457/0.1042, allocations: 219.6 kB / 379.3 MB, free: 432 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2213/0.3255, allocations: 0.5638 MB / 379.8 MB, free: 9.809 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004199/0.3259, allocations: 109.6 kB / 379.9 MB, free: 9.793 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004683/0.3264, allocations: 250.7 kB / 380.2 MB, free: 9.781 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003825/0.3268, allocations: 272.9 kB / 380.4 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.263e-05/0.3269, allocations: 44.28 kB / 380.5 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002511/0.3272, allocations: 96.86 kB / 380.6 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001393/0.3273, allocations: 112.1 kB / 380.7 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002097/0.3275, allocations: 221.8 kB / 380.9 MB, free: 9.668 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008264/0.3284, allocations: 0.5349 MB / 381.4 MB, free: 9.609 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.3284, allocations: 4.531 kB / 381.4 MB, free: 9.609 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.3284, allocations: 0 / 381.4 MB, free: 9.609 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.787e-06/0.3284, allocations: 0 / 381.4 MB, free: 9.609 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.001626/0.33, allocations: 0.7284 MB / 382.2 MB, free: 9.137 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.672e-05/0.3301, allocations: 9.406 kB / 382.2 MB, free: 9.137 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001248/0.3302, allocations: 44.09 kB / 382.2 MB, free: 9.117 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006207/0.3309, allocations: 309.8 kB / 382.5 MB, free: 8.887 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.189e-05/0.3309, allocations: 27.66 kB / 382.6 MB, free: 8.887 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001233/0.3311, allocations: 38.2 kB / 382.6 MB, free: 8.883 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00112/0.3322, allocations: 440.3 kB / 383 MB, free: 8.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.526e-05/0.3322, allocations: 9.391 kB / 383 MB, free: 8.836 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.514e-05/0.3323, allocations: 19.02 kB / 383.1 MB, free: 8.836 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.3323, allocations: 13.72 kB / 383.1 MB, free: 8.832 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001048/0.3334, allocations: 455.1 kB / 383.5 MB, free: 8.824 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002428/0.3358, allocations: 1.25 MB / 384.8 MB, free: 8.395 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008782/0.3367, allocations: 368.9 kB / 385.1 MB, free: 8.312 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005233/0.3372, allocations: 250.4 kB / 385.4 MB, free: 8.215 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.466e-05/0.3373, allocations: 8.281 kB / 385.4 MB, free: 8.215 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.09e-05/0.3373, allocations: 37.25 kB / 385.4 MB, free: 8.172 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 2.474e-06/0.3373, allocations: 3.281 kB / 385.4 MB, free: 8.172 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.005246/0.3426, allocations: 2.247 MB / 387.7 MB, free: 6.965 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.057e-05/0.3426, allocations: 63.19 kB / 387.7 MB, free: 6.898 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002727/0.3429, allocations: 258.7 kB / 388 MB, free: 6.746 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.037e-05/0.343, allocations: 39.05 kB / 388 MB, free: 6.707 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.531e-05/0.3431, allocations: 169.7 kB / 388.2 MB, free: 6.559 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001339/0.3432, allocations: 170.6 kB / 388.3 MB, free: 6.434 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001869/0.3434, allocations: 102.3 kB / 388.4 MB, free: 6.379 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.642e-05/0.3435, allocations: 341 kB / 388.8 MB, free: 6.055 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000493/0.344, allocations: 236.7 kB / 389 MB, free: 5.977 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005019/0.3445, allocations: 303.6 kB / 389.3 MB, free: 5.836 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007815/0.3453, allocations: 421.3 kB / 389.7 MB, free: 5.645 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3453, allocations: 0.9688 kB / 389.7 MB, free: 5.645 MB / 318.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001548/0.3469, allocations: 0.7609 MB / 390.5 MB, free: 5.348 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.3469, allocations: 7.031 kB / 390.5 MB, free: 5.348 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.3469, allocations: 0 / 390.5 MB, free: 5.348 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001106/0.348, allocations: 0.5458 MB / 391 MB, free: 5.191 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000289/0.3483, allocations: 75.23 kB / 391.1 MB, free: 5.188 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002231/0.3506, allocations: 3.652 MB / 394.8 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005405/0.3511, allocations: 79.19 kB / 394.8 MB, free: 1.703 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.956e-05/0.3512, allocations: 22.31 kB / 394.9 MB, free: 1.699 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.0002314/0.3514, allocations: 159.3 kB / 395 MB, free: 1.559 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.122e-05/0.3515, allocations: 31.12 kB / 395 MB, free: 1.543 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001557/0.3531, allocations: 0.7289 MB / 395.8 MB, free: 1.242 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.3531, allocations: 5.297 kB / 395.8 MB, free: 1.242 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.3531, allocations: 1.094 kB / 395.8 MB, free: 1.242 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.3531, allocations: 2.344 kB / 395.8 MB, free: 1.242 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002204/0.3553, allocations: 1.259 MB / 397 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.3553, allocations: 2.938 kB / 397 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000265/0.3556, allocations: 59 kB / 397.1 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001022/0.3566, allocations: 0.5368 MB / 397.6 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.044e-05/0.3567, allocations: 21.7 kB / 397.7 MB, free: 432 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003182/0.3599, allocations: 3.618 MB / 401.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.3599, allocations: 3.875 kB / 401.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002155/0.3621, allocations: 1.029 MB / 402.3 MB, free: 12.49 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002522/0.3623, allocations: 164.1 kB / 402.5 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.263e-05/0.3624, allocations: 21.91 kB / 402.5 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004989/0.3629, allocations: 73.27 kB / 402.6 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002364/0.3632, allocations: 92.48 kB / 402.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.42e-05/0.3632, allocations: 19.58 kB / 402.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001994/0.3634, allocations: 179.2 kB / 402.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3635, allocations: 5.312 kB / 402.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006944/0.3642, allocations: 122.6 kB / 403 MB, free: 12.18 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.000286/0.3644, allocations: 151.3 kB / 403.1 MB, free: 12.06 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001731/0.3662, allocations: 0.8086 MB / 403.9 MB, free: 11.66 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.3662, allocations: 0 / 403.9 MB, free: 11.66 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009907/0.3672, allocations: 0.5338 MB / 404.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00058/0.3678, allocations: 62.34 kB / 404.5 MB, free: 11.31 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002023/0.3698, allocations: 0.9606 MB / 405.5 MB, free: 10.74 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005692/0.3704, allocations: 0.8048 MB / 406.3 MB, free: 10.03 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001313/0.3706, allocations: 29.84 kB / 406.3 MB, free: 10.02 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.3e-05/0.3706, allocations: 33.09 kB / 406.4 MB, free: 10.01 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3706, allocations: 0 / 406.4 MB, free: 10.01 MB / 334.1 MB Notification: Performance of Templates: time 0.01736/0.388, allocations: 10.06 MB / 416.4 MB, free: 4.332 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins/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