Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.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.001363/0.001363, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.001388/0.001388, allocations: 200.3 kB / 20.74 MB, free: 2.32 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.443/1.443, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.CompareBrakingForce,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_CompareBrakingForce",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.CompareBrakingForce,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_CompareBrakingForce",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001549/0.001549, allocations: 51.92 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09897/0.1005, allocations: 53.33 MB / 426.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.CompareBrakingForce): time 0.003565/0.1041, allocations: 2.37 MB / 428.7 MB, free: 2.422 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001483/0.1056, allocations: 0.7712 MB / 429.4 MB, free: 1.645 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001219/0.1057, allocations: 7.938 kB / 429.4 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001409/0.1058, allocations: 39.59 kB / 429.5 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002672/0.1061, allocations: 87.31 kB / 429.6 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003165/0.1064, allocations: 115.7 kB / 429.7 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003621/0.1068, allocations: 310.6 kB / 430 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000144/0.1069, allocations: 44.72 kB / 430 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001386/0.1071, allocations: 119.5 kB / 430.1 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001772/0.1072, allocations: 123.5 kB / 430.3 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.53e-05/0.1073, allocations: 20 kB / 430.3 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.797e-05/0.1073, allocations: 20 kB / 430.3 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.542e-05/0.1074, allocations: 59.75 kB / 430.4 MB, free: 0.707 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001498/0.1075, allocations: 127.3 kB / 430.5 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003069/0.1078, allocations: 270.8 kB / 430.8 MB, free: 324 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1078, allocations: 0 / 430.8 MB, free: 324 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1078, allocations: 0 / 430.8 MB, free: 324 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.1078, allocations: 7.938 kB / 430.8 MB, free: 316 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.1772/0.2851, allocations: 0.5478 MB / 431.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.827e-05/0.2851, allocations: 10.16 kB / 431.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.749e-05/0.2852, allocations: 58.36 kB / 431.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.948e-05/0.2853, allocations: 30.59 kB / 431.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004177/0.2857, allocations: 261 kB / 431.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.911e-05/0.2857, allocations: 18.38 kB / 431.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.965e-05/0.2858, allocations: 23.97 kB / 431.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005323/0.2863, allocations: 241.9 kB / 431.9 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.563e-05/0.2863, allocations: 9.984 kB / 432 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.732e-05/0.2864, allocations: 9.719 kB / 432 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.432e-05/0.2864, allocations: 7.438 kB / 432 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004047/0.2868, allocations: 162.2 kB / 432.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001066/0.2878, allocations: 1.009 MB / 433.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005048/0.2884, allocations: 289.8 kB / 433.4 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000164/0.2885, allocations: 87.16 kB / 433.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.991e-05/0.2885, allocations: 10.7 kB / 433.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.377e-05/0.2886, allocations: 36.53 kB / 433.5 MB, free: 10.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.784e-06/0.2886, allocations: 0.5 kB / 433.6 MB, free: 10.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.001709/0.2903, allocations: 1.342 MB / 434.9 MB, free: 9.027 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.63e-05/0.2903, allocations: 137.5 kB / 435 MB, free: 8.871 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001884/0.2905, allocations: 203.5 kB / 435.2 MB, free: 8.766 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.628e-05/0.2905, allocations: 33.52 kB / 435.3 MB, free: 8.734 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.843e-05/0.2906, allocations: 156.2 kB / 435.4 MB, free: 8.617 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.146e-05/0.2907, allocations: 128 kB / 435.5 MB, free: 8.535 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.5e-05/0.2907, allocations: 65.97 kB / 435.6 MB, free: 8.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.371e-05/0.2908, allocations: 341.7 kB / 435.9 MB, free: 8.203 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001799/0.291, allocations: 80.2 kB / 436 MB, free: 8.191 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002106/0.2912, allocations: 197.2 kB / 436.2 MB, free: 8.031 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003836/0.2916, allocations: 303.6 kB / 436.5 MB, free: 7.824 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2916, allocations: 1.094 kB / 436.5 MB, free: 7.824 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005584/0.2921, allocations: 354.7 kB / 436.8 MB, free: 7.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.2922, allocations: 8.391 kB / 436.9 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.669e-06/0.2922, allocations: 3.312 kB / 436.9 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.203e-05/0.2922, allocations: 5.375 kB / 436.9 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003475/0.2925, allocations: 96.47 kB / 437 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.2925, allocations: 5.938 kB / 437 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001606/0.2927, allocations: 21.67 kB / 437 MB, free: 7.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.679e-05/0.2927, allocations: 20.5 kB / 437 MB, free: 7.652 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001027/0.2928, allocations: 142.8 kB / 437.1 MB, free: 7.516 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.81e-05/0.2929, allocations: 25.17 kB / 437.2 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.688e-05/0.293, allocations: 35.97 kB / 437.2 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.293, allocations: 3.5 kB / 437.2 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/0.293, allocations: 0.9375 kB / 437.2 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/0.293, allocations: 2 kB / 437.2 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001156/0.2942, allocations: 0.9751 MB / 438.2 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.2942, allocations: 3.25 kB / 438.2 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003484/0.2945, allocations: 82.41 kB / 438.3 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.071e-06/0.2945, allocations: 4.656 kB / 438.3 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.143e-05/0.2946, allocations: 9.406 kB / 438.3 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.2946, allocations: 4.562 kB / 438.3 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.2946, allocations: 6.312 kB / 438.3 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006453/0.2952, allocations: 0.7051 MB / 439 MB, free: 6.152 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.935e-05/0.2953, allocations: 100.2 kB / 439.1 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.862e-05/0.2953, allocations: 16.33 kB / 439.1 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002551/0.2955, allocations: 11.86 kB / 439.1 MB, free: 6.035 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.198e-05/0.2956, allocations: 31.97 kB / 439.2 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.877e-05/0.2956, allocations: 16.06 kB / 439.2 MB, free: 6.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001324/0.2958, allocations: 144.6 kB / 439.3 MB, free: 5.926 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2958, allocations: 0 / 439.3 MB, free: 5.926 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004881/0.2962, allocations: 63 kB / 439.4 MB, free: 5.918 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 8 (mass4.s,mass4.v,mass3.s,mass3.v,mass2.s,mass2.v,mass1.s,mass1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007861/0.297, allocations: 1.243 MB / 440.6 MB, free: 4.848 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004715/0.2975, allocations: 235.2 kB / 440.8 MB, free: 4.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.2975, allocations: 0.5 kB / 440.8 MB, free: 4.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002183/0.2977, allocations: 127.7 kB / 441 MB, free: 4.727 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007223/0.2984, allocations: 65.02 kB / 441 MB, free: 4.707 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003553/0.302, allocations: 3.488 MB / 444.5 MB, free: 2.043 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002056/0.3022, allocations: 0.7599 MB / 445.3 MB, free: 1.344 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001472/0.3024, allocations: 35.17 kB / 445.3 MB, free: 1.336 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000137/0.3025, allocations: 82.48 kB / 445.4 MB, free: 1.281 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3025, allocations: 4 kB / 445.4 MB, free: 1.277 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03012/0.3326, allocations: 5.806 MB / 451.2 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.188/8.521, allocations: 8.797 kB / 451.2 MB, free: 0.5703 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_CompareBrakingForce.fmu > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/CompareBrakingForce/CompareBrakingForce.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce_res.csv. Warning: Get data of variable Time from file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce_res.csv failed! Error: Could not read variable mass3.v in file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce_res.csv. Warning: Get data of variable mass3.v from file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce_res.csv failed! Error: Could not read variable mass4.v in file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce_res.csv. Warning: Get data of variable mass4.v from file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.201353032010957]