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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001665/0.001665, allocations: 100 kB / 21.18 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001833/0.001833, allocations: 184.9 kB / 24.45 MB, free: 3.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 225.7 MB / 253.3 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] 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=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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002444/0.002444, allocations: 43.92 kB / 371.6 MB, free: 9.191 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3223/0.3247, allocations: 52.18 MB / 423.8 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004857/0.3296, allocations: 2.653 MB / 426.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002112/0.3317, allocations: 0.8532 MB / 427.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003227/0.332, allocations: 7.938 kB / 427.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003091/0.3323, allocations: 71.31 kB / 427.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004087/0.3327, allocations: 103.1 kB / 427.5 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006992/0.3334, allocations: 227.6 kB / 427.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000835/0.3343, allocations: 0.5656 MB / 428.3 MB, free: 9.973 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000234/0.3345, allocations: 82.64 kB / 428.4 MB, free: 9.891 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005193/0.335, allocations: 255.2 kB / 428.6 MB, free: 9.641 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004685/0.3355, allocations: 251 kB / 428.9 MB, free: 9.395 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001188/0.3356, allocations: 48 kB / 428.9 MB, free: 9.348 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002549/0.3358, allocations: 87.95 kB / 429 MB, free: 9.262 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001751/0.336, allocations: 119.6 kB / 429.1 MB, free: 9.145 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002499/0.3363, allocations: 183.2 kB / 429.3 MB, free: 8.965 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007567/0.337, allocations: 0.54 MB / 429.8 MB, free: 8.426 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.337, allocations: 0 / 429.8 MB, free: 8.426 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.337, allocations: 0 / 429.8 MB, free: 8.426 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.159e-05/0.3371, allocations: 4 kB / 429.8 MB, free: 8.422 MB / 334.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.001638/0.3387, allocations: 0.6689 MB / 430.5 MB, free: 7.723 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.3387, allocations: 12.03 kB / 430.5 MB, free: 7.711 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001267/0.3389, allocations: 40.7 kB / 430.5 MB, free: 7.672 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005581/0.3394, allocations: 252.8 kB / 430.8 MB, free: 7.395 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.193e-05/0.3395, allocations: 25.38 kB / 430.8 MB, free: 7.371 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.549e-05/0.3395, allocations: 36.38 kB / 430.9 MB, free: 7.336 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001034/0.3406, allocations: 446.6 kB / 431.3 MB, free: 6.895 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.832e-05/0.3406, allocations: 7.953 kB / 431.3 MB, free: 6.887 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.554e-05/0.3407, allocations: 12 kB / 431.3 MB, free: 6.875 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.462e-05/0.3407, allocations: 12 kB / 431.3 MB, free: 6.863 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001031/0.3417, allocations: 455.7 kB / 431.8 MB, free: 6.418 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002634/0.3443, allocations: 1.054 MB / 432.8 MB, free: 5.32 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000875/0.3452, allocations: 348.1 kB / 433.2 MB, free: 4.969 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005099/0.3457, allocations: 233.2 kB / 433.4 MB, free: 4.738 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.268e-05/0.3458, allocations: 8.312 kB / 433.4 MB, free: 4.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.532e-05/0.3458, allocations: 30.94 kB / 433.4 MB, free: 4.691 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 2.594e-06/0.3458, allocations: 7.938 kB / 433.4 MB, free: 4.684 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.005569/0.3514, allocations: 1.948 MB / 435.4 MB, free: 2.672 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.431e-05/0.3514, allocations: 59.78 kB / 435.4 MB, free: 2.602 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00034/0.3518, allocations: 245.9 kB / 435.7 MB, free: 2.352 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.797e-05/0.3518, allocations: 37.7 kB / 435.7 MB, free: 2.309 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001751/0.352, allocations: 176.9 kB / 435.9 MB, free: 2.129 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001827/0.3522, allocations: 178.5 kB / 436.1 MB, free: 1.953 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002139/0.3524, allocations: 102.3 kB / 436.2 MB, free: 1.848 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002022/0.3526, allocations: 338.8 kB / 436.5 MB, free: 1.508 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005459/0.3531, allocations: 237.2 kB / 436.7 MB, free: 1.277 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006204/0.3538, allocations: 304 kB / 437 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008822/0.3547, allocations: 418.7 kB / 437.4 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.3547, allocations: 4 kB / 437.4 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001782/0.3564, allocations: 0.7535 MB / 438.2 MB, free: 15.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.3565, allocations: 4 kB / 438.2 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.3565, allocations: 4 kB / 438.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001219/0.3577, allocations: 0.5445 MB / 438.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003142/0.358, allocations: 71.91 kB / 438.8 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003566/0.3616, allocations: 3.396 MB / 442.2 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005524/0.3621, allocations: 80.25 kB / 442.3 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.428e-05/0.3622, allocations: 16 kB / 442.3 MB, free: 11.42 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 (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.0002866/0.3625, allocations: 171.4 kB / 442.5 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.3626, allocations: 39.77 kB / 442.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001739/0.3643, allocations: 0.6975 MB / 443.2 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.113e-05/0.3643, allocations: 11.94 kB / 443.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.3643, allocations: 0 / 443.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.318e-06/0.3643, allocations: 11.91 kB / 443.2 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002474/0.3668, allocations: 1.109 MB / 444.3 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.3668, allocations: 0 / 444.3 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003131/0.3671, allocations: 63.89 kB / 444.4 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001132/0.3683, allocations: 0.5217 MB / 444.9 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.279e-05/0.3683, allocations: 23.97 kB / 444.9 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003423/0.3717, allocations: 3.377 MB / 448.3 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.3717, allocations: 0 / 448.3 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002165/0.3739, allocations: 1.021 MB / 449.3 MB, free: 4.043 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002499/0.3742, allocations: 83.73 kB / 449.4 MB, free: 3.961 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.856e-05/0.3742, allocations: 12 kB / 449.4 MB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005056/0.3748, allocations: 75.94 kB / 449.5 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00022/0.375, allocations: 96.19 kB / 449.6 MB, free: 3.781 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.03e-05/0.375, allocations: 23.97 kB / 449.6 MB, free: 3.758 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002089/0.3752, allocations: 173.2 kB / 449.8 MB, free: 3.586 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3752, allocations: 0 / 449.8 MB, free: 3.586 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005555/0.3758, allocations: 128 kB / 449.9 MB, free: 3.461 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.0002815/0.3761, allocations: 135.2 kB / 450.1 MB, free: 3.316 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001754/0.3778, allocations: 0.7665 MB / 450.8 MB, free: 2.527 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3778, allocations: 4 kB / 450.8 MB, free: 2.523 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009931/0.3788, allocations: 0.5213 MB / 451.3 MB, free: 1.973 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005953/0.3794, allocations: 67.77 kB / 451.4 MB, free: 1.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002316/0.3817, allocations: 1.013 MB / 452.4 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002265/0.382, allocations: 189.8 kB / 452.6 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001127/0.3821, allocations: 39.42 kB / 452.7 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3821, allocations: 0 / 452.7 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of Templates: time 0.01511/0.3972, allocations: 9.068 MB / 461.7 MB, free: 7.551 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 9.181578922085464]