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.001797/0.001797, allocations: 113.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.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.002126/0.002126, allocations: 214.6 kB / 23.74 MB, free: 4.656 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.475/1.475, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.001594/0.001594, allocations: 47.92 kB / 377.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2865/0.2881, allocations: 53.37 MB / 431.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004171/0.2923, allocations: 2.594 MB / 433.7 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001147/0.2934, allocations: 0.5965 MB / 434.3 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001208/0.2935, allocations: 4 kB / 434.3 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002877/0.2938, allocations: 71.42 kB / 434.4 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000304/0.2941, allocations: 135 kB / 434.5 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003108/0.2944, allocations: 167.8 kB / 434.7 MB, free: 3.277 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005535/0.295, allocations: 0.507 MB / 435.2 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001554/0.2952, allocations: 48.91 kB / 435.2 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002857/0.2954, allocations: 235.3 kB / 435.5 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003641/0.2958, allocations: 251.2 kB / 435.7 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.638e-05/0.2959, allocations: 40 kB / 435.8 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001808/0.2961, allocations: 99.97 kB / 435.9 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001543/0.2962, allocations: 119.6 kB / 436 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001924/0.2964, allocations: 195.1 kB / 436.2 MB, free: 1.797 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005903/0.297, allocations: 0.5025 MB / 436.7 MB, free: 1.297 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.297, allocations: 0 / 436.7 MB, free: 1.297 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.297, allocations: 3.938 kB / 436.7 MB, free: 1.293 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.243e-06/0.297, allocations: 0 / 436.7 MB, free: 1.293 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.001313/0.2983, allocations: 0.6414 MB / 437.3 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.2984, allocations: 12.03 kB / 437.3 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.011e-05/0.2985, allocations: 62.72 kB / 437.4 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.25e-05/0.2985, allocations: 40.7 kB / 437.4 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004455/0.299, allocations: 241.8 kB / 437.7 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.847e-05/0.299, allocations: 29.02 kB / 437.7 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.827e-05/0.2991, allocations: 32.38 kB / 437.7 MB, free: 180 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007338/0.2998, allocations: 378.4 kB / 438.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.499e-05/0.2998, allocations: 11.89 kB / 438.1 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.652e-05/0.2999, allocations: 12 kB / 438.1 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.2999, allocations: 8 kB / 438.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007824/0.3007, allocations: 382.4 kB / 438.5 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002018/0.3027, allocations: 1.099 MB / 439.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006063/0.3033, allocations: 302.7 kB / 439.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000359/0.3037, allocations: 184.8 kB / 440.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.91e-05/0.3037, allocations: 8 kB / 440.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.901e-05/0.3037, allocations: 38.5 kB / 440.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.733e-06/0.3037, allocations: 3.938 kB / 440.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004462/0.3082, allocations: 1.699 MB / 441.8 MB, free: 11.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.783e-05/0.3083, allocations: 63.83 kB / 441.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002914/0.3085, allocations: 249 kB / 442.1 MB, free: 11.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.926e-05/0.3086, allocations: 45.69 kB / 442.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.3087, allocations: 157 kB / 442.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001555/0.3089, allocations: 174.6 kB / 442.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001649/0.3091, allocations: 102.2 kB / 442.6 MB, free: 11.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.3092, allocations: 350.7 kB / 442.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000384/0.3096, allocations: 189.2 kB / 443.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004572/0.3101, allocations: 265.8 kB / 443.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006349/0.3107, allocations: 361.6 kB / 443.7 MB, free: 9.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3107, allocations: 0 / 443.7 MB, free: 9.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001217/0.3119, allocations: 0.6029 MB / 444.3 MB, free: 9.293 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/0.3119, allocations: 10.5 kB / 444.3 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.3119, allocations: 0 / 444.3 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007457/0.3127, allocations: 345.7 kB / 444.7 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002694/0.313, allocations: 67.84 kB / 444.7 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001352/0.3143, allocations: 1.366 MB / 446.1 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004118/0.3147, allocations: 71.84 kB / 446.2 MB, free: 7.387 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.845e-05/0.3148, allocations: 20.31 kB / 446.2 MB, free: 7.367 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.000216/0.315, allocations: 166.4 kB / 446.4 MB, free: 7.195 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.834e-05/0.3151, allocations: 43.64 kB / 446.4 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001289/0.3152, allocations: 51.61 kB / 446.5 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.952e-06/0.3152, allocations: 4 kB / 446.5 MB, free: 7.094 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.395e-06/0.3152, allocations: 4 kB / 446.5 MB, free: 7.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.3152, allocations: 3.984 kB / 446.5 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002827/0.318, allocations: 1.295 MB / 447.8 MB, free: 5.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.318, allocations: 0 / 447.8 MB, free: 5.719 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002776/0.3183, allocations: 64.08 kB / 447.8 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005873/0.3189, allocations: 305.4 kB / 448.1 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.499e-05/0.319, allocations: 23.92 kB / 448.1 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001292/0.3202, allocations: 1.312 MB / 449.5 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.3202, allocations: 0 / 449.5 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001745/0.322, allocations: 0.9142 MB / 450.4 MB, free: 3.012 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001937/0.3222, allocations: 83.67 kB / 450.5 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.803e-05/0.3223, allocations: 16 kB / 450.5 MB, free: 2.914 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003025/0.3226, allocations: 39.95 kB / 450.5 MB, free: 2.875 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001912/0.3228, allocations: 95.75 kB / 450.6 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.902e-05/0.3228, allocations: 19.98 kB / 450.6 MB, free: 2.762 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000198/0.323, allocations: 184.5 kB / 450.8 MB, free: 2.582 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.323, allocations: 0 / 450.8 MB, free: 2.582 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004721/0.3235, allocations: 96 kB / 450.9 MB, free: 2.488 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.00331/0.3268, allocations: 1.735 MB / 452.6 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001133/0.3279, allocations: 461.2 kB / 453.1 MB, free: 400 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.3279, allocations: 3.938 kB / 453.1 MB, free: 396 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006152/0.3285, allocations: 284.1 kB / 453.4 MB, free: 112 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005437/0.3291, allocations: 58.03 kB / 453.4 MB, free: 56 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006972/0.336, allocations: 4.061 MB / 457.5 MB, free: 11.83 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004228/0.3365, allocations: 0.7801 MB / 458.3 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001409/0.3366, allocations: 34.97 kB / 458.3 MB, free: 10.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001764/0.3368, allocations: 107.4 kB / 458.4 MB, free: 10.88 MB / 366.1 MB Notification: Performance of SimCode: time 1.152e-06/0.3368, allocations: 0 / 458.4 MB, free: 10.88 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04511/0.3819, allocations: 12.45 MB / 470.9 MB, free: 14.53 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.95/13.33, allocations: 0 / 470.9 MB, free: 14.53 MB / 382.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: 16.028930288000993]