Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.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.001279/0.001279, allocations: 112.2 kB / 20.43 MB, free: 1.449 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.001372/0.001372, allocations: 189.9 kB / 23.72 MB, free: 4.684 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.451/1.451, allocations: 225.6 MB / 252.5 MB, free: 13.03 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.Translational.Examples.Brake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002112/0.002112, allocations: 47.92 kB / 370.4 MB, free: 9.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.275/0.2771, allocations: 52.19 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004131/0.2812, allocations: 2.469 MB / 425.1 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001069/0.2823, allocations: 495.3 kB / 425.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001268/0.2824, allocations: 7.938 kB / 425.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002447/0.2827, allocations: 59.5 kB / 425.6 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000167/0.2828, allocations: 83.33 kB / 425.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005279/0.2833, allocations: 195.6 kB / 425.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005471/0.2839, allocations: 491 kB / 426.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001655/0.2841, allocations: 44.92 kB / 426.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002675/0.2843, allocations: 223.4 kB / 426.7 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003621/0.2847, allocations: 243.2 kB / 426.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.21e-05/0.2848, allocations: 36 kB / 426.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001794/0.2849, allocations: 91.88 kB / 427 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001376/0.2851, allocations: 103.7 kB / 427.1 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001894/0.2853, allocations: 183.2 kB / 427.3 MB, free: 9.914 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005783/0.2858, allocations: 470.7 kB / 427.8 MB, free: 9.461 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2858, allocations: 0 / 427.8 MB, free: 9.461 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.965e-06/0.2858, allocations: 0 / 427.8 MB, free: 9.461 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.065e-06/0.2859, allocations: 0 / 427.8 MB, free: 9.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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.00132/0.2872, allocations: 0.5949 MB / 428.3 MB, free: 8.832 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.2872, allocations: 11.97 kB / 428.4 MB, free: 8.82 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.944e-05/0.2873, allocations: 70.72 kB / 428.4 MB, free: 8.742 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.166e-05/0.2874, allocations: 36.7 kB / 428.5 MB, free: 8.707 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000423/0.2878, allocations: 226.9 kB / 428.7 MB, free: 8.461 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.87e-05/0.2879, allocations: 21.03 kB / 428.7 MB, free: 8.441 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.367e-05/0.2879, allocations: 32.38 kB / 428.7 MB, free: 8.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007282/0.2887, allocations: 386.4 kB / 429.1 MB, free: 8.031 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.482e-05/0.2887, allocations: 7.938 kB / 429.1 MB, free: 8.023 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.666e-05/0.2887, allocations: 8 kB / 429.1 MB, free: 8.016 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.2887, allocations: 12 kB / 429.1 MB, free: 8.004 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008125/0.2895, allocations: 402.4 kB / 429.5 MB, free: 7.609 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002011/0.2915, allocations: 1.061 MB / 430.6 MB, free: 6.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000541/0.2921, allocations: 271.7 kB / 430.9 MB, free: 6.203 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003788/0.2925, allocations: 193.7 kB / 431.1 MB, free: 6.012 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.287e-05/0.2925, allocations: 11.94 kB / 431.1 MB, free: 6 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.711e-05/0.2925, allocations: 34.5 kB / 431.1 MB, free: 5.957 MB / 334.1 MB Notification: Performance of pre-optimization done (n=39): time 1.593e-06/0.2925, allocations: 4 kB / 431.1 MB, free: 5.953 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004462/0.297, allocations: 1.73 MB / 432.8 MB, free: 4.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.151e-05/0.2971, allocations: 55.41 kB / 432.9 MB, free: 4.094 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002978/0.2974, allocations: 236.9 kB / 433.1 MB, free: 3.852 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.055e-05/0.2974, allocations: 45.7 kB / 433.2 MB, free: 3.801 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001389/0.2976, allocations: 149 kB / 433.3 MB, free: 3.652 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001639/0.2977, allocations: 170.7 kB / 433.5 MB, free: 3.484 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001807/0.2979, allocations: 94.12 kB / 433.6 MB, free: 3.387 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000198/0.2981, allocations: 342.8 kB / 433.9 MB, free: 3.043 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003933/0.2985, allocations: 204.9 kB / 434.1 MB, free: 2.844 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004786/0.299, allocations: 288.1 kB / 434.4 MB, free: 2.539 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006598/0.2996, allocations: 377.7 kB / 434.8 MB, free: 2.145 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.2996, allocations: 0 / 434.8 MB, free: 2.145 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00146/0.3011, allocations: 0.6847 MB / 435.4 MB, free: 1.445 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.3011, allocations: 4 kB / 435.4 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.367e-05/0.3011, allocations: 8.141 kB / 435.4 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009225/0.3021, allocations: 0.4896 MB / 435.9 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003014/0.3024, allocations: 79.83 kB / 436 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001431/0.3038, allocations: 1.386 MB / 437.4 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004004/0.3042, allocations: 64.05 kB / 437.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.864e-05/0.3042, allocations: 19.98 kB / 437.5 MB, free: 15.34 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 (49): * Single equations (assignments): 47 * 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,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002246/0.3045, allocations: 162.9 kB / 437.6 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.778e-05/0.3045, allocations: 31.81 kB / 437.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001227/0.3047, allocations: 51.3 kB / 437.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.3047, allocations: 4 kB / 437.7 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.637e-06/0.3047, allocations: 4 kB / 437.7 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.687e-06/0.3047, allocations: 3.984 kB / 437.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002785/0.3075, allocations: 1.307 MB / 439 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.3075, allocations: 0 / 439 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002725/0.3078, allocations: 67.84 kB / 439.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007495/0.3085, allocations: 461.6 kB / 439.6 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.636e-05/0.3085, allocations: 23.97 kB / 439.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001329/0.3099, allocations: 1.335 MB / 440.9 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.3099, allocations: 3.984 kB / 440.9 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001817/0.3117, allocations: 0.9369 MB / 441.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001956/0.3119, allocations: 83.77 kB / 441.9 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.215e-05/0.312, allocations: 23.94 kB / 442 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002805/0.3123, allocations: 35.95 kB / 442 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001912/0.3124, allocations: 87.77 kB / 442.1 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.011e-05/0.3125, allocations: 19.98 kB / 442.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001852/0.3127, allocations: 168.5 kB / 442.3 MB, free: 10.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3127, allocations: 4 kB / 442.3 MB, free: 10.37 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005141/0.3132, allocations: 108 kB / 442.4 MB, free: 10.27 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,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002296/0.3155, allocations: 1.511 MB / 443.9 MB, free: 8.707 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001128/0.3166, allocations: 0.4904 MB / 444.4 MB, free: 8.219 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3166, allocations: 0 / 444.4 MB, free: 8.219 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007043/0.3173, allocations: 284.6 kB / 444.7 MB, free: 7.941 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005187/0.3178, allocations: 56.31 kB / 444.7 MB, free: 7.891 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007266/0.3251, allocations: 4.113 MB / 448.8 MB, free: 3.613 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004395/0.3255, allocations: 0.7801 MB / 449.6 MB, free: 2.805 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001469/0.3257, allocations: 34.97 kB / 449.6 MB, free: 2.773 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000157/0.3258, allocations: 95.39 kB / 449.7 MB, free: 2.68 MB / 350.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3258, allocations: 0 / 449.7 MB, free: 2.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04615/0.372, allocations: 12.18 MB / 461.9 MB, free: 6.652 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.97/13.34, allocations: 7.156 kB / 461.9 MB, free: 6.648 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake.mode from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake.startBackward in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake.startBackward from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake.startForward in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake.startForward from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake1.mode in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake1.mode from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake1.startBackward in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake1.startBackward from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake1.startForward in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake1.startForward from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.851779259999603]