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.001799/0.001799, allocations: 112 kB / 20.43 MB, free: 1.457 MB / 14.72 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.00212/0.00212, allocations: 181.3 kB / 23.72 MB, free: 4.699 MB / 14.72 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 1.481/1.481, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001421/0.001421, allocations: 43.94 kB / 370.4 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.2815, allocations: 52.2 MB / 422.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004496/0.286, allocations: 2.761 MB / 425.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002289/0.2883, allocations: 1.081 MB / 426.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002208/0.2885, allocations: 7.938 kB / 426.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002886/0.2888, allocations: 79.36 kB / 426.6 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006688/0.2895, allocations: 194.8 kB / 426.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005383/0.29, allocations: 247.5 kB / 427 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007941/0.2908, allocations: 0.6547 MB / 427.6 MB, free: 9.531 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002152/0.291, allocations: 83.92 kB / 427.7 MB, free: 9.441 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004535/0.2915, allocations: 307.1 kB / 428 MB, free: 9.141 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004797/0.292, allocations: 350.9 kB / 428.4 MB, free: 8.797 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.345e-05/0.2921, allocations: 52 kB / 428.4 MB, free: 8.746 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002799/0.2923, allocations: 139.8 kB / 428.6 MB, free: 8.609 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001852/0.2925, allocations: 147.6 kB / 428.7 MB, free: 8.465 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002629/0.2928, allocations: 254.7 kB / 428.9 MB, free: 8.215 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008087/0.2936, allocations: 0.6504 MB / 429.6 MB, free: 7.566 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2936, allocations: 0 / 429.6 MB, free: 7.566 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2936, allocations: 0 / 429.6 MB, free: 7.566 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.567e-05/0.2936, allocations: 0 / 429.6 MB, free: 7.566 MB / 334.1 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.001658/0.2953, allocations: 0.7312 MB / 430.3 MB, free: 6.805 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.2953, allocations: 12.03 kB / 430.3 MB, free: 6.793 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001095/0.2954, allocations: 86.64 kB / 430.4 MB, free: 6.699 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003319/0.2958, allocations: 68.59 kB / 430.5 MB, free: 6.633 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006308/0.2964, allocations: 308.8 kB / 430.8 MB, free: 6.305 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001794/0.2966, allocations: 152.3 kB / 430.9 MB, free: 6.129 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.925e-05/0.2967, allocations: 40.38 kB / 431 MB, free: 6.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001066/0.2977, allocations: 0.5604 MB / 431.5 MB, free: 5.516 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.408e-05/0.2978, allocations: 3.938 kB / 431.5 MB, free: 5.512 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.973e-05/0.2978, allocations: 16 kB / 431.6 MB, free: 5.496 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.32e-05/0.2978, allocations: 12 kB / 431.6 MB, free: 5.484 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001311/0.2991, allocations: 0.6363 MB / 432.2 MB, free: 4.848 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002557/0.3017, allocations: 1.219 MB / 433.4 MB, free: 3.582 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001169/0.3029, allocations: 0.5166 MB / 433.9 MB, free: 3.055 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006126/0.3035, allocations: 294.2 kB / 434.2 MB, free: 2.766 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.523e-05/0.3035, allocations: 8.5 kB / 434.2 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.654e-05/0.3036, allocations: 47 kB / 434.3 MB, free: 2.703 MB / 334.1 MB Notification: Performance of pre-optimization done (n=61): time 2.675e-06/0.3036, allocations: 0 / 434.3 MB, free: 2.703 MB / 334.1 MB Notification: Performance of matching and sorting (n=69): time 0.006942/0.3105, allocations: 2.564 MB / 436.8 MB, free: 96 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.277e-05/0.3106, allocations: 85.7 kB / 436.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004507/0.3111, allocations: 332.2 kB / 437.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.49e-05/0.3111, allocations: 41.7 kB / 437.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.3113, allocations: 165.8 kB / 437.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002119/0.3115, allocations: 242 kB / 437.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002116/0.3117, allocations: 126.3 kB / 437.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001679/0.3118, allocations: 346.8 kB / 438.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006167/0.3125, allocations: 285.2 kB / 438.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006625/0.3131, allocations: 362.4 kB / 438.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00106/0.3142, allocations: 0.5229 MB / 439.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.3142, allocations: 4 kB / 439.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00187/0.3161, allocations: 0.8658 MB / 440.2 MB, free: 12.67 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.3161, allocations: 7.938 kB / 440.2 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.3161, allocations: 4 kB / 440.2 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00113/0.3172, allocations: 479.2 kB / 440.7 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004343/0.3177, allocations: 83.88 kB / 440.7 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001436/0.3191, allocations: 1.08 MB / 441.8 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004691/0.3196, allocations: 55.92 kB / 441.9 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.946e-05/0.3196, allocations: 23.98 kB / 441.9 MB, free: 10.93 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,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0002782/0.3199, allocations: 185.7 kB / 442.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/0.32, allocations: 43.72 kB / 442.1 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000167/0.3202, allocations: 63.77 kB / 442.2 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.578e-06/0.3202, allocations: 8 kB / 442.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.235e-05/0.3202, allocations: 3.984 kB / 442.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.3202, allocations: 0 / 442.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003356/0.3236, allocations: 1.711 MB / 443.9 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.3236, allocations: 4.062 kB / 443.9 MB, free: 8.844 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003683/0.3239, allocations: 83.88 kB / 444 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009738/0.3249, allocations: 444.5 kB / 444.4 MB, free: 8.324 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.367e-05/0.325, allocations: 23.98 kB / 444.5 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001338/0.3263, allocations: 1.037 MB / 445.5 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3263, allocations: 0 / 445.5 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002563/0.3289, allocations: 1.294 MB / 446.8 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002844/0.3292, allocations: 103.7 kB / 446.9 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.648e-05/0.3293, allocations: 16 kB / 446.9 MB, free: 5.805 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004256/0.3297, allocations: 52 kB / 447 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002173/0.3299, allocations: 96.47 kB / 447 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.729e-05/0.3299, allocations: 19.98 kB / 447.1 MB, free: 5.641 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003436/0.3303, allocations: 243 kB / 447.3 MB, free: 5.406 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3303, allocations: 4 kB / 447.3 MB, free: 5.402 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005342/0.3308, allocations: 147.9 kB / 447.5 MB, free: 5.258 MB / 350.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,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003011/0.3338, allocations: 1.885 MB / 449.3 MB, free: 3.336 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001614/0.3354, allocations: 0.6702 MB / 450 MB, free: 2.668 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.3354, allocations: 0 / 450 MB, free: 2.668 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008262/0.3363, allocations: 360.6 kB / 450.4 MB, free: 2.312 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005292/0.3368, allocations: 56.31 kB / 450.4 MB, free: 2.258 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008956/0.3458, allocations: 4.99 MB / 455.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004825/0.3462, allocations: 0.8174 MB / 456.2 MB, free: 12.32 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002461/0.3465, allocations: 63.34 kB / 456.3 MB, free: 12.25 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002421/0.3467, allocations: 131.4 kB / 456.4 MB, free: 12.12 MB / 366.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3467, allocations: 0 / 456.4 MB, free: 12.12 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04898/0.3957, allocations: 14.48 MB / 470.9 MB, free: 13.8 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.06/13.46, allocations: 5.781 kB / 470.9 MB, free: 13.8 MB / 382.1 MB " [Timeout remaining time 646] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/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] Reference file matches [Calling sys.exit(0), Time elapsed: 15.95716364799955]