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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001571/0.001571, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00108/0.00108, allocations: 110.9 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007981/0.0007983, allocations: 39.94 kB / 350 MB, free: 76 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2238/0.2246, allocations: 49.43 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003061/0.2277, allocations: 2.85 MB / 402.3 MB, free: 30.51 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00122/0.229, allocations: 0.8924 MB / 403.2 MB, free: 29.62 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001463/0.2291, allocations: 4 kB / 403.2 MB, free: 29.62 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002132/0.2293, allocations: 47.64 kB / 403.3 MB, free: 29.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001902/0.2295, allocations: 91.3 kB / 403.3 MB, free: 29.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003467/0.2299, allocations: 183.8 kB / 403.5 MB, free: 29.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003511/0.2303, allocations: 0.5423 MB / 404.1 MB, free: 28.76 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000186/0.2305, allocations: 94.55 kB / 404.2 MB, free: 28.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000201/0.2307, allocations: 231.2 kB / 404.4 MB, free: 28.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002296/0.2309, allocations: 259 kB / 404.6 MB, free: 28.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.555e-05/0.231, allocations: 24 kB / 404.7 MB, free: 28.16 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000133/0.2311, allocations: 71.95 kB / 404.7 MB, free: 28.09 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001125/0.2312, allocations: 95.64 kB / 404.8 MB, free: 27.99 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001311/0.2314, allocations: 206.9 kB / 405 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003214/0.2317, allocations: 0.4998 MB / 405.5 MB, free: 27.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2317, allocations: 0 / 405.5 MB, free: 27.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.02e-07/0.2317, allocations: 4 kB / 405.5 MB, free: 27.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.2317, allocations: 0 / 405.5 MB, free: 27.29 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001149/0.2329, allocations: 0.733 MB / 406.3 MB, free: 26.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.2329, allocations: 12.03 kB / 406.3 MB, free: 26.49 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.748e-05/0.233, allocations: 40.47 kB / 406.3 MB, free: 26.45 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002755/0.2333, allocations: 302.6 kB / 406.6 MB, free: 26.12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.025e-05/0.2333, allocations: 29.38 kB / 406.6 MB, free: 26.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.803e-05/0.2334, allocations: 32.38 kB / 406.7 MB, free: 26.05 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006552/0.234, allocations: 454.6 kB / 407.1 MB, free: 25.61 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.798e-05/0.2341, allocations: 7.844 kB / 407.1 MB, free: 25.6 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.732e-05/0.2341, allocations: 12 kB / 407.1 MB, free: 25.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.2341, allocations: 11.94 kB / 407.2 MB, free: 25.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007568/0.2349, allocations: 455.7 kB / 407.6 MB, free: 25.13 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001776/0.2367, allocations: 1.265 MB / 408.9 MB, free: 23.79 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006439/0.2373, allocations: 369.4 kB / 409.2 MB, free: 23.42 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003717/0.2377, allocations: 245.5 kB / 409.5 MB, free: 23.18 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.571e-05/0.2378, allocations: 8.312 kB / 409.5 MB, free: 23.17 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.154e-05/0.2378, allocations: 42.88 kB / 409.5 MB, free: 23.12 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.984e-06/0.2378, allocations: 3.984 kB / 409.5 MB, free: 23.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.004271/0.2421, allocations: 2.25 MB / 411.8 MB, free: 20.73 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.099e-05/0.2421, allocations: 63.83 kB / 411.8 MB, free: 20.66 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001717/0.2423, allocations: 246.6 kB / 412.1 MB, free: 20.41 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.574e-05/0.2424, allocations: 45.7 kB / 412.1 MB, free: 20.36 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.687e-05/0.2424, allocations: 176.5 kB / 412.3 MB, free: 20.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.695e-05/0.2425, allocations: 165.7 kB / 412.4 MB, free: 20.02 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001453/0.2427, allocations: 102.1 kB / 412.5 MB, free: 19.91 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.239e-05/0.2427, allocations: 338.8 kB / 412.9 MB, free: 19.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003879/0.2431, allocations: 233 kB / 413.1 MB, free: 19.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004135/0.2435, allocations: 303.2 kB / 413.4 MB, free: 19.03 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006236/0.2442, allocations: 427.7 kB / 413.8 MB, free: 18.59 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2442, allocations: 0 / 413.8 MB, free: 18.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001236/0.2454, allocations: 0.7509 MB / 414.6 MB, free: 17.82 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.2455, allocations: 8 kB / 414.6 MB, free: 17.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.2455, allocations: 0 / 414.6 MB, free: 17.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008534/0.2463, allocations: 0.5491 MB / 415.1 MB, free: 17.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000243/0.2466, allocations: 67.91 kB / 415.2 MB, free: 17.19 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00184/0.2484, allocations: 3.466 MB / 418.7 MB, free: 13.44 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004354/0.2489, allocations: 75.97 kB / 418.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.925e-05/0.2489, allocations: 23.98 kB / 418.8 MB, free: 13.34 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 (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.0001598/0.2491, allocations: 165.7 kB / 418.9 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.643e-05/0.2492, allocations: 31.62 kB / 418.9 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001258/0.2504, allocations: 0.7286 MB / 419.7 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.2504, allocations: 4 kB / 419.7 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.2505, allocations: 4 kB / 419.7 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.2505, allocations: 7.938 kB / 419.7 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001675/0.2521, allocations: 1.263 MB / 421 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.696e-06/0.2522, allocations: 0 / 421 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002396/0.2524, allocations: 59.89 kB / 421 MB, free: 10.99 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007681/0.2532, allocations: 0.5217 MB / 421.5 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.912e-05/0.2532, allocations: 19.97 kB / 421.6 MB, free: 10.44 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001742/0.255, allocations: 3.433 MB / 425 MB, free: 6.715 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.255, allocations: 0 / 425 MB, free: 6.715 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01412/0.2691, allocations: 9.786 MB / 434.8 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001774/0.2693, allocations: 156.7 kB / 434.9 MB, free: 12.27 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.037e-05/0.2694, allocations: 16 kB / 434.9 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000438/0.2698, allocations: 67.91 kB / 435 MB, free: 12.19 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002062/0.2701, allocations: 92.28 kB / 435.1 MB, free: 12.1 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.247e-05/0.2701, allocations: 27.97 kB / 435.1 MB, free: 12.07 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001685/0.2703, allocations: 177.9 kB / 435.3 MB, free: 11.9 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2703, allocations: 0 / 435.3 MB, free: 11.9 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000696/0.271, allocations: 208 kB / 435.5 MB, free: 11.7 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,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002831/0.2713, allocations: 158.4 kB / 435.7 MB, free: 11.53 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001444/0.2727, allocations: 0.8057 MB / 436.5 MB, free: 10.7 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.2728, allocations: 0 / 436.5 MB, free: 10.7 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008528/0.2736, allocations: 0.5373 MB / 437 MB, free: 10.14 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004874/0.2741, allocations: 53.38 kB / 437.1 MB, free: 10.09 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002601/0.2767, allocations: 1.729 MB / 438.8 MB, free: 8.297 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003636/0.2771, allocations: 0.812 MB / 439.6 MB, free: 7.461 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001547/0.2773, allocations: 35.27 kB / 439.6 MB, free: 7.426 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.858e-05/0.2774, allocations: 35.42 kB / 439.7 MB, free: 7.391 MB / 314.7 MB Notification: Performance of SimCode: time 4.41e-07/0.2774, allocations: 0 / 439.7 MB, free: 7.391 MB / 314.7 MB Notification: Performance of Templates: time 0.01775/0.2951, allocations: 12.64 MB / 452.3 MB, free: 10.8 MB / 330.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (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) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches