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.001624/0.001624, allocations: 114.4 kB / 17.74 MB, free: 5.355 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.002198/0.002198, allocations: 183.1 kB / 18.66 MB, free: 4.438 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.511/1.511, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001361/0.001361, allocations: 51.94 kB / 328.5 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1082, allocations: 46.63 MB / 375.1 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003995/0.1122, allocations: 2.81 MB / 377.9 MB, free: 1.762 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001637/0.1139, allocations: 0.9357 MB / 378.9 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001498/0.1141, allocations: 7.938 kB / 378.9 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002256/0.1143, allocations: 59.39 kB / 378.9 MB, free: 0.75 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002437/0.1146, allocations: 107.1 kB / 379.1 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004483/0.115, allocations: 215.6 kB / 379.3 MB, free: 444 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2156/0.3307, allocations: 0.5654 MB / 379.8 MB, free: 9.773 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003307/0.3311, allocations: 116.1 kB / 379.9 MB, free: 9.758 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004299/0.3315, allocations: 246 kB / 380.2 MB, free: 9.746 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003641/0.3319, allocations: 273.9 kB / 380.4 MB, free: 9.707 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001005/0.332, allocations: 47.88 kB / 380.5 MB, free: 9.703 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002253/0.3322, allocations: 96.02 kB / 380.6 MB, free: 9.703 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001352/0.3324, allocations: 113.4 kB / 380.7 MB, free: 9.691 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002064/0.3326, allocations: 217.1 kB / 380.9 MB, free: 9.633 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007518/0.3333, allocations: 0.5333 MB / 381.4 MB, free: 9.559 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3333, allocations: 0 / 381.4 MB, free: 9.559 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.3334, allocations: 1.375 kB / 381.4 MB, free: 9.559 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.428e-06/0.3334, allocations: 1.719 kB / 381.4 MB, free: 9.559 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.001538/0.3349, allocations: 0.7471 MB / 382.2 MB, free: 9.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.335, allocations: 9.625 kB / 382.2 MB, free: 9.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001347/0.3351, allocations: 45.89 kB / 382.3 MB, free: 9.047 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004774/0.3356, allocations: 310.6 kB / 382.6 MB, free: 8.812 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.627e-05/0.3356, allocations: 27.75 kB / 382.6 MB, free: 8.812 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001141/0.3358, allocations: 36.5 kB / 382.6 MB, free: 8.812 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009992/0.3368, allocations: 441.4 kB / 383 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.691e-05/0.3368, allocations: 6.891 kB / 383.1 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.65e-05/0.3369, allocations: 14.31 kB / 383.1 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.518e-05/0.3369, allocations: 9.656 kB / 383.1 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009995/0.3379, allocations: 456.8 kB / 383.5 MB, free: 8.758 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002512/0.3404, allocations: 1.25 MB / 384.8 MB, free: 8.328 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008782/0.3413, allocations: 376.8 kB / 385.1 MB, free: 8.27 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004611/0.3418, allocations: 247.9 kB / 385.4 MB, free: 8.176 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.155e-05/0.3418, allocations: 16.88 kB / 385.4 MB, free: 8.172 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.772e-05/0.3419, allocations: 33.38 kB / 385.4 MB, free: 8.133 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 2.414e-06/0.3419, allocations: 0 / 385.4 MB, free: 8.133 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.00562/0.3475, allocations: 2.262 MB / 387.7 MB, free: 6.914 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.679e-05/0.3476, allocations: 61.05 kB / 387.8 MB, free: 6.848 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003534/0.3479, allocations: 248.9 kB / 388 MB, free: 6.703 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.27e-05/0.348, allocations: 44.89 kB / 388 MB, free: 6.66 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.3481, allocations: 169.9 kB / 388.2 MB, free: 6.512 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001433/0.3483, allocations: 174.7 kB / 388.4 MB, free: 6.383 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002045/0.3485, allocations: 102.4 kB / 388.5 MB, free: 6.328 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.546e-05/0.3486, allocations: 338.9 kB / 388.8 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005157/0.3491, allocations: 238.2 kB / 389 MB, free: 5.922 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005764/0.3497, allocations: 300.5 kB / 389.3 MB, free: 5.785 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008058/0.3505, allocations: 423.5 kB / 389.7 MB, free: 5.59 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.3505, allocations: 4.062 kB / 389.8 MB, free: 5.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001573/0.3521, allocations: 0.7543 MB / 390.5 MB, free: 5.293 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.3521, allocations: 6.125 kB / 390.5 MB, free: 5.293 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/0.3521, allocations: 1.75 kB / 390.5 MB, free: 5.293 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001153/0.3533, allocations: 0.555 MB / 391.1 MB, free: 5.133 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002984/0.3536, allocations: 69.89 kB / 391.1 MB, free: 5.133 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002546/0.3562, allocations: 3.663 MB / 394.8 MB, free: 1.656 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000582/0.3568, allocations: 78.95 kB / 394.9 MB, free: 1.645 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-05/0.3568, allocations: 18.27 kB / 394.9 MB, free: 1.641 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.0003251/0.3572, allocations: 160.1 kB / 395.1 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.3573, allocations: 37.47 kB / 395.1 MB, free: 1.48 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002074/0.3594, allocations: 0.7235 MB / 395.8 MB, free: 1.184 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.3594, allocations: 4.469 kB / 395.8 MB, free: 1.184 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.393e-06/0.3594, allocations: 6.234 kB / 395.8 MB, free: 1.18 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.057e-05/0.3594, allocations: 1.969 kB / 395.8 MB, free: 1.18 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002951/0.3624, allocations: 1.261 MB / 397.1 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.3624, allocations: 0 / 397.1 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003243/0.3627, allocations: 60.27 kB / 397.1 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001289/0.364, allocations: 0.5305 MB / 397.7 MB, free: 384 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.692e-05/0.3641, allocations: 21.8 kB / 397.7 MB, free: 372 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003083/0.3672, allocations: 3.622 MB / 401.3 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.3672, allocations: 0.7969 kB / 401.3 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002394/0.3696, allocations: 1.041 MB / 402.4 MB, free: 12.42 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002541/0.3699, allocations: 159.2 kB / 402.5 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.402e-05/0.37, allocations: 15.39 kB / 402.5 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004578/0.3704, allocations: 69.17 kB / 402.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002391/0.3707, allocations: 95.36 kB / 402.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.085e-05/0.3707, allocations: 26.91 kB / 402.7 MB, free: 12.24 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002079/0.3709, allocations: 178.6 kB / 402.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3709, allocations: 3.938 kB / 402.9 MB, free: 12.13 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006282/0.3716, allocations: 128 kB / 403 MB, free: 12.11 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.0002853/0.3719, allocations: 139.7 kB / 403.2 MB, free: 12 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00173/0.3736, allocations: 0.8127 MB / 404 MB, free: 11.59 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.3736, allocations: 0 / 404 MB, free: 11.59 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001008/0.3746, allocations: 0.5444 MB / 404.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005718/0.3752, allocations: 64.64 kB / 404.6 MB, free: 11.24 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002083/0.3773, allocations: 0.9669 MB / 405.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003759/0.3777, allocations: 0.7987 MB / 406.3 MB, free: 9.953 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001435/0.3779, allocations: 33.55 kB / 406.4 MB, free: 9.945 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.451e-05/0.378, allocations: 32.33 kB / 406.4 MB, free: 9.934 MB / 334.1 MB Notification: Performance of SimCode: time 5.41e-07/0.378, allocations: 4 kB / 406.4 MB, free: 9.93 MB / 334.1 MB Notification: Performance of Templates: time 0.0164/0.3944, allocations: 10.06 MB / 416.5 MB, free: 4.281 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