Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009952/0.0009953, allocations: 191.6 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.277/1.277, allocations: 226.6 MB / 244.7 MB, free: 8.172 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007189/0.0007188, allocations: 103.5 kB / 296.8 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002955/0.0002955, allocations: 4 kB / 356.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2217/0.222, allocations: 51.3 MB / 408 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002551/0.2246, allocations: 2.51 MB / 410.6 MB, free: 25.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001297/0.226, allocations: 0.9741 MB / 411.5 MB, free: 24.22 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001507/0.2261, allocations: 4 kB / 411.5 MB, free: 24.22 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002475/0.2264, allocations: 60.22 kB / 411.6 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002724/0.2267, allocations: 144.3 kB / 411.7 MB, free: 24.02 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002693/0.227, allocations: 135.7 kB / 411.9 MB, free: 23.89 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000357/0.2273, allocations: 0.5149 MB / 412.4 MB, free: 23.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001793/0.2275, allocations: 107.6 kB / 412.5 MB, free: 23.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002081/0.2277, allocations: 219.2 kB / 412.7 MB, free: 23.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002433/0.228, allocations: 259.1 kB / 413 MB, free: 22.8 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.792e-05/0.228, allocations: 24 kB / 413 MB, free: 22.77 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001409/0.2282, allocations: 63.98 kB / 413 MB, free: 22.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001142/0.2283, allocations: 107.6 kB / 413.1 MB, free: 22.61 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001464/0.2285, allocations: 224.7 kB / 413.4 MB, free: 22.38 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002891/0.2288, allocations: 411.9 kB / 413.8 MB, free: 21.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.2288, allocations: 0 / 413.8 MB, free: 21.98 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2288, allocations: 0 / 413.8 MB, free: 21.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.302e-06/0.2288, allocations: 0 / 413.8 MB, free: 21.98 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.001095/0.2299, allocations: 0.7215 MB / 414.5 MB, free: 21.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.2299, allocations: 8.031 kB / 414.5 MB, free: 21.2 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.354e-05/0.23, allocations: 44.38 kB / 414.5 MB, free: 21.16 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003206/0.2304, allocations: 326.3 kB / 414.9 MB, free: 20.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.648e-05/0.2304, allocations: 33.38 kB / 414.9 MB, free: 20.76 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.101e-05/0.2305, allocations: 36.38 kB / 414.9 MB, free: 20.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007418/0.2312, allocations: 438.6 kB / 415.4 MB, free: 20.29 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/0.2312, allocations: 4 kB / 415.4 MB, free: 20.29 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.964e-05/0.2313, allocations: 8 kB / 415.4 MB, free: 20.28 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.2313, allocations: 8 kB / 415.4 MB, free: 20.27 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008073/0.2321, allocations: 447.7 kB / 415.8 MB, free: 19.84 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001949/0.2341, allocations: 1.308 MB / 417.1 MB, free: 18.46 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000762/0.2348, allocations: 403.7 kB / 417.5 MB, free: 18.05 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004/0.2353, allocations: 253.8 kB / 417.8 MB, free: 17.81 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.777e-05/0.2353, allocations: 8.438 kB / 417.8 MB, free: 17.8 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.057e-05/0.2353, allocations: 38.98 kB / 417.8 MB, free: 17.75 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 2.655e-06/0.2354, allocations: 0 / 417.8 MB, free: 17.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=54): time 0.004589/0.2399, allocations: 2.334 MB / 420.1 MB, free: 15.29 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.628e-05/0.24, allocations: 63.78 kB / 420.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002264/0.2402, allocations: 262.7 kB / 420.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.336e-05/0.2403, allocations: 41.7 kB / 420.5 MB, free: 14.9 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.295e-05/0.2404, allocations: 176.7 kB / 420.7 MB, free: 14.72 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.847e-05/0.2405, allocations: 181.5 kB / 420.8 MB, free: 14.54 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.186e-05/0.2405, allocations: 8 kB / 420.9 MB, free: 14.53 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.486e-05/0.2406, allocations: 346.8 kB / 421.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003977/0.241, allocations: 217 kB / 421.4 MB, free: 13.97 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004136/0.2414, allocations: 295.1 kB / 421.7 MB, free: 13.67 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006594/0.2421, allocations: 399.7 kB / 422.1 MB, free: 13.26 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.2421, allocations: 4 kB / 422.1 MB, free: 13.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001335/0.2434, allocations: 0.735 MB / 422.8 MB, free: 12.5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.2434, allocations: 4 kB / 422.8 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.2435, allocations: 0 / 422.8 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008893/0.2444, allocations: 374.5 kB / 423.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002479/0.2446, allocations: 71.89 kB / 423.3 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001905/0.2465, allocations: 3.441 MB / 426.7 MB, free: 8.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005096/0.2471, allocations: 104.1 kB / 426.8 MB, free: 8.219 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.772e-05/0.2471, allocations: 24 kB / 426.8 MB, free: 8.195 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 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 21} Notification: Performance of prepare postOptimizeDAE: time 0.0001915/0.2473, allocations: 169.6 kB / 427 MB, free: 8.02 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.959e-05/0.2474, allocations: 39.53 kB / 427 MB, free: 7.98 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001291/0.2487, allocations: 0.7201 MB / 427.8 MB, free: 7.246 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.2487, allocations: 7.938 kB / 427.8 MB, free: 7.238 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.2487, allocations: 0 / 427.8 MB, free: 7.238 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.2487, allocations: 3.984 kB / 427.8 MB, free: 7.234 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001828/0.2506, allocations: 1.287 MB / 429.1 MB, free: 5.883 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.2506, allocations: 4 kB / 429.1 MB, free: 5.879 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002682/0.2509, allocations: 63.91 kB / 429.1 MB, free: 5.816 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007772/0.2516, allocations: 358.3 kB / 429.5 MB, free: 5.457 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.298e-05/0.2517, allocations: 19.97 kB / 429.5 MB, free: 5.438 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001849/0.2536, allocations: 3.402 MB / 432.9 MB, free: 1.742 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2536, allocations: 32 / 432.9 MB, free: 1.742 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00166/0.2552, allocations: 1.04 MB / 433.9 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001768/0.2554, allocations: 164.6 kB / 434.1 MB, free: 0.5 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.147e-05/0.2555, allocations: 19.98 kB / 434.1 MB, free: 492 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004407/0.256, allocations: 99.91 kB / 434.2 MB, free: 392 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000186/0.2562, allocations: 112.3 kB / 434.3 MB, free: 280 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.84e-05/0.2562, allocations: 23.98 kB / 434.3 MB, free: 256 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001431/0.2563, allocations: 194 kB / 434.5 MB, free: 60 kB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2564, allocations: 0 / 434.5 MB, free: 60 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005028/0.2569, allocations: 116.1 kB / 434.6 MB, free: 15.94 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008335/0.2577, allocations: 383 kB / 435 MB, free: 15.68 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001616/0.2593, allocations: 0.7929 MB / 435.8 MB, free: 14.86 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.2594, allocations: 0 / 435.8 MB, free: 14.86 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008901/0.2603, allocations: 0.5345 MB / 436.3 MB, free: 14.3 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005782/0.2608, allocations: 56.53 kB / 436.4 MB, free: 14.25 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002082/0.2629, allocations: 1.249 MB / 437.6 MB, free: 12.97 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003692/0.2633, allocations: 0.8085 MB / 438.5 MB, free: 12.13 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.2634, allocations: 31.42 kB / 438.5 MB, free: 12.1 MB / 314.7 MB Notification: Performance of SimCode: time 5.81e-07/0.2634, allocations: 0 / 438.5 MB, free: 12.1 MB / 314.7 MB Notification: Performance of Templates: time 0.01139/0.2748, allocations: 9.335 MB / 447.8 MB, free: 2.766 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches