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.001163/0.001163, allocations: 104.2 kB / 18.4 MB, free: 4.68 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.001079/0.001079, allocations: 188.3 kB / 19.33 MB, free: 3.758 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.468/1.468, allocations: 205.1 MB / 225.2 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.001324/0.001325, allocations: 51.94 kB / 329.2 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0935/0.09483, allocations: 46.62 MB / 375.8 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.00505/0.09994, allocations: 2.803 MB / 378.6 MB, free: 1.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00216/0.1021, allocations: 0.9435 MB / 379.6 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003418/0.1025, allocations: 4 kB / 379.6 MB, free: 0.793 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003004/0.1029, allocations: 63.38 kB / 379.6 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000421/0.1033, allocations: 103.1 kB / 379.7 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006584/0.104, allocations: 219.6 kB / 379.9 MB, free: 424 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2269/0.3309, allocations: 0.5615 MB / 380.5 MB, free: 9.77 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003437/0.3313, allocations: 112 kB / 380.6 MB, free: 9.754 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004981/0.3318, allocations: 252 kB / 380.9 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003962/0.3322, allocations: 277.4 kB / 381.1 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.526e-05/0.3323, allocations: 43.47 kB / 381.2 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002908/0.3326, allocations: 97.11 kB / 381.3 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001444/0.3327, allocations: 110.2 kB / 381.4 MB, free: 9.688 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001995/0.3329, allocations: 218.7 kB / 381.6 MB, free: 9.629 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007653/0.3337, allocations: 0.5366 MB / 382.1 MB, free: 9.574 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3337, allocations: 0 / 382.1 MB, free: 9.574 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3337, allocations: 0 / 382.1 MB, free: 9.574 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.3338, allocations: 0 / 382.1 MB, free: 9.574 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.001481/0.3352, allocations: 0.7335 MB / 382.9 MB, free: 9.098 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.645e-05/0.3353, allocations: 9.75 kB / 382.9 MB, free: 9.098 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000128/0.3354, allocations: 42.02 kB / 382.9 MB, free: 9.078 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004579/0.3359, allocations: 309.6 kB / 383.2 MB, free: 8.848 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.948e-05/0.336, allocations: 24.91 kB / 383.2 MB, free: 8.848 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001058/0.3361, allocations: 40.3 kB / 383.3 MB, free: 8.844 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001005/0.3371, allocations: 441.4 kB / 383.7 MB, free: 8.801 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.275e-05/0.3371, allocations: 7.281 kB / 383.7 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.166e-05/0.3372, allocations: 12.56 kB / 383.7 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.3372, allocations: 12.06 kB / 383.7 MB, free: 8.793 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009678/0.3382, allocations: 460.2 kB / 384.2 MB, free: 8.785 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00249/0.3407, allocations: 1.256 MB / 385.4 MB, free: 8.359 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008632/0.3416, allocations: 371.7 kB / 385.8 MB, free: 8.297 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004763/0.342, allocations: 245.4 kB / 386 MB, free: 8.203 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.202e-05/0.3421, allocations: 9.406 kB / 386 MB, free: 8.199 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.969e-05/0.3421, allocations: 36.59 kB / 386.1 MB, free: 8.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 1.694e-06/0.3421, allocations: 0 / 386.1 MB, free: 8.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.005373/0.3475, allocations: 2.249 MB / 388.3 MB, free: 6.953 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.878e-05/0.3476, allocations: 70.03 kB / 388.4 MB, free: 6.883 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003275/0.3479, allocations: 253.6 kB / 388.7 MB, free: 6.734 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.833e-05/0.348, allocations: 44.09 kB / 388.7 MB, free: 6.691 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001143/0.3481, allocations: 165 kB / 388.9 MB, free: 6.547 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001442/0.3483, allocations: 168.3 kB / 389 MB, free: 6.422 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001877/0.3484, allocations: 102.1 kB / 389.1 MB, free: 6.367 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.552e-05/0.3485, allocations: 340.1 kB / 389.5 MB, free: 6.043 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000489/0.349, allocations: 237.8 kB / 389.7 MB, free: 5.961 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000533/0.3496, allocations: 297.9 kB / 390 MB, free: 5.824 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007865/0.3504, allocations: 425.4 kB / 390.4 MB, free: 5.633 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.3504, allocations: 1.062 kB / 390.4 MB, free: 5.633 MB / 318.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001552/0.3519, allocations: 0.7547 MB / 391.1 MB, free: 5.336 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.352, allocations: 8.828 kB / 391.2 MB, free: 5.336 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.352, allocations: 1.656 kB / 391.2 MB, free: 5.336 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001087/0.3531, allocations: 0.5504 MB / 391.7 MB, free: 5.176 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002849/0.3534, allocations: 68.25 kB / 391.8 MB, free: 5.176 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002252/0.3556, allocations: 3.657 MB / 395.4 MB, free: 1.703 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005291/0.3562, allocations: 76.08 kB / 395.5 MB, free: 1.691 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.041e-05/0.3562, allocations: 25.34 kB / 395.5 MB, free: 1.688 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.0002352/0.3565, allocations: 159.7 kB / 395.7 MB, free: 1.547 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.407e-05/0.3566, allocations: 34.45 kB / 395.7 MB, free: 1.531 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001623/0.3582, allocations: 0.7241 MB / 396.4 MB, free: 1.23 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.3582, allocations: 10.97 kB / 396.5 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.3582, allocations: 1.188 kB / 396.5 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/0.3582, allocations: 3.703 kB / 396.5 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002294/0.3605, allocations: 1.263 MB / 397.7 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.267e-06/0.3606, allocations: 0 / 397.7 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002801/0.3608, allocations: 62.27 kB / 397.8 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001161/0.362, allocations: 0.5318 MB / 398.3 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.412e-05/0.3621, allocations: 22.3 kB / 398.3 MB, free: 416 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003263/0.3654, allocations: 3.62 MB / 402 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.3654, allocations: 4.062 kB / 402 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002032/0.3674, allocations: 1.032 MB / 403 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002396/0.3677, allocations: 168.2 kB / 403.2 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.761e-05/0.3678, allocations: 13.88 kB / 403.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004705/0.3682, allocations: 70.22 kB / 403.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000263/0.3685, allocations: 91.11 kB / 403.3 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.819e-05/0.3686, allocations: 22.3 kB / 403.3 MB, free: 12.29 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002031/0.3688, allocations: 181.8 kB / 403.5 MB, free: 12.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3688, allocations: 0 / 403.5 MB, free: 12.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006054/0.3694, allocations: 123.9 kB / 403.6 MB, free: 12.17 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.0002825/0.3697, allocations: 151.5 kB / 403.8 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001697/0.3714, allocations: 0.8043 MB / 404.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.3714, allocations: 0.9062 kB / 404.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000976/0.3724, allocations: 0.5373 MB / 405.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000552/0.373, allocations: 59.41 kB / 405.2 MB, free: 11.3 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002161/0.3751, allocations: 0.9859 MB / 406.2 MB, free: 10.7 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004257/0.3756, allocations: 0.8015 MB / 407 MB, free: 9.988 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001083/0.3757, allocations: 34.52 kB / 407 MB, free: 9.977 MB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3757, allocations: 1.031 kB / 407 MB, free: 9.977 MB / 334.1 MB Notification: Performance of Templates: time 0.01445/0.3902, allocations: 8.918 MB / 415.9 MB, free: 5.434 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