Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.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.001661/0.001661, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002155/0.002155, allocations: 213 kB / 23.73 MB, free: 4.164 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.463/1.463, allocations: 230.5 MB / 257.4 MB, free: 7.789 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.Translational.Examples.Brake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 63.91 kB / 377.7 MB, free: 2.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2429/0.2449, allocations: 53.42 MB / 431.1 MB, free: 6.434 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004139/0.249, allocations: 2.419 MB / 433.5 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001121/0.2501, allocations: 0.5771 MB / 434.1 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001154/0.2502, allocations: 4 kB / 434.1 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003055/0.2505, allocations: 71.42 kB / 434.2 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003346/0.2509, allocations: 135 kB / 434.3 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003633/0.2512, allocations: 171.8 kB / 434.5 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005313/0.2518, allocations: 0.5108 MB / 435 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001562/0.2519, allocations: 40.92 kB / 435.1 MB, free: 2.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002681/0.2522, allocations: 235.3 kB / 435.3 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003383/0.2525, allocations: 235.2 kB / 435.5 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.896e-05/0.2526, allocations: 40 kB / 435.5 MB, free: 2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001923/0.2528, allocations: 95.97 kB / 435.6 MB, free: 1.906 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001631/0.253, allocations: 123.6 kB / 435.8 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001726/0.2531, allocations: 163.3 kB / 435.9 MB, free: 1.625 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005818/0.2537, allocations: 0.5076 MB / 436.4 MB, free: 1.117 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.2537, allocations: 0 / 436.4 MB, free: 1.117 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.2537, allocations: 0 / 436.4 MB, free: 1.117 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.192e-05/0.2537, allocations: 0 / 436.4 MB, free: 1.117 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.001341/0.2551, allocations: 0.6413 MB / 437.1 MB, free: 452 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.2551, allocations: 11.98 kB / 437.1 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.835e-05/0.2552, allocations: 66.73 kB / 437.1 MB, free: 364 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.721e-05/0.2553, allocations: 40.7 kB / 437.2 MB, free: 324 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004838/0.2558, allocations: 241.8 kB / 437.4 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.94e-05/0.2558, allocations: 25.03 kB / 437.4 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.361e-05/0.2559, allocations: 28.38 kB / 437.5 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007503/0.2567, allocations: 378.5 kB / 437.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.237e-05/0.2567, allocations: 7.891 kB / 437.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.932e-05/0.2567, allocations: 16 kB / 437.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.2567, allocations: 11.98 kB / 437.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008111/0.2575, allocations: 386.4 kB / 438.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002051/0.2596, allocations: 1.006 MB / 439.3 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006288/0.2602, allocations: 318.1 kB / 439.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003561/0.2606, allocations: 176.8 kB / 439.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.232e-05/0.2606, allocations: 4 kB / 439.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.706e-05/0.2607, allocations: 42.5 kB / 439.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.674e-06/0.2607, allocations: 0 / 439.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.00459/0.2653, allocations: 1.697 MB / 441.5 MB, free: 11.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.465e-05/0.2653, allocations: 55.84 kB / 441.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002954/0.2656, allocations: 265 kB / 441.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.483e-05/0.2657, allocations: 37.7 kB / 441.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.2658, allocations: 157.1 kB / 442 MB, free: 11.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001539/0.2659, allocations: 182.5 kB / 442.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001621/0.2661, allocations: 98.22 kB / 442.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.2662, allocations: 346.7 kB / 442.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003947/0.2666, allocations: 193.2 kB / 442.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004555/0.2671, allocations: 265.8 kB / 443.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006362/0.2677, allocations: 357.6 kB / 443.4 MB, free: 9.828 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.2677, allocations: 0 / 443.4 MB, free: 9.828 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001229/0.269, allocations: 0.6068 MB / 444 MB, free: 9.207 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.269, allocations: 11.94 kB / 444 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.269, allocations: 0 / 444 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007467/0.2697, allocations: 341.7 kB / 444.4 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002738/0.27, allocations: 71.84 kB / 444.4 MB, free: 8.785 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001377/0.2714, allocations: 1.362 MB / 445.8 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004298/0.2718, allocations: 63.95 kB / 445.9 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.482e-05/0.2719, allocations: 28.11 kB / 445.9 MB, free: 7.281 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.0002189/0.2721, allocations: 161.3 kB / 446 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.443e-05/0.2722, allocations: 35.75 kB / 446.1 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001316/0.2723, allocations: 51.61 kB / 446.1 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.2723, allocations: 8.062 kB / 446.1 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.2723, allocations: 4 kB / 446.1 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.2723, allocations: 3.984 kB / 446.1 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002961/0.2753, allocations: 1.239 MB / 447.4 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.002e-06/0.2753, allocations: 4 kB / 447.4 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002719/0.2756, allocations: 63.84 kB / 447.4 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006059/0.2762, allocations: 297.7 kB / 447.7 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.588e-05/0.2762, allocations: 23.91 kB / 447.8 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001314/0.2775, allocations: 1.319 MB / 449.1 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.2775, allocations: 0 / 449.1 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001796/0.2793, allocations: 0.906 MB / 450 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002147/0.2795, allocations: 87.8 kB / 450.1 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.022e-05/0.2796, allocations: 16 kB / 450.1 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003091/0.2799, allocations: 39.95 kB / 450.1 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001959/0.2801, allocations: 87.77 kB / 450.2 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.615e-05/0.2802, allocations: 27.97 kB / 450.2 MB, free: 2.742 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002186/0.2804, allocations: 176.5 kB / 450.4 MB, free: 2.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2804, allocations: 0 / 450.4 MB, free: 2.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004767/0.2809, allocations: 100 kB / 450.5 MB, free: 2.473 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.003454/0.2843, allocations: 1.741 MB / 452.2 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00111/0.2854, allocations: 465.2 kB / 452.7 MB, free: 368 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.2854, allocations: 0 / 452.7 MB, free: 368 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006262/0.2861, allocations: 287.9 kB / 453 MB, free: 80 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005554/0.2866, allocations: 64.56 kB / 453 MB, free: 16 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006947/0.2936, allocations: 4.057 MB / 457.1 MB, free: 11.8 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001869/0.2938, allocations: 185.8 kB / 457.3 MB, free: 11.6 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001571/0.2939, allocations: 34.95 kB / 457.3 MB, free: 11.56 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001782/0.2941, allocations: 107.4 kB / 457.4 MB, free: 11.45 MB / 366.1 MB Notification: Performance of SimCode: time 4.9e-07/0.2941, allocations: 0 / 457.4 MB, free: 11.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04208/0.3362, allocations: 11.3 MB / 468.7 MB, free: 236 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.06/13.4, allocations: 26.27 kB / 468.7 MB, free: 216 kB / 366.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake.mode from file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake.startBackward in file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake.startBackward from file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake.startForward in file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake.startForward from file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake1.mode in file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake1.mode from file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake1.startBackward in file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake1.startBackward from file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake1.startForward in file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake1.startForward from file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.02137404633686]