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.001674/0.001674, 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.002087/0.002087, allocations: 213.5 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.459/1.459, 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.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.00149/0.00149, allocations: 47.92 kB / 377.8 MB, free: 3.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2445/0.246, allocations: 53.36 MB / 431.1 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.CompareBrakingForce): time 0.003628/0.2496, allocations: 2.388 MB / 433.5 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001448/0.2511, allocations: 0.7751 MB / 434.3 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001333/0.2512, allocations: 7.938 kB / 434.3 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001556/0.2514, allocations: 39.58 kB / 434.3 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000268/0.2516, allocations: 91.27 kB / 434.4 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003116/0.2519, allocations: 107.8 kB / 434.5 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003467/0.2523, allocations: 310.6 kB / 434.8 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001385/0.2524, allocations: 48.92 kB / 434.9 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000144/0.2526, allocations: 127.4 kB / 435 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001839/0.2528, allocations: 119.5 kB / 435.1 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.37e-05/0.2528, allocations: 20 kB / 435.1 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.837e-05/0.2528, allocations: 20 kB / 435.2 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.719e-05/0.2529, allocations: 63.69 kB / 435.2 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001176/0.253, allocations: 123.4 kB / 435.3 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003112/0.2533, allocations: 275.2 kB / 435.6 MB, free: 2.391 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.2533, allocations: 4 kB / 435.6 MB, free: 2.387 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2533, allocations: 0 / 435.6 MB, free: 2.387 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.161e-06/0.2533, allocations: 0 / 435.6 MB, free: 2.387 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.0008859/0.2542, allocations: 493.4 kB / 436.1 MB, free: 1.875 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.2542, allocations: 8.031 kB / 436.1 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.524e-05/0.2543, allocations: 58.73 kB / 436.2 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.542e-05/0.2544, allocations: 28.75 kB / 436.2 MB, free: 1.773 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003385/0.2547, allocations: 199.8 kB / 436.4 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.626e-05/0.2547, allocations: 16.81 kB / 436.4 MB, free: 1.535 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.249e-05/0.2548, allocations: 20.38 kB / 436.4 MB, free: 1.516 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004375/0.2552, allocations: 246.7 kB / 436.7 MB, free: 1.258 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.995e-05/0.2552, allocations: 3.953 kB / 436.7 MB, free: 1.254 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.51e-05/0.2553, allocations: 19.98 kB / 436.7 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.2553, allocations: 4 kB / 436.7 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003645/0.2556, allocations: 163.8 kB / 436.8 MB, free: 1.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001288/0.2569, allocations: 0.9725 MB / 437.8 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005413/0.2575, allocations: 282.3 kB / 438.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001791/0.2576, allocations: 95.33 kB / 438.2 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.427e-05/0.2577, allocations: 4 kB / 438.2 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.852e-05/0.2577, allocations: 35.03 kB / 438.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.743e-06/0.2577, allocations: 0 / 438.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.001782/0.2595, allocations: 1.04 MB / 439.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.408e-05/0.2596, allocations: 140.5 kB / 439.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002092/0.2598, allocations: 210.7 kB / 439.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.866e-05/0.2598, allocations: 33.7 kB / 439.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.2599, allocations: 156.6 kB / 439.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.522e-05/0.26, allocations: 127 kB / 439.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.231e-05/0.2601, allocations: 66.12 kB / 440 MB, free: 13.62 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.2602, allocations: 342.8 kB / 440.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001889/0.2604, allocations: 84.83 kB / 440.4 MB, free: 13.19 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002651/0.2607, allocations: 197.9 kB / 440.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004657/0.2612, allocations: 293.5 kB / 440.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.2612, allocations: 8 kB / 440.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000595/0.2618, allocations: 349.1 kB / 441.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.2618, allocations: 8 kB / 441.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.946e-06/0.2618, allocations: 4 kB / 441.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.2618, allocations: 4 kB / 441.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000359/0.2622, allocations: 95.83 kB / 441.3 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.276e-05/0.2622, allocations: 8 kB / 441.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001607/0.2623, allocations: 19.92 kB / 441.4 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.424e-05/0.2624, allocations: 16 kB / 441.4 MB, free: 12.11 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.00014/0.2625, allocations: 150 kB / 441.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.599e-05/0.2626, allocations: 23.86 kB / 441.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.157e-05/0.2627, allocations: 33.39 kB / 441.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.2627, allocations: 4 kB / 441.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.2627, allocations: 4 kB / 441.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.2627, allocations: 3.938 kB / 441.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001428/0.2641, allocations: 0.939 MB / 442.5 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.2641, allocations: 256 / 442.5 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000372/0.2645, allocations: 83.91 kB / 442.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.043e-06/0.2645, allocations: 4 kB / 442.6 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.52e-05/0.2645, allocations: 11.98 kB / 442.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.113e-06/0.2645, allocations: 8.188 kB / 442.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/0.2645, allocations: 4 kB / 442.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008221/0.2653, allocations: 0.704 MB / 443.4 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.106e-05/0.2654, allocations: 19.86 kB / 443.4 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.329e-05/0.2654, allocations: 15.98 kB / 443.4 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002609/0.2657, allocations: 8 kB / 443.4 MB, free: 9.961 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.42e-05/0.2658, allocations: 39.77 kB / 443.4 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.034e-05/0.2658, allocations: 12 kB / 443.4 MB, free: 9.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001351/0.2659, allocations: 148.6 kB / 443.6 MB, free: 9.766 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2659, allocations: 0 / 443.6 MB, free: 9.766 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004776/0.2664, allocations: 64 kB / 443.7 MB, free: 9.703 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.001127/0.2675, allocations: 1.254 MB / 444.9 MB, free: 8.395 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004863/0.268, allocations: 223.6 kB / 445.1 MB, free: 8.176 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.268, allocations: 0 / 445.1 MB, free: 8.176 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002314/0.2682, allocations: 120.8 kB / 445.2 MB, free: 8.059 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007426/0.269, allocations: 75.75 kB / 445.3 MB, free: 7.992 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004418/0.2734, allocations: 3.495 MB / 448.8 MB, free: 4.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003963/0.2738, allocations: 0.7604 MB / 449.6 MB, free: 3.484 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001298/0.2739, allocations: 38.95 kB / 449.6 MB, free: 3.445 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001348/0.2741, allocations: 83.41 kB / 449.7 MB, free: 3.363 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2741, allocations: 0 / 449.7 MB, free: 3.363 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03401/0.3081, allocations: 6.117 MB / 455.8 MB, free: 13.4 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.45, allocations: 5.281 kB / 455.8 MB, free: 13.4 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.145038217000547]