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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001825/0.001825, allocations: 104.5 kB / 17.59 MB, free: 5.438 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.001979/0.001979, allocations: 191.9 kB / 18.51 MB, free: 4.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.692/2.692, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001888/0.001888, allocations: 55.92 kB / 280.7 MB, free: 3.082 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1452/0.1471, allocations: 46.63 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.007732/0.1549, allocations: 2.795 MB / 330.2 MB, free: 1.562 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003079/0.158, allocations: 0.9472 MB / 331.1 MB, free: 0.6055 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004963/0.1585, allocations: 4 kB / 331.1 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004291/0.1591, allocations: 59.38 kB / 331.2 MB, free: 0.543 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006597/0.1598, allocations: 103.1 kB / 331.3 MB, free: 452 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001/0.1608, allocations: 219.6 kB / 331.5 MB, free: 232 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001223/0.162, allocations: 0.5658 MB / 332.1 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003862/0.1624, allocations: 106.7 kB / 332.2 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006301/0.1631, allocations: 251.2 kB / 332.4 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007202/0.1638, allocations: 271 kB / 332.7 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001801/0.164, allocations: 44 kB / 332.7 MB, free: 14.99 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003626/0.1644, allocations: 91.95 kB / 332.8 MB, free: 14.9 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002473/0.1647, allocations: 115.6 kB / 332.9 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004337/0.1651, allocations: 211 kB / 333.1 MB, free: 14.58 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009678/0.1661, allocations: 0.5376 MB / 333.7 MB, free: 14.04 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.193e-06/0.1661, allocations: 0 / 333.7 MB, free: 14.04 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.1661, allocations: 0 / 333.7 MB, free: 14.04 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.318e-05/0.1662, allocations: 0 / 333.7 MB, free: 14.04 MB / 286.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.002377/0.1685, allocations: 0.733 MB / 334.4 MB, free: 13.26 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.638e-05/0.1686, allocations: 12.03 kB / 334.4 MB, free: 13.25 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002249/0.1689, allocations: 71.72 kB / 334.5 MB, free: 13.17 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001889/0.1691, allocations: 48.38 kB / 334.5 MB, free: 13.12 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006582/0.1697, allocations: 306.6 kB / 334.8 MB, free: 12.78 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.82e-05/0.1698, allocations: 25.38 kB / 334.9 MB, free: 12.75 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001258/0.1699, allocations: 36.38 kB / 334.9 MB, free: 12.72 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/0.1713, allocations: 454.4 kB / 335.3 MB, free: 12.27 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.359e-05/0.1714, allocations: 7.844 kB / 335.3 MB, free: 12.26 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.522e-05/0.1714, allocations: 12 kB / 335.4 MB, free: 12.25 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.539e-05/0.1715, allocations: 12 kB / 335.4 MB, free: 12.24 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00145/0.1729, allocations: 463.7 kB / 335.8 MB, free: 11.78 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003635/0.1766, allocations: 1.293 MB / 337.1 MB, free: 10.42 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00119/0.1778, allocations: 367.7 kB / 337.5 MB, free: 10.05 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007069/0.1785, allocations: 257.2 kB / 337.7 MB, free: 9.797 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.88e-05/0.1786, allocations: 4.375 kB / 337.7 MB, free: 9.793 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.672e-05/0.1786, allocations: 38.94 kB / 337.8 MB, free: 9.746 MB / 286.1 MB Notification: Performance of pre-optimization done (n=45): time 4.108e-06/0.1786, allocations: 0 / 337.8 MB, free: 9.746 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.007759/0.1864, allocations: 2.252 MB / 340 MB, free: 7.355 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.659e-05/0.1865, allocations: 59.84 kB / 340.1 MB, free: 7.285 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004501/0.187, allocations: 250.5 kB / 340.3 MB, free: 7.035 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.469e-05/0.1871, allocations: 45.64 kB / 340.4 MB, free: 6.984 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002128/0.1874, allocations: 176.6 kB / 340.5 MB, free: 6.809 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002625/0.1876, allocations: 173.6 kB / 340.7 MB, free: 6.637 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003338/0.188, allocations: 98.23 kB / 340.8 MB, free: 6.531 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000222/0.1882, allocations: 342.8 kB / 341.1 MB, free: 6.188 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007107/0.1889, allocations: 229 kB / 341.4 MB, free: 5.965 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008141/0.1898, allocations: 311.1 kB / 341.7 MB, free: 5.645 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001199/0.191, allocations: 415.7 kB / 342.1 MB, free: 5.227 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.191, allocations: 0 / 342.1 MB, free: 5.227 MB / 286.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002526/0.1935, allocations: 0.7625 MB / 342.8 MB, free: 4.445 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.515e-05/0.1936, allocations: 7.984 kB / 342.8 MB, free: 4.438 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.671e-05/0.1936, allocations: 0 / 342.8 MB, free: 4.438 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001907/0.1955, allocations: 0.5452 MB / 343.4 MB, free: 3.883 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004558/0.196, allocations: 75.88 kB / 343.5 MB, free: 3.809 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006329/0.2024, allocations: 3.656 MB / 347.1 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008263/0.2033, allocations: 71.94 kB / 347.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/0.2034, allocations: 23.92 kB / 347.2 MB, free: 15.75 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 (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.000505/0.2039, allocations: 165.6 kB / 347.4 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001942/0.2041, allocations: 39.56 kB / 347.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002341/0.2065, allocations: 0.7287 MB / 348.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.208e-05/0.2065, allocations: 7.984 kB / 348.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/0.2065, allocations: 0 / 348.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.2065, allocations: 0 / 348.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003888/0.2104, allocations: 1.271 MB / 349.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.296e-06/0.2105, allocations: 0 / 349.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004212/0.2109, allocations: 55.91 kB / 349.5 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001555/0.2125, allocations: 0.5217 MB / 350 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.418e-05/0.2126, allocations: 19.97 kB / 350 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004421/0.217, allocations: 3.626 MB / 353.6 MB, free: 8.918 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.2171, allocations: 7.875 kB / 353.6 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002864/0.2199, allocations: 1.032 MB / 354.7 MB, free: 7.852 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003982/0.2204, allocations: 156.6 kB / 354.8 MB, free: 7.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001281/0.2205, allocations: 23.94 kB / 354.9 MB, free: 7.656 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006428/0.2212, allocations: 67.91 kB / 354.9 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003418/0.2215, allocations: 96.28 kB / 355 MB, free: 7.496 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.848e-05/0.2216, allocations: 15.98 kB / 355 MB, free: 7.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003972/0.222, allocations: 186 kB / 355.2 MB, free: 7.297 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.222, allocations: 0 / 355.2 MB, free: 7.297 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009068/0.223, allocations: 124 kB / 355.3 MB, free: 7.176 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,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003425/0.2264, allocations: 1.608 MB / 356.9 MB, free: 5.531 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002577/0.229, allocations: 0.8214 MB / 357.8 MB, free: 4.688 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/0.229, allocations: 0 / 357.8 MB, free: 4.688 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001343/0.2304, allocations: 0.545 MB / 358.3 MB, free: 4.113 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008776/0.2313, allocations: 52.53 kB / 358.4 MB, free: 4.062 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01127/0.2426, allocations: 4.359 MB / 362.7 MB, free: 15.58 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005692/0.2432, allocations: 0.8035 MB / 363.5 MB, free: 14.75 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002298/0.2435, allocations: 31.28 kB / 363.6 MB, free: 14.72 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002528/0.2437, allocations: 111.4 kB / 363.7 MB, free: 14.61 MB / 318.1 MB Notification: Performance of SimCode: time 1.442e-06/0.2438, allocations: 3.938 kB / 363.7 MB, free: 14.61 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06438/0.3082, allocations: 13.18 MB / 376.8 MB, free: 1.348 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.92/19.22, allocations: 8.719 kB / 376.9 MB, free: 1.34 MB / 318.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/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