Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001401/0.001401, allocations: 132.4 kB / 17.79 MB, free: 5.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001493/0.001493, allocations: 210.5 kB / 20.75 MB, free: 2.293 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 230.5 MB / 254 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.CompareBrakingForce,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_CompareBrakingForce",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.CompareBrakingForce,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_CompareBrakingForce",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001867/0.001867, allocations: 67.88 kB / 373 MB, free: 10.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09747/0.09934, allocations: 53.38 MB / 426.3 MB, free: 4.621 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.CompareBrakingForce): time 0.003663/0.103, allocations: 2.378 MB / 428.7 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001401/0.1044, allocations: 0.7673 MB / 429.5 MB, free: 1.461 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001172/0.1045, allocations: 7.938 kB / 429.5 MB, free: 1.453 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000138/0.1047, allocations: 39.59 kB / 429.5 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002648/0.1049, allocations: 91.31 kB / 429.6 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003174/0.1052, allocations: 115.7 kB / 429.7 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003599/0.1056, allocations: 302.6 kB / 430 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001514/0.1057, allocations: 48.7 kB / 430.1 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001458/0.1059, allocations: 119.5 kB / 430.2 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001791/0.1061, allocations: 123.5 kB / 430.3 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.626e-05/0.1061, allocations: 20 kB / 430.3 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.765e-05/0.1061, allocations: 24 kB / 430.4 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.541e-05/0.1062, allocations: 59.7 kB / 430.4 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001304/0.1064, allocations: 127.4 kB / 430.5 MB, free: 404 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003159/0.1067, allocations: 270.8 kB / 430.8 MB, free: 132 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1067, allocations: 3.938 kB / 430.8 MB, free: 128 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1067, allocations: 0 / 430.8 MB, free: 128 kB / 350.1 MB Notification: Performance of Transformations before backend: time 9.257e-06/0.1067, allocations: 0 / 430.8 MB, free: 128 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.1788/0.2854, allocations: 0.5466 MB / 431.4 MB, free: 11.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.444e-05/0.2855, allocations: 10.22 kB / 431.4 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.027e-05/0.2856, allocations: 56.98 kB / 431.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.663e-05/0.2856, allocations: 32.5 kB / 431.5 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003959/0.286, allocations: 260.3 kB / 431.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.683e-05/0.2861, allocations: 15.38 kB / 431.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.263e-05/0.2862, allocations: 23.88 kB / 431.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005025/0.2867, allocations: 241.5 kB / 432 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.521e-05/0.2867, allocations: 11.14 kB / 432 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.695e-05/0.2867, allocations: 10.25 kB / 432 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.239e-05/0.2867, allocations: 7.375 kB / 432 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000389/0.2871, allocations: 160.9 kB / 432.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001116/0.2882, allocations: 1.017 MB / 433.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005069/0.2887, allocations: 281.8 kB / 433.5 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000145/0.2889, allocations: 86.83 kB / 433.5 MB, free: 9.926 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.724e-05/0.2889, allocations: 7.438 kB / 433.6 MB, free: 9.926 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.98e-05/0.2889, allocations: 43.62 kB / 433.6 MB, free: 9.887 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.773e-06/0.2889, allocations: 0.5 kB / 433.6 MB, free: 9.887 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.001681/0.2906, allocations: 1.343 MB / 434.9 MB, free: 8.895 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.104e-05/0.2906, allocations: 133.3 kB / 435.1 MB, free: 8.738 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001895/0.2908, allocations: 209.2 kB / 435.3 MB, free: 8.633 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.2909, allocations: 30.48 kB / 435.3 MB, free: 8.602 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.429e-05/0.2909, allocations: 157.6 kB / 435.5 MB, free: 8.484 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.829e-05/0.291, allocations: 127.9 kB / 435.6 MB, free: 8.402 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.828e-05/0.2911, allocations: 66.78 kB / 435.7 MB, free: 8.387 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.366e-05/0.2912, allocations: 338.7 kB / 436 MB, free: 8.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001851/0.2914, allocations: 79.91 kB / 436.1 MB, free: 8.055 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002209/0.2916, allocations: 203.7 kB / 436.3 MB, free: 7.891 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004022/0.292, allocations: 301.7 kB / 436.6 MB, free: 7.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.292, allocations: 1.062 kB / 436.6 MB, free: 7.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005537/0.2925, allocations: 342.8 kB / 436.9 MB, free: 7.543 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.2926, allocations: 10 kB / 436.9 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.2926, allocations: 6.75 kB / 436.9 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.94e-05/0.2926, allocations: 9 kB / 436.9 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003477/0.2929, allocations: 94.83 kB / 437 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.2929, allocations: 8.391 kB / 437 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001621/0.2931, allocations: 11.16 kB / 437 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.786e-05/0.2931, allocations: 21.69 kB / 437 MB, free: 7.516 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.0001007/0.2932, allocations: 146.5 kB / 437.2 MB, free: 7.375 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.529e-05/0.2933, allocations: 26.81 kB / 437.2 MB, free: 7.363 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.83e-05/0.2934, allocations: 35.25 kB / 437.3 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.2934, allocations: 4.062 kB / 437.3 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.2934, allocations: 1.25 kB / 437.3 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.2934, allocations: 1.188 kB / 437.3 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001202/0.2946, allocations: 0.9739 MB / 438.2 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.2946, allocations: 4.344 kB / 438.2 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003515/0.295, allocations: 76.7 kB / 438.3 MB, free: 6.578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.683e-06/0.295, allocations: 3.406 kB / 438.3 MB, free: 6.578 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.286e-05/0.295, allocations: 10.92 kB / 438.3 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.031e-06/0.295, allocations: 9.406 kB / 438.3 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.295, allocations: 7.469 kB / 438.3 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006511/0.2957, allocations: 0.7054 MB / 439 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.486e-05/0.2957, allocations: 102.3 kB / 439.1 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.887e-05/0.2958, allocations: 10.59 kB / 439.2 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000258/0.296, allocations: 18.94 kB / 439.2 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.816e-05/0.2961, allocations: 27.77 kB / 439.2 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.973e-05/0.2961, allocations: 13.89 kB / 439.2 MB, free: 5.883 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001067/0.2962, allocations: 143.3 kB / 439.4 MB, free: 5.793 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2962, allocations: 1.375 kB / 439.4 MB, free: 5.793 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004827/0.2967, allocations: 66.5 kB / 439.4 MB, free: 5.781 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.0007897/0.2975, allocations: 1.239 MB / 440.7 MB, free: 4.711 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004966/0.298, allocations: 235.8 kB / 440.9 MB, free: 4.633 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.298, allocations: 3.812 kB / 440.9 MB, free: 4.633 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002114/0.2982, allocations: 120.9 kB / 441 MB, free: 4.594 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007282/0.2989, allocations: 73.27 kB / 441.1 MB, free: 4.562 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00348/0.3024, allocations: 3.484 MB / 444.6 MB, free: 1.902 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002144/0.3026, allocations: 0.7588 MB / 445.3 MB, free: 1.199 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001436/0.3028, allocations: 39.47 kB / 445.4 MB, free: 1.188 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/0.3029, allocations: 81.78 kB / 445.4 MB, free: 1.133 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3029, allocations: 0.5938 kB / 445.4 MB, free: 1.133 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0306/0.3335, allocations: 5.801 MB / 451.2 MB, free: 428 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.14/8.474, allocations: 17.14 kB / 451.3 MB, free: 416 kB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Translational_Examples_CompareBrakingForce.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce_res.csv. Warning: Get data of variable Time from file Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce_res.csv failed! Error: Could not read variable mass3.v in file Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce_res.csv. Warning: Get data of variable mass3.v from file Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce_res.csv failed! Error: Could not read variable mass4.v in file Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce_res.csv. Warning: Get data of variable mass4.v from file Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.00312378408853]