Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001821/0.001821, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002404/0.002404, allocations: 209.7 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.436/1.436, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002579/0.002579, allocations: 55.92 kB / 377.7 MB, free: 2.953 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2505/0.2531, allocations: 53.36 MB / 431.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.00452/0.2576, allocations: 2.427 MB / 433.5 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001293/0.2589, allocations: 0.5694 MB / 434.1 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001776/0.2591, allocations: 3.938 kB / 434.1 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003095/0.2594, allocations: 71.42 kB / 434.1 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004094/0.2598, allocations: 135 kB / 434.3 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003912/0.2602, allocations: 167.8 kB / 434.4 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006605/0.2609, allocations: 0.5148 MB / 434.9 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001676/0.261, allocations: 44.91 kB / 435 MB, free: 2.695 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003703/0.2614, allocations: 231.3 kB / 435.2 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004259/0.2618, allocations: 239.1 kB / 435.5 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001078/0.2619, allocations: 40 kB / 435.5 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002362/0.2622, allocations: 87.98 kB / 435.6 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001739/0.2623, allocations: 115.7 kB / 435.7 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002019/0.2625, allocations: 171.2 kB / 435.9 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006567/0.2632, allocations: 0.5076 MB / 436.4 MB, free: 1.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2632, allocations: 8 kB / 436.4 MB, free: 1.312 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2632, allocations: 0 / 436.4 MB, free: 1.312 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.397e-05/0.2632, allocations: 0 / 436.4 MB, free: 1.312 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.00147/0.2647, allocations: 0.6414 MB / 437 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.2647, allocations: 8.031 kB / 437 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.618e-05/0.2648, allocations: 62.72 kB / 437.1 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001142/0.2649, allocations: 40.7 kB / 437.1 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000514/0.2654, allocations: 245.8 kB / 437.4 MB, free: 260 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.016e-05/0.2655, allocations: 21.03 kB / 437.4 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.651e-05/0.2656, allocations: 32.38 kB / 437.4 MB, free: 208 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007786/0.2663, allocations: 378.5 kB / 437.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.421e-05/0.2664, allocations: 15.83 kB / 437.8 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.161e-05/0.2664, allocations: 12 kB / 437.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.213e-05/0.2664, allocations: 8 kB / 437.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008225/0.2672, allocations: 386.4 kB / 438.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002186/0.2694, allocations: 1.01 MB / 439.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000645/0.2701, allocations: 311.1 kB / 439.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003747/0.2704, allocations: 180.8 kB / 439.7 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.097e-05/0.2705, allocations: 4 kB / 439.7 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/0.2705, allocations: 42.56 kB / 439.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.874e-06/0.2705, allocations: 3.938 kB / 439.7 MB, free: 13.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004832/0.2753, allocations: 1.703 MB / 441.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.547e-05/0.2754, allocations: 55.84 kB / 441.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003179/0.2757, allocations: 257 kB / 441.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.96e-05/0.2758, allocations: 45.7 kB / 441.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001177/0.2759, allocations: 153 kB / 441.9 MB, free: 11.49 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001615/0.276, allocations: 174.5 kB / 442.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001758/0.2762, allocations: 98.28 kB / 442.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000191/0.2764, allocations: 346.7 kB / 442.5 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004176/0.2768, allocations: 193.2 kB / 442.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000487/0.2773, allocations: 273.7 kB / 443 MB, free: 10.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006681/0.278, allocations: 353.7 kB / 443.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.278, allocations: 3.938 kB / 443.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001267/0.2793, allocations: 0.5992 MB / 443.9 MB, free: 9.402 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.2793, allocations: 7.938 kB / 444 MB, free: 9.395 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.2793, allocations: 4 kB / 444 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007614/0.2801, allocations: 333.6 kB / 444.3 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002923/0.2803, allocations: 79.83 kB / 444.4 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001477/0.2818, allocations: 1.366 MB / 445.7 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005271/0.2823, allocations: 72.03 kB / 445.8 MB, free: 7.492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.527e-05/0.2824, allocations: 16 kB / 445.8 MB, free: 7.477 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 16 (brake1.mode,$PRE.brake1.mode,brake1.locked,brake1.startBackward,$PRE.brake1.startBackward,brake1.startForward,$PRE.brake1.startForward,brake1.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * 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: 2 * 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): 2 systems {(1,9), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002444/0.2826, allocations: 158.4 kB / 446 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/0.2828, allocations: 43.73 kB / 446 MB, free: 7.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001247/0.2829, allocations: 43.62 kB / 446.1 MB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.2829, allocations: 8 kB / 446.1 MB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.2829, allocations: 0 / 446.1 MB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.2829, allocations: 7.984 kB / 446.1 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00299/0.2859, allocations: 1.236 MB / 447.3 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.2859, allocations: 0 / 447.3 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002768/0.2862, allocations: 64.03 kB / 447.4 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000641/0.2868, allocations: 313.6 kB / 447.7 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.851e-05/0.2869, allocations: 23.92 kB / 447.7 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001433/0.2883, allocations: 1.308 MB / 449 MB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.2883, allocations: 4.031 kB / 449 MB, free: 4.137 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001904/0.2902, allocations: 0.9104 MB / 449.9 MB, free: 3.188 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002544/0.2905, allocations: 79.73 kB / 450 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001027/0.2906, allocations: 20 kB / 450 MB, free: 3.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003469/0.2909, allocations: 35.95 kB / 450.1 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002279/0.2911, allocations: 95.75 kB / 450.1 MB, free: 2.961 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.703e-05/0.2912, allocations: 23.98 kB / 450.2 MB, free: 2.938 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002381/0.2914, allocations: 184.5 kB / 450.4 MB, free: 2.758 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2914, allocations: 0 / 450.4 MB, free: 2.758 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005545/0.292, allocations: 100 kB / 450.4 MB, free: 2.66 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (mass1.s,mass1.v,mass2.s,mass2.v) * Number of discrete variables: 10 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode) * Number of discrete states: 6 (brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,7), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003734/0.2957, allocations: 1.748 MB / 452.2 MB, free: 1.027 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001239/0.2969, allocations: 469.2 kB / 452.7 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.297, allocations: 0 / 452.7 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006748/0.2976, allocations: 279.7 kB / 452.9 MB, free: 300 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000603/0.2982, allocations: 70.8 kB / 453 MB, free: 232 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007663/0.3059, allocations: 4.045 MB / 457 MB, free: 12.01 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002041/0.3061, allocations: 185.8 kB / 457.2 MB, free: 11.81 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001679/0.3063, allocations: 38.95 kB / 457.3 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001881/0.3065, allocations: 103.3 kB / 457.4 MB, free: 11.67 MB / 366.1 MB Notification: Performance of SimCode: time 1.162e-06/0.3065, allocations: 0 / 457.4 MB, free: 11.67 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04571/0.3522, allocations: 11.33 MB / 468.7 MB, free: 460 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.99/13.34, allocations: 15.12 kB / 468.7 MB, free: 448 kB / 366.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable brake.mode in file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake.mode from file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake.startBackward in file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake.startBackward from file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake.startForward in file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake.startForward from file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake1.mode in file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake1.mode from file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake1.startBackward in file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake1.startBackward from file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake1.startForward in file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake1.startForward from file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.923404465895146]