Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001084/0.001084, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00144/0.00144, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 60.22 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1118, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004605/0.1165, allocations: 2.955 MB / 361.9 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002006/0.1185, allocations: 1.052 MB / 362.9 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001824/0.1187, allocations: 7.938 kB / 362.9 MB, free: 9.301 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003106/0.1191, allocations: 71.36 kB / 363 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003336/0.1194, allocations: 166.8 kB / 363.1 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003134/0.1197, allocations: 175.7 kB / 363.3 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005308/0.1203, allocations: 0.6086 MB / 363.9 MB, free: 8.285 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002214/0.1205, allocations: 114.7 kB / 364 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002847/0.1208, allocations: 263.2 kB / 364.3 MB, free: 7.902 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003501/0.1212, allocations: 283 kB / 364.6 MB, free: 7.625 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.504e-05/0.1212, allocations: 48 kB / 364.6 MB, free: 7.578 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001705/0.1214, allocations: 103.9 kB / 364.7 MB, free: 7.477 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001736/0.1216, allocations: 127.6 kB / 364.8 MB, free: 7.352 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002212/0.1218, allocations: 230.9 kB / 365.1 MB, free: 7.125 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006048/0.1224, allocations: 0.588 MB / 365.7 MB, free: 6.535 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.1225, allocations: 0 / 365.7 MB, free: 6.535 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.1225, allocations: 0 / 365.7 MB, free: 6.535 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.1225, allocations: 3.984 kB / 365.7 MB, free: 6.531 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001578/0.1241, allocations: 0.7758 MB / 366.4 MB, free: 5.707 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.1241, allocations: 8.031 kB / 366.4 MB, free: 5.699 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001184/0.1242, allocations: 48.38 kB / 366.5 MB, free: 5.652 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005488/0.1248, allocations: 322.5 kB / 366.8 MB, free: 5.301 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.131e-05/0.1249, allocations: 29.31 kB / 366.8 MB, free: 5.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001361/0.125, allocations: 44.38 kB / 366.9 MB, free: 5.227 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008966/0.1259, allocations: 438.6 kB / 367.3 MB, free: 4.789 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.548e-05/0.1259, allocations: 7.906 kB / 367.3 MB, free: 4.781 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.311e-05/0.126, allocations: 12 kB / 367.3 MB, free: 4.77 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/0.126, allocations: 8 kB / 367.3 MB, free: 4.762 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009456/0.127, allocations: 439.7 kB / 367.8 MB, free: 4.336 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002365/0.1293, allocations: 1.277 MB / 369 MB, free: 2.984 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009047/0.1303, allocations: 409.9 kB / 369.4 MB, free: 2.574 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004785/0.1307, allocations: 246.1 kB / 369.7 MB, free: 2.332 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.804e-05/0.1308, allocations: 8.422 kB / 369.7 MB, free: 2.324 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.668e-05/0.1309, allocations: 35 kB / 369.7 MB, free: 2.281 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.954e-06/0.1309, allocations: 4 kB / 369.7 MB, free: 2.277 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.1876/0.3185, allocations: 2.238 MB / 372 MB, free: 20.29 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.466e-05/0.3186, allocations: 62.12 kB / 372 MB, free: 20.22 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000483/0.3191, allocations: 276.6 kB / 372.3 MB, free: 20.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001046/0.3192, allocations: 41.67 kB / 372.3 MB, free: 20.08 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.3193, allocations: 168.6 kB / 372.5 MB, free: 20 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001827/0.3195, allocations: 179.3 kB / 372.7 MB, free: 19.94 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002152/0.3197, allocations: 100.8 kB / 372.8 MB, free: 19.92 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.072e-05/0.3198, allocations: 346 kB / 373.1 MB, free: 19.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00051/0.3203, allocations: 219.9 kB / 373.3 MB, free: 19.61 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005717/0.3209, allocations: 291.5 kB / 373.6 MB, free: 19.55 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000874/0.3218, allocations: 394.1 kB / 374 MB, free: 19.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.3218, allocations: 1.75 kB / 374 MB, free: 19.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002297/0.3241, allocations: 0.7363 MB / 374.7 MB, free: 19.17 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.399e-05/0.3242, allocations: 7.812 kB / 374.7 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.3242, allocations: 2.125 kB / 374.7 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001583/0.3258, allocations: 431.7 kB / 375.2 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003514/0.3262, allocations: 70.02 kB / 375.2 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002982/0.3291, allocations: 3.643 MB / 378.9 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005107/0.3297, allocations: 77.11 kB / 379 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.638e-05/0.3297, allocations: 19.67 kB / 379 MB, free: 15.52 MB / 302.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 (44): * Single equations (assignments): 41 * 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,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0002321/0.33, allocations: 177.6 kB / 379.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.706e-05/0.3301, allocations: 43.41 kB / 379.2 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001688/0.3318, allocations: 0.7174 MB / 379.9 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.094e-06/0.3318, allocations: 4.844 kB / 379.9 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.3318, allocations: 1.156 kB / 379.9 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.338e-06/0.3318, allocations: 4.094 kB / 379.9 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002765/0.3346, allocations: 1.284 MB / 381.2 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.3346, allocations: 0 / 381.2 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003038/0.3349, allocations: 57.91 kB / 381.3 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001001/0.3359, allocations: 419.2 kB / 381.7 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.356e-05/0.336, allocations: 18.84 kB / 381.7 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002327/0.3383, allocations: 3.611 MB / 385.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.3383, allocations: 0 / 385.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001855/0.3402, allocations: 1.024 MB / 386.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002268/0.3404, allocations: 163.9 kB / 386.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.405e-05/0.3405, allocations: 27.58 kB / 386.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004726/0.341, allocations: 65.14 kB / 386.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002272/0.3412, allocations: 99.41 kB / 386.7 MB, free: 9.996 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.599e-05/0.3413, allocations: 20.16 kB / 386.7 MB, free: 9.992 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001862/0.3415, allocations: 191.8 kB / 386.9 MB, free: 9.887 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3415, allocations: 0 / 386.9 MB, free: 9.887 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005075/0.342, allocations: 121.5 kB / 387 MB, free: 9.871 MB / 302.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,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008255/0.3428, allocations: 392.6 kB / 387.4 MB, free: 9.688 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001534/0.3444, allocations: 0.7912 MB / 388.2 MB, free: 9.266 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3444, allocations: 2.516 kB / 388.2 MB, free: 9.266 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008512/0.3453, allocations: 0.5411 MB / 388.7 MB, free: 8.934 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005195/0.3458, allocations: 76.11 kB / 388.8 MB, free: 8.902 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001826/0.3476, allocations: 1.002 MB / 389.8 MB, free: 8.312 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002504/0.3479, allocations: 0.8069 MB / 390.6 MB, free: 7.605 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001339/0.348, allocations: 46.14 kB / 390.6 MB, free: 7.586 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.845e-05/0.3481, allocations: 34.48 kB / 390.7 MB, free: 7.578 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3481, allocations: 0 / 390.7 MB, free: 7.578 MB / 302.1 MB Notification: Performance of Templates: time 0.01449/0.3626, allocations: 9.994 MB / 400.7 MB, free: 3.594 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches