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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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_4_0_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_4_0_0_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.001877/0.001877, allocations: 108.3 kB / 16.92 MB, free: 5.781 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.002148/0.002148, allocations: 191.3 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.501/2.501, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002123/0.002124, allocations: 42.56 kB / 300.7 MB, free: 5.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2054/0.2075, allocations: 49.44 MB / 350.2 MB, free: 4.344 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.008364/0.216, allocations: 2.806 MB / 353 MB, free: 1.512 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002554/0.2186, allocations: 0.892 MB / 353.9 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002354/0.2189, allocations: 7.938 kB / 353.9 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000331/0.2192, allocations: 59.44 kB / 353.9 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003497/0.2197, allocations: 103.1 kB / 354 MB, free: 456 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007134/0.2204, allocations: 215.6 kB / 354.2 MB, free: 240 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000716/0.2211, allocations: 0.5696 MB / 354.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002734/0.2214, allocations: 110.7 kB / 354.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002985/0.2217, allocations: 243.3 kB / 355.1 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000376/0.2221, allocations: 275 kB / 355.4 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.545e-05/0.2222, allocations: 48 kB / 355.5 MB, free: 15 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002041/0.2224, allocations: 91.95 kB / 355.6 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001747/0.2226, allocations: 115.6 kB / 355.7 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002387/0.2228, allocations: 215 kB / 355.9 MB, free: 14.58 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006909/0.2235, allocations: 0.5299 MB / 356.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.2235, allocations: 0 / 356.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2235, allocations: 0 / 356.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.195e-05/0.2236, allocations: 0 / 356.4 MB, free: 14.05 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001769/0.2253, allocations: 0.7292 MB / 357.1 MB, free: 13.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.438e-05/0.2254, allocations: 11.97 kB / 357.1 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001908/0.2256, allocations: 79.62 kB / 357.2 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001245/0.2257, allocations: 44.47 kB / 357.3 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005443/0.2263, allocations: 310.5 kB / 357.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.744e-05/0.2264, allocations: 29.38 kB / 357.6 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.936e-05/0.2265, allocations: 36.38 kB / 357.6 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009842/0.2275, allocations: 446.4 kB / 358.1 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.306e-05/0.2275, allocations: 11.89 kB / 358.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.948e-05/0.2276, allocations: 12 kB / 358.1 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.155e-05/0.2276, allocations: 8 kB / 358.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001062/0.2286, allocations: 463.7 kB / 358.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002515/0.2312, allocations: 1.289 MB / 359.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009929/0.2322, allocations: 372.9 kB / 360.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005413/0.2327, allocations: 247.8 kB / 360.5 MB, free: 9.816 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.762e-05/0.2328, allocations: 8.375 kB / 360.5 MB, free: 9.809 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.558e-05/0.2328, allocations: 30.94 kB / 360.5 MB, free: 9.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 3.406e-06/0.2328, allocations: 4 kB / 360.5 MB, free: 9.766 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.007211/0.2401, allocations: 2.269 MB / 362.8 MB, free: 7.359 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.815e-05/0.2402, allocations: 59.78 kB / 362.8 MB, free: 7.289 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004794/0.2407, allocations: 250.6 kB / 363.1 MB, free: 7.039 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.36e-05/0.2408, allocations: 41.69 kB / 363.1 MB, free: 6.992 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002333/0.241, allocations: 176.5 kB / 363.3 MB, free: 6.812 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002686/0.2413, allocations: 169.7 kB / 363.4 MB, free: 6.645 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003775/0.2417, allocations: 102.1 kB / 363.5 MB, free: 6.539 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002707/0.242, allocations: 338.8 kB / 363.9 MB, free: 6.199 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008755/0.2429, allocations: 241 kB / 364.1 MB, free: 5.965 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001051/0.244, allocations: 299.2 kB / 364.4 MB, free: 5.652 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001489/0.2455, allocations: 419.7 kB / 364.8 MB, free: 5.223 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.2455, allocations: 4 kB / 364.8 MB, free: 5.219 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002852/0.2484, allocations: 0.7508 MB / 365.6 MB, free: 4.449 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.573e-05/0.2484, allocations: 8 kB / 365.6 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.2484, allocations: 4.125 kB / 365.6 MB, free: 4.438 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001877/0.2503, allocations: 0.5451 MB / 366.1 MB, free: 3.883 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004781/0.2508, allocations: 71.83 kB / 366.2 MB, free: 3.812 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4042/0.655, allocations: 3.655 MB / 369.8 MB, free: 25.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00123/0.6563, allocations: 73.33 kB / 369.9 MB, free: 25.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001151/0.6565, allocations: 18.69 kB / 369.9 MB, free: 25.17 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.0004067/0.6569, allocations: 161.9 kB / 370.1 MB, free: 25.06 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001948/0.6571, allocations: 37.34 kB / 370.1 MB, free: 25.06 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003435/0.6605, allocations: 0.7228 MB / 370.9 MB, free: 24.99 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.947e-05/0.6606, allocations: 5.875 kB / 370.9 MB, free: 24.99 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.45e-05/0.6606, allocations: 1.938 kB / 370.9 MB, free: 24.99 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.682e-05/0.6606, allocations: 2.672 kB / 370.9 MB, free: 24.99 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004643/0.6653, allocations: 1.269 MB / 372.1 MB, free: 24.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.02e-05/0.6653, allocations: 2.906 kB / 372.1 MB, free: 24.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005568/0.6659, allocations: 56.97 kB / 372.2 MB, free: 24.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001942/0.6679, allocations: 0.5344 MB / 372.7 MB, free: 24.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.666e-05/0.668, allocations: 16.91 kB / 372.7 MB, free: 24.58 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003854/0.6718, allocations: 3.615 MB / 376.4 MB, free: 21.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.6718, allocations: 4.969 kB / 376.4 MB, free: 21.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003429/0.6753, allocations: 1.03 MB / 377.4 MB, free: 20.72 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003737/0.6757, allocations: 160.8 kB / 377.6 MB, free: 20.61 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001708/0.6759, allocations: 23.5 kB / 377.6 MB, free: 20.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008262/0.6767, allocations: 64.8 kB / 377.6 MB, free: 20.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003848/0.6771, allocations: 88.09 kB / 377.7 MB, free: 20.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.869e-05/0.6772, allocations: 20.55 kB / 377.7 MB, free: 20.56 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003246/0.6775, allocations: 186.6 kB / 377.9 MB, free: 20.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.6776, allocations: 0 / 377.9 MB, free: 20.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001084/0.6786, allocations: 131.6 kB / 378.1 MB, free: 20.44 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.004348/0.683, allocations: 1.604 MB / 379.7 MB, free: 19.44 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003152/0.6862, allocations: 0.8268 MB / 380.5 MB, free: 19.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/0.6862, allocations: 0 / 380.5 MB, free: 19.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001267/0.6875, allocations: 0.5411 MB / 381 MB, free: 18.69 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007779/0.6883, allocations: 65.95 kB / 381.1 MB, free: 18.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01027/0.6986, allocations: 4.355 MB / 385.4 MB, free: 16.1 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003896/0.699, allocations: 0.803 MB / 386.2 MB, free: 15.39 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002032/0.6992, allocations: 30.98 kB / 386.3 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001899/0.6994, allocations: 113.9 kB / 386.4 MB, free: 15.3 MB / 302.1 MB Notification: Performance of SimCode: time 1.062e-06/0.6994, allocations: 0 / 386.4 MB, free: 15.3 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06038/0.7598, allocations: 13.19 MB / 399.6 MB, free: 7.422 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.07/19.83, allocations: 11.34 kB / 399.6 MB, free: 7.418 MB / 302.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.csv","/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_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches