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.001678/0.001678, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001841/0.001841, allocations: 209.7 kB / 23.73 MB, free: 4.387 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.401/1.401, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.001677/0.001677, allocations: 55.92 kB / 377.7 MB, free: 2.953 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2306/0.2323, allocations: 53.36 MB / 431.1 MB, free: 6.613 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.CompareBrakingForce): time 0.003446/0.2357, allocations: 2.226 MB / 433.3 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001309/0.237, allocations: 0.7206 MB / 434 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001134/0.2371, allocations: 7.938 kB / 434 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001321/0.2373, allocations: 39.59 kB / 434.1 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002594/0.2375, allocations: 99.25 kB / 434.2 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003138/0.2378, allocations: 111.8 kB / 434.3 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003497/0.2382, allocations: 294.7 kB / 434.6 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001522/0.2383, allocations: 48.89 kB / 434.6 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001413/0.2385, allocations: 123.5 kB / 434.7 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001608/0.2387, allocations: 107.5 kB / 434.8 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.843e-05/0.2387, allocations: 28 kB / 434.9 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.286e-05/0.2387, allocations: 20 kB / 434.9 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.343e-05/0.2388, allocations: 55.77 kB / 434.9 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001088/0.2389, allocations: 103.5 kB / 435 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000324/0.2392, allocations: 284.4 kB / 435.3 MB, free: 2.355 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.2392, allocations: 0 / 435.3 MB, free: 2.355 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2392, allocations: 0 / 435.3 MB, free: 2.355 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.2392, allocations: 0 / 435.3 MB, free: 2.355 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0008903/0.2401, allocations: 493.4 kB / 435.8 MB, free: 1.844 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.2402, allocations: 8.031 kB / 435.8 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.782e-05/0.2402, allocations: 54.73 kB / 435.9 MB, free: 1.773 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.669e-05/0.2403, allocations: 32.75 kB / 435.9 MB, free: 1.742 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003565/0.2406, allocations: 195.8 kB / 436.1 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.133e-05/0.2407, allocations: 16.81 kB / 436.1 MB, free: 1.508 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.561e-05/0.2407, allocations: 32.36 kB / 436.1 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000436/0.2411, allocations: 238.8 kB / 436.4 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.431e-05/0.2412, allocations: 7.953 kB / 436.4 MB, free: 1.219 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.346e-05/0.2412, allocations: 8 kB / 436.4 MB, free: 1.211 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.2412, allocations: 4 kB / 436.4 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003738/0.2416, allocations: 163.8 kB / 436.5 MB, free: 1.047 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001457/0.243, allocations: 0.9258 MB / 437.5 MB, free: 44 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005767/0.2436, allocations: 286.3 kB / 437.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001831/0.2438, allocations: 87.41 kB / 437.8 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.578e-05/0.2438, allocations: 11.88 kB / 437.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.267e-05/0.2438, allocations: 38.55 kB / 437.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.482e-06/0.2439, allocations: 0 / 437.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.001822/0.2457, allocations: 1.043 MB / 438.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.334e-05/0.2458, allocations: 136.5 kB / 439.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000212/0.246, allocations: 218.6 kB / 439.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.565e-05/0.246, allocations: 33.64 kB / 439.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/0.2461, allocations: 156.7 kB / 439.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.853e-05/0.2462, allocations: 122.9 kB / 439.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.319e-05/0.2463, allocations: 70.14 kB / 439.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.2464, allocations: 334.8 kB / 440 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001872/0.2466, allocations: 84.83 kB / 440.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000278/0.2469, allocations: 194.1 kB / 440.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000487/0.2474, allocations: 306.5 kB / 440.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.578e-06/0.2474, allocations: 4 kB / 440.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006167/0.248, allocations: 333.1 kB / 440.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.248, allocations: 8 kB / 440.9 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.248, allocations: 7.984 kB / 440.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.953e-05/0.2481, allocations: 4.25 kB / 440.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003581/0.2484, allocations: 99.84 kB / 441 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.602e-05/0.2484, allocations: 11.98 kB / 441 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001608/0.2486, allocations: 11.94 kB / 441 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.012e-05/0.2486, allocations: 20 kB / 441 MB, free: 12.12 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.0001378/0.2488, allocations: 145.7 kB / 441.2 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000101/0.2489, allocations: 27.84 kB / 441.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.843e-05/0.2489, allocations: 25.41 kB / 441.2 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.2489, allocations: 8 kB / 441.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.024e-06/0.2489, allocations: 0 / 441.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.249, allocations: 12.11 kB / 441.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001444/0.2504, allocations: 0.9117 MB / 442.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.2504, allocations: 4 kB / 442.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003812/0.2508, allocations: 79.89 kB / 442.2 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-06/0.2508, allocations: 4 kB / 442.2 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.448e-05/0.2508, allocations: 16.25 kB / 442.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.302e-06/0.2508, allocations: 7.938 kB / 442.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.2508, allocations: 4 kB / 442.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008452/0.2517, allocations: 0.7004 MB / 443 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.474e-05/0.2517, allocations: 23.84 kB / 443 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.218e-05/0.2518, allocations: 15.94 kB / 443 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000257/0.252, allocations: 11.94 kB / 443 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.028e-05/0.2521, allocations: 35.83 kB / 443.1 MB, free: 9.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.846e-05/0.2521, allocations: 16 kB / 443.1 MB, free: 9.949 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001363/0.2522, allocations: 148.6 kB / 443.2 MB, free: 9.805 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2522, allocations: 0 / 443.2 MB, free: 9.805 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004682/0.2527, allocations: 64 kB / 443.3 MB, free: 9.742 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.001144/0.2539, allocations: 1.254 MB / 444.5 MB, free: 8.434 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005417/0.2544, allocations: 232.3 kB / 444.8 MB, free: 8.207 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.2544, allocations: 0 / 444.8 MB, free: 8.207 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002563/0.2547, allocations: 115.8 kB / 444.9 MB, free: 8.094 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007683/0.2554, allocations: 78.62 kB / 445 MB, free: 8.023 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004514/0.2599, allocations: 3.492 MB / 448.4 MB, free: 4.301 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001699/0.2601, allocations: 155.1 kB / 448.6 MB, free: 4.133 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001399/0.2602, allocations: 30.97 kB / 448.6 MB, free: 4.102 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001426/0.2604, allocations: 83.41 kB / 448.7 MB, free: 4.02 MB / 350.1 MB Notification: Performance of SimCode: time 7.32e-07/0.2604, allocations: 0 / 448.7 MB, free: 4.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03485/0.2952, allocations: 6.514 MB / 455.2 MB, free: 13.67 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.59, allocations: 0 / 455.2 MB, free: 13.67 MB / 366.1 MB " [Timeout remaining time 648] (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: 15.519613590091467]