Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008011/0.0008011, allocations: 76.06 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008753/0.0008753, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8531/0.8531, allocations: 173.4 MB / 200.4 MB, free: 9.441 MB / 186.7 MB " [Timeout remaining time 179] 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.LossyGearDemo2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.253e-06/1.253e-06, allocations: 0 / 318.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.241e-05/1.367e-05, allocations: 2.281 kB / 318.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.002544/0.002558, allocations: 2.551 MB / 321 MB, free: 3.797 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001619/0.004176, allocations: 1.057 MB / 322 MB, free: 2.734 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001637/0.00434, allocations: 7.938 kB / 322 MB, free: 2.727 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002262/0.004566, allocations: 79.3 kB / 322.1 MB, free: 2.648 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004754/0.005042, allocations: 202.6 kB / 322.3 MB, free: 2.449 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003352/0.005377, allocations: 247.5 kB / 322.6 MB, free: 2.207 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004434/0.00582, allocations: 0.6584 MB / 323.2 MB, free: 1.547 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001834/0.006004, allocations: 84.88 kB / 323.3 MB, free: 1.457 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004404/0.006444, allocations: 407.1 kB / 323.7 MB, free: 1.059 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003177/0.006762, allocations: 295.3 kB / 324 MB, free: 0.7695 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.103e-05/0.006823, allocations: 52 kB / 324 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002048/0.007028, allocations: 131.9 kB / 324.2 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001304/0.007158, allocations: 147.5 kB / 324.3 MB, free: 456 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000123/0.007281, allocations: 191.5 kB / 324.5 MB, free: 264 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000531/0.007812, allocations: 0.6972 MB / 325.2 MB, free: 15.56 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.007814, allocations: 0 / 325.2 MB, free: 15.56 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.007816, allocations: 4 kB / 325.2 MB, free: 15.55 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.007823, allocations: 3.984 kB / 325.2 MB, free: 15.55 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.0009705/0.008794, allocations: 0.7273 MB / 325.9 MB, free: 14.79 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.008832, allocations: 8.031 kB / 325.9 MB, free: 14.79 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.874e-05/0.008901, allocations: 78.7 kB / 326 MB, free: 14.7 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001862/0.009087, allocations: 64.64 kB / 326.1 MB, free: 14.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003676/0.009455, allocations: 308.4 kB / 326.4 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001003/0.009555, allocations: 156.3 kB / 326.5 MB, free: 14.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.391e-05/0.009609, allocations: 40.38 kB / 326.6 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006246/0.01023, allocations: 0.5822 MB / 327.1 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.671e-05/0.01025, allocations: 8.125 kB / 327.2 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.36e-05/0.01028, allocations: 19.94 kB / 327.2 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.333e-06/0.01029, allocations: 8 kB / 327.2 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007331/0.01102, allocations: 0.6246 MB / 327.8 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00138/0.0124, allocations: 1.118 MB / 328.9 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006567/0.01306, allocations: 0.5094 MB / 329.4 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003461/0.01341, allocations: 294.3 kB / 329.7 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.183e-05/0.01344, allocations: 8.5 kB / 329.7 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.978e-05/0.01346, allocations: 43.05 kB / 329.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of pre-optimization done (n=61): time 1.533e-06/0.01346, allocations: 0 / 329.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=69): time 0.003779/0.01724, allocations: 2.556 MB / 332.3 MB, free: 8.188 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.875e-05/0.01728, allocations: 81.77 kB / 332.4 MB, free: 8.09 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002662/0.01754, allocations: 336.2 kB / 332.7 MB, free: 7.75 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.075e-05/0.01758, allocations: 41.7 kB / 332.8 MB, free: 7.703 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.13e-05/0.01767, allocations: 165.8 kB / 332.9 MB, free: 7.539 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001206/0.01779, allocations: 238 kB / 333.2 MB, free: 7.305 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001302/0.01792, allocations: 130.2 kB / 333.3 MB, free: 7.172 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.644e-05/0.01801, allocations: 350.7 kB / 333.6 MB, free: 6.82 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004005/0.01841, allocations: 293.1 kB / 333.9 MB, free: 6.535 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004012/0.01881, allocations: 380.2 kB / 334.3 MB, free: 6.145 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006395/0.01945, allocations: 0.523 MB / 334.8 MB, free: 5.613 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.01946, allocations: 0 / 334.8 MB, free: 5.613 MB / 298.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001037/0.02049, allocations: 0.8696 MB / 335.7 MB, free: 4.734 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.274e-05/0.02051, allocations: 4 kB / 335.7 MB, free: 4.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.241e-06/0.02051, allocations: 4.062 kB / 335.7 MB, free: 4.727 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006279/0.02114, allocations: 483.2 kB / 336.2 MB, free: 4.254 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002288/0.02137, allocations: 83.88 kB / 336.3 MB, free: 4.172 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000873/0.02224, allocations: 1.079 MB / 337.3 MB, free: 3.066 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002265/0.02247, allocations: 63.95 kB / 337.4 MB, free: 3.004 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.027e-05/0.02251, allocations: 20 kB / 337.4 MB, free: 2.984 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0001675/0.02268, allocations: 173.8 kB / 337.6 MB, free: 2.805 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.248e-05/0.02274, allocations: 51.66 kB / 337.6 MB, free: 2.754 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.155e-05/0.02282, allocations: 67.83 kB / 337.7 MB, free: 2.688 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.02282, allocations: 4 kB / 337.7 MB, free: 2.684 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-06/0.02283, allocations: 0 / 337.7 MB, free: 2.684 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.02284, allocations: 7.984 kB / 337.7 MB, free: 2.676 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001994/0.02483, allocations: 1.626 MB / 339.3 MB, free: 0.9883 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.02483, allocations: 0 / 339.3 MB, free: 0.9883 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001868/0.02502, allocations: 79.88 kB / 339.4 MB, free: 0.9062 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005326/0.02555, allocations: 440.5 kB / 339.8 MB, free: 484 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.682e-05/0.02559, allocations: 23.98 kB / 339.9 MB, free: 460 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008269/0.02642, allocations: 1.048 MB / 340.9 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.02642, allocations: 0 / 340.9 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001604/0.02802, allocations: 1.297 MB / 342.2 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001625/0.02818, allocations: 99.64 kB / 342.3 MB, free: 13.95 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.455e-05/0.02824, allocations: 20 kB / 342.3 MB, free: 13.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.02845, allocations: 47.94 kB / 342.4 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001323/0.02858, allocations: 92.47 kB / 342.5 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.017e-05/0.02861, allocations: 28.05 kB / 342.5 MB, free: 13.77 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001785/0.02879, allocations: 251 kB / 342.7 MB, free: 13.52 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02879, allocations: 0 / 342.7 MB, free: 13.52 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003184/0.02911, allocations: 147.9 kB / 342.9 MB, free: 13.38 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001843/0.03095, allocations: 1.886 MB / 344.8 MB, free: 11.46 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009814/0.03193, allocations: 0.6624 MB / 345.4 MB, free: 10.8 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.03194, allocations: 8 kB / 345.4 MB, free: 10.79 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004641/0.0324, allocations: 356.8 kB / 345.8 MB, free: 10.45 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003047/0.0327, allocations: 61.02 kB / 345.8 MB, free: 10.38 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005992/0.0387, allocations: 4.954 MB / 350.8 MB, free: 5.324 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001343/0.03883, allocations: 218 kB / 351 MB, free: 5.094 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001396/0.03897, allocations: 63.34 kB / 351.1 MB, free: 5.031 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002042/0.03917, allocations: 132.4 kB / 351.2 MB, free: 4.902 MB / 314.7 MB Notification: Performance of SimCode: time 6.22e-07/0.03917, allocations: 0 / 351.2 MB, free: 4.902 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02396/0.06314, allocations: 13.1 MB / 364.3 MB, free: 7.98 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.058/8.121, allocations: 6.734 kB / 364.3 MB, free: 7.977 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable bearingFriction.mode in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.mode from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable bearingFriction.startBackward in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.startBackward from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable bearingFriction.startForward in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.startForward from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable gear.mode in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable gear.mode from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode Variables in the result:time,Inertia2.phi,Inertia2.w [Calling sys.exit(0), Time elapsed: 9.846011333167553]