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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001176/0.001176, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.259/1.259, allocations: 226.7 MB / 245.5 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001023/0.001023, allocations: 112.8 kB / 296.7 MB, free: 6.473 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009135/0.0009137, allocations: 55.91 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2005/0.2015, allocations: 50.45 MB / 407 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003253/0.2048, allocations: 2.98 MB / 410 MB, free: 24.83 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001452/0.2062, allocations: 1.026 MB / 411.1 MB, free: 23.8 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001765/0.2065, allocations: 4 kB / 411.1 MB, free: 23.8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002968/0.2068, allocations: 63.55 kB / 411.1 MB, free: 23.73 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002833/0.2071, allocations: 131.2 kB / 411.2 MB, free: 23.61 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002797/0.2073, allocations: 159.7 kB / 411.4 MB, free: 23.45 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004433/0.2078, allocations: 0.5618 MB / 412 MB, free: 22.89 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001998/0.208, allocations: 106.6 kB / 412.1 MB, free: 22.78 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000242/0.2083, allocations: 239 kB / 412.3 MB, free: 22.54 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002786/0.2085, allocations: 275 kB / 412.6 MB, free: 22.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.925e-05/0.2086, allocations: 24 kB / 412.6 MB, free: 22.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001649/0.2088, allocations: 79.98 kB / 412.7 MB, free: 22.17 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000153/0.2089, allocations: 111.6 kB / 412.8 MB, free: 22.06 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001675/0.2091, allocations: 210.9 kB / 413 MB, free: 21.86 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004049/0.2095, allocations: 0.5466 MB / 413.5 MB, free: 21.31 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2095, allocations: 3.938 kB / 413.5 MB, free: 21.3 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.2096, allocations: 0 / 413.5 MB, free: 21.3 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.2096, allocations: 0 / 413.5 MB, free: 21.3 MB / 298.7 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.00124/0.2108, allocations: 0.7681 MB / 414.3 MB, free: 20.49 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.2109, allocations: 12.03 kB / 414.3 MB, free: 20.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.697e-05/0.2109, allocations: 40.47 kB / 414.4 MB, free: 20.44 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003076/0.2113, allocations: 326.4 kB / 414.7 MB, free: 20.08 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.017e-05/0.2113, allocations: 33.38 kB / 414.7 MB, free: 20.04 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.317e-05/0.2114, allocations: 36.38 kB / 414.7 MB, free: 20.01 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006719/0.212, allocations: 430.6 kB / 415.2 MB, free: 19.58 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.2121, allocations: 7.891 kB / 415.2 MB, free: 19.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.469e-05/0.2121, allocations: 16 kB / 415.2 MB, free: 19.56 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.2121, allocations: 8 kB / 415.2 MB, free: 19.55 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007675/0.2129, allocations: 427.7 kB / 415.6 MB, free: 19.14 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001789/0.2147, allocations: 1.277 MB / 416.9 MB, free: 17.79 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000694/0.2154, allocations: 403.3 kB / 417.3 MB, free: 17.38 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004053/0.2158, allocations: 246.1 kB / 417.5 MB, free: 17.14 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.466e-05/0.2159, allocations: 8.422 kB / 417.5 MB, free: 17.13 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.321e-05/0.2159, allocations: 38.94 kB / 417.6 MB, free: 17.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 2.034e-06/0.2159, allocations: 4 kB / 417.6 MB, free: 17.08 MB / 298.7 MB Notification: Performance of matching and sorting (n=54): time 0.00434/0.2202, allocations: 2.209 MB / 419.8 MB, free: 14.74 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.13e-05/0.2203, allocations: 63.77 kB / 419.8 MB, free: 14.66 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000211/0.2205, allocations: 262.7 kB / 420.1 MB, free: 14.4 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.841e-05/0.2206, allocations: 49.69 kB / 420.1 MB, free: 14.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.225e-05/0.2206, allocations: 164.7 kB / 420.3 MB, free: 14.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.781e-05/0.2207, allocations: 181.5 kB / 420.5 MB, free: 14 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001345/0.2209, allocations: 98.14 kB / 420.6 MB, free: 13.89 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.024e-05/0.2209, allocations: 346.8 kB / 420.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003806/0.2213, allocations: 217 kB / 421.1 MB, free: 13.33 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004016/0.2217, allocations: 279.2 kB / 421.4 MB, free: 13.04 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006166/0.2223, allocations: 395.7 kB / 421.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.2224, allocations: 0 / 421.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001285/0.2236, allocations: 0.7194 MB / 422.5 MB, free: 11.9 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.2237, allocations: 10.91 kB / 422.5 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.2237, allocations: 48 / 422.5 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008934/0.2246, allocations: 383.5 kB / 422.9 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002423/0.2248, allocations: 71.91 kB / 423 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001926/0.2268, allocations: 3.435 MB / 426.4 MB, free: 7.711 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004453/0.2272, allocations: 72.06 kB / 426.5 MB, free: 7.641 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.757e-05/0.2273, allocations: 23.98 kB / 426.5 MB, free: 7.617 MB / 298.7 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.0001661/0.2275, allocations: 173.6 kB / 426.7 MB, free: 7.438 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.642e-05/0.2275, allocations: 39.53 kB / 426.7 MB, free: 7.398 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001306/0.2289, allocations: 0.7082 MB / 427.4 MB, free: 6.684 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.2289, allocations: 8 kB / 427.4 MB, free: 6.676 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.2289, allocations: 0 / 427.4 MB, free: 6.676 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.2289, allocations: 7.984 kB / 427.4 MB, free: 6.668 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001733/0.2306, allocations: 1.275 MB / 428.7 MB, free: 5.328 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.2306, allocations: 4 kB / 428.7 MB, free: 5.324 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002413/0.2309, allocations: 51.91 kB / 428.8 MB, free: 5.273 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007529/0.2317, allocations: 363.6 kB / 429.1 MB, free: 4.91 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.036e-05/0.2317, allocations: 23.97 kB / 429.1 MB, free: 4.887 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001787/0.2335, allocations: 3.409 MB / 432.5 MB, free: 1.184 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.2335, allocations: 8.016 kB / 432.6 MB, free: 1.176 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01203/0.2456, allocations: 8.358 MB / 440.9 MB, free: 8.359 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001867/0.2458, allocations: 160.7 kB / 441.1 MB, free: 8.184 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.759e-05/0.2459, allocations: 19.94 kB / 441.1 MB, free: 8.164 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00046/0.2463, allocations: 71.89 kB / 441.2 MB, free: 8.094 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002125/0.2466, allocations: 96.41 kB / 441.3 MB, free: 8 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.2e-05/0.2466, allocations: 23.97 kB / 441.3 MB, free: 7.977 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001846/0.2468, allocations: 190 kB / 441.5 MB, free: 7.789 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2468, allocations: 0 / 441.5 MB, free: 7.789 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000655/0.2475, allocations: 183.9 kB / 441.6 MB, free: 7.609 MB / 314.7 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.00103/0.2485, allocations: 486.2 kB / 442.1 MB, free: 7.297 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001476/0.25, allocations: 0.7773 MB / 442.9 MB, free: 6.496 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.25, allocations: 0 / 442.9 MB, free: 6.496 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008682/0.2509, allocations: 0.5228 MB / 443.4 MB, free: 5.949 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005337/0.2514, allocations: 76.55 kB / 443.5 MB, free: 5.879 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002639/0.2541, allocations: 1.791 MB / 445.3 MB, free: 4.02 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000385/0.2545, allocations: 0.8279 MB / 446.1 MB, free: 3.164 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001826/0.2547, allocations: 47.25 kB / 446.2 MB, free: 3.121 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001261/0.2548, allocations: 35.42 kB / 446.2 MB, free: 3.086 MB / 314.7 MB Notification: Performance of SimCode: time 4.31e-07/0.2548, allocations: 3.938 kB / 446.2 MB, free: 3.082 MB / 314.7 MB Notification: Performance of Templates: time 0.01771/0.2725, allocations: 12.08 MB / 458.3 MB, free: 7.047 MB / 330.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches