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.00131/0.00131, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001588/0.001588, allocations: 213.3 kB / 23.72 MB, free: 4.531 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.417/1.417, allocations: 230.6 MB / 257.5 MB, free: 7.809 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.001517/0.001517, allocations: 47.92 kB / 377.7 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2388/0.2403, allocations: 53.37 MB / 431.1 MB, free: 6.805 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.00441/0.2447, allocations: 2.427 MB / 433.5 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001297/0.246, allocations: 0.5692 MB / 434.1 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000127/0.2462, allocations: 7.938 kB / 434.1 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000318/0.2465, allocations: 71.42 kB / 434.1 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003257/0.2468, allocations: 135.1 kB / 434.3 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003319/0.2471, allocations: 171.7 kB / 434.4 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005654/0.2477, allocations: 0.5031 MB / 434.9 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001826/0.2479, allocations: 48.91 kB / 435 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003199/0.2482, allocations: 243.2 kB / 435.2 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003961/0.2486, allocations: 251.2 kB / 435.5 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.907e-05/0.2487, allocations: 40 kB / 435.5 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002038/0.2489, allocations: 99.97 kB / 435.6 MB, free: 2.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001922/0.2491, allocations: 119.6 kB / 435.7 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001868/0.2493, allocations: 163.3 kB / 435.9 MB, free: 1.973 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006465/0.2499, allocations: 0.5117 MB / 436.4 MB, free: 1.461 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.2499, allocations: 0 / 436.4 MB, free: 1.461 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2499, allocations: 0 / 436.4 MB, free: 1.461 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.208e-05/0.25, allocations: 0 / 436.4 MB, free: 1.461 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.001356/0.2513, allocations: 0.6413 MB / 437 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.2514, allocations: 8.031 kB / 437 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.188e-05/0.2514, allocations: 70.72 kB / 437.1 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.564e-05/0.2515, allocations: 36.7 kB / 437.2 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005444/0.2521, allocations: 245.8 kB / 437.4 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.579e-05/0.2521, allocations: 25.03 kB / 437.4 MB, free: 384 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.693e-05/0.2522, allocations: 28.38 kB / 437.4 MB, free: 356 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007551/0.253, allocations: 382.4 kB / 437.8 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.295e-05/0.253, allocations: 11.83 kB / 437.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.343e-05/0.253, allocations: 12 kB / 437.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.421e-05/0.253, allocations: 8 kB / 437.8 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007961/0.2538, allocations: 382.4 kB / 438.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002077/0.2559, allocations: 1.01 MB / 439.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006285/0.2565, allocations: 315 kB / 439.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003659/0.2569, allocations: 180.8 kB / 439.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.81e-05/0.257, allocations: 4 kB / 439.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.457e-05/0.257, allocations: 42.56 kB / 439.8 MB, free: 13.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.763e-06/0.257, allocations: 0 / 439.8 MB, free: 13.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004519/0.2615, allocations: 1.699 MB / 441.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.2616, allocations: 55.84 kB / 441.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002984/0.2619, allocations: 265 kB / 441.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.633e-05/0.2619, allocations: 41.69 kB / 441.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000122/0.262, allocations: 153.1 kB / 442 MB, free: 11.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001628/0.2622, allocations: 174.6 kB / 442.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001618/0.2624, allocations: 98.28 kB / 442.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001819/0.2625, allocations: 346.7 kB / 442.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000393/0.2629, allocations: 189.2 kB / 442.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004474/0.2634, allocations: 273.7 kB / 443 MB, free: 10.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006543/0.264, allocations: 357.6 kB / 443.4 MB, free: 10.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.264, allocations: 4 kB / 443.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001203/0.2652, allocations: 0.6029 MB / 444 MB, free: 9.547 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.2653, allocations: 8 kB / 444 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.2653, allocations: 0 / 444 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000748/0.266, allocations: 345.6 kB / 444.3 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002716/0.2663, allocations: 67.91 kB / 444.4 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001454/0.2677, allocations: 1.37 MB / 445.8 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004433/0.2682, allocations: 67.94 kB / 445.8 MB, free: 7.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.174e-05/0.2682, allocations: 20 kB / 445.8 MB, free: 7.621 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.000233/0.2685, allocations: 170.5 kB / 446 MB, free: 7.445 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.028e-05/0.2685, allocations: 35.75 kB / 446 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001398/0.2687, allocations: 51.61 kB / 446.1 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.2687, allocations: 8 kB / 446.1 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.024e-06/0.2687, allocations: 0 / 446.1 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.2687, allocations: 0 / 446.1 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002799/0.2715, allocations: 1.232 MB / 447.3 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.2715, allocations: 4 kB / 447.3 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002675/0.2718, allocations: 59.91 kB / 447.4 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005916/0.2724, allocations: 301.6 kB / 447.7 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.162e-05/0.2724, allocations: 19.92 kB / 447.7 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001264/0.2737, allocations: 1.323 MB / 449 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.757e-06/0.2737, allocations: 12.05 kB / 449 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001702/0.2754, allocations: 0.8986 MB / 449.9 MB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001898/0.2756, allocations: 79.73 kB / 450 MB, free: 3.258 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.702e-05/0.2757, allocations: 16 kB / 450 MB, free: 3.242 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002971/0.2759, allocations: 47.89 kB / 450.1 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001893/0.2761, allocations: 91.75 kB / 450.2 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.21e-05/0.2762, allocations: 23.98 kB / 450.2 MB, free: 3.082 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001928/0.2764, allocations: 180.5 kB / 450.4 MB, free: 2.906 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2764, allocations: 0 / 450.4 MB, free: 2.906 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004341/0.2768, allocations: 100 kB / 450.5 MB, free: 2.809 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.003342/0.2801, allocations: 1.756 MB / 452.2 MB, free: 1.168 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001027/0.2812, allocations: 461.2 kB / 452.7 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2812, allocations: 3.938 kB / 452.7 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005885/0.2818, allocations: 284.2 kB / 453 MB, free: 444 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000511/0.2823, allocations: 64.39 kB / 453 MB, free: 380 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00676/0.289, allocations: 4.049 MB / 457.1 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001792/0.2892, allocations: 177.8 kB / 457.2 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001336/0.2894, allocations: 30.97 kB / 457.3 MB, free: 11.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001781/0.2895, allocations: 111.4 kB / 457.4 MB, free: 11.82 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2895, allocations: 0 / 457.4 MB, free: 11.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04295/0.3325, allocations: 11.43 MB / 468.8 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.86/13.19, allocations: 19.48 kB / 468.8 MB, free: 492 kB / 366.1 MB " [Timeout remaining time 647] (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.734421934990678]