Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001686/0.001686, allocations: 112.5 kB / 20.43 MB, free: 1.469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001908/0.001908, allocations: 213 kB / 23.74 MB, free: 4.695 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 230.5 MB / 257.4 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002157/0.002157, allocations: 63.83 kB / 377.8 MB, free: 3.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2723/0.2744, allocations: 53.41 MB / 431.2 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004656/0.2791, allocations: 2.889 MB / 434.1 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002525/0.2816, allocations: 1.291 MB / 435.4 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001874/0.2818, allocations: 7.938 kB / 435.4 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003268/0.2821, allocations: 95.27 kB / 435.5 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005416/0.2827, allocations: 217.8 kB / 435.7 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005622/0.2832, allocations: 255.5 kB / 435.9 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008255/0.2841, allocations: 0.7133 MB / 436.6 MB, free: 1.207 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002097/0.2843, allocations: 91.91 kB / 436.7 MB, free: 1.109 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005339/0.2848, allocations: 335.1 kB / 437 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005428/0.2854, allocations: 386.8 kB / 437.4 MB, free: 412 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.593e-05/0.2855, allocations: 64 kB / 437.5 MB, free: 348 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003068/0.2858, allocations: 152 kB / 437.6 MB, free: 196 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002134/0.286, allocations: 171.5 kB / 437.8 MB, free: 24 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003057/0.2863, allocations: 266.9 kB / 438.1 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009238/0.2872, allocations: 0.7204 MB / 438.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.2872, allocations: 0 / 438.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2872, allocations: 0 / 438.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.437e-05/0.2872, allocations: 0 / 438.8 MB, free: 15.04 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001722/0.2889, allocations: 0.7855 MB / 439.6 MB, free: 14.22 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.289, allocations: 8.031 kB / 439.6 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001079/0.2891, allocations: 86.72 kB / 439.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004284/0.2895, allocations: 72.62 kB / 439.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006646/0.2902, allocations: 312.7 kB / 440 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001892/0.2904, allocations: 152.4 kB / 440.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.163e-05/0.2905, allocations: 40.33 kB / 440.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001132/0.2916, allocations: 0.5721 MB / 440.8 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.2916, allocations: 0 / 440.8 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.302e-05/0.2917, allocations: 16 kB / 440.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.73e-05/0.2917, allocations: 8 kB / 440.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001348/0.293, allocations: 0.605 MB / 441.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002644/0.2957, allocations: 1.247 MB / 442.7 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001192/0.2969, allocations: 0.4979 MB / 443.2 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006311/0.2975, allocations: 282.1 kB / 443.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.474e-05/0.2976, allocations: 8.5 kB / 443.5 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.377e-05/0.2976, allocations: 43.06 kB / 443.5 MB, free: 10.15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.174e-06/0.2976, allocations: 3.938 kB / 443.5 MB, free: 10.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.006893/0.3045, allocations: 2.434 MB / 445.9 MB, free: 7.672 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.311e-05/0.3045, allocations: 85.77 kB / 446 MB, free: 7.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004987/0.305, allocations: 352.5 kB / 446.4 MB, free: 7.215 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.596e-05/0.3051, allocations: 41.7 kB / 446.4 MB, free: 7.168 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001337/0.3052, allocations: 173.7 kB / 446.6 MB, free: 6.992 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002114/0.3055, allocations: 249.9 kB / 446.8 MB, free: 6.746 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002131/0.3057, allocations: 118.3 kB / 446.9 MB, free: 6.625 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.3058, allocations: 354.8 kB / 447.3 MB, free: 6.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006101/0.3064, allocations: 269.2 kB / 447.5 MB, free: 6.008 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006571/0.3071, allocations: 330.5 kB / 447.9 MB, free: 5.672 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001074/0.3082, allocations: 495.5 kB / 448.4 MB, free: 5.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3082, allocations: 0 / 448.4 MB, free: 5.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001827/0.31, allocations: 0.818 MB / 449.2 MB, free: 4.352 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.31, allocations: 8 kB / 449.2 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.31, allocations: 0 / 449.2 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001117/0.3112, allocations: 444.4 kB / 449.6 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004029/0.3116, allocations: 91.81 kB / 449.7 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001344/0.3129, allocations: 1.018 MB / 450.7 MB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004923/0.3134, allocations: 71.98 kB / 450.8 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.026e-05/0.3135, allocations: 23.94 kB / 450.8 MB, free: 2.68 MB / 350.1 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,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0002615/0.3137, allocations: 177.8 kB / 451 MB, free: 2.496 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001179/0.3138, allocations: 43.72 kB / 451 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001673/0.314, allocations: 67.86 kB / 451.1 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.864e-06/0.314, allocations: 12 kB / 451.1 MB, free: 2.375 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.314, allocations: 0 / 451.1 MB, free: 2.375 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.314, allocations: 3.984 kB / 451.1 MB, free: 2.371 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00337/0.3174, allocations: 1.656 MB / 452.8 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.742e-06/0.3174, allocations: 4 kB / 452.8 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003837/0.3178, allocations: 79.88 kB / 452.8 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009804/0.3188, allocations: 416.6 kB / 453.3 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.931e-05/0.3188, allocations: 23.97 kB / 453.3 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00129/0.3201, allocations: 0.9783 MB / 454.3 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.3201, allocations: 3.984 kB / 454.3 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002569/0.3227, allocations: 1.212 MB / 455.5 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003081/0.323, allocations: 111.6 kB / 455.6 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001068/0.3231, allocations: 19.98 kB / 455.6 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000438/0.3235, allocations: 56 kB / 455.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002095/0.3237, allocations: 88.48 kB / 455.7 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.163e-05/0.3238, allocations: 31.91 kB / 455.8 MB, free: 13.6 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000354/0.3242, allocations: 255 kB / 456 MB, free: 13.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3242, allocations: 0 / 456 MB, free: 13.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005541/0.3247, allocations: 147.9 kB / 456.2 MB, free: 13.2 MB / 366.1 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,30)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004214/0.3289, allocations: 2.035 MB / 458.2 MB, free: 11.25 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001657/0.3306, allocations: 0.6312 MB / 458.8 MB, free: 10.62 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.3306, allocations: 4 kB / 458.8 MB, free: 10.62 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008502/0.3314, allocations: 340.6 kB / 459.2 MB, free: 10.28 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006078/0.3321, allocations: 72.47 kB / 459.2 MB, free: 10.21 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009187/0.3412, allocations: 4.875 MB / 464.1 MB, free: 5.234 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004762/0.3417, allocations: 0.8252 MB / 464.9 MB, free: 4.383 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003157/0.342, allocations: 83.36 kB / 465 MB, free: 4.301 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002821/0.3423, allocations: 147.4 kB / 465.2 MB, free: 4.156 MB / 366.1 MB Notification: Performance of SimCode: time 1.433e-06/0.3423, allocations: 0 / 465.2 MB, free: 4.156 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04877/0.3911, allocations: 15.16 MB / 480.3 MB, free: 5.059 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.56/13.95, allocations: 0 / 480.3 MB, free: 5.059 MB / 382.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.mode from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable bearingFriction.startBackward in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.startBackward from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable bearingFriction.startForward in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.startForward from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable gear.mode in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable gear.mode from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.479709004997858]