Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001624/0.001624, allocations: 120.1 kB / 17.78 MB, free: 5.23 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001449/0.001449, allocations: 198.8 kB / 20.73 MB, free: 2.289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.535/1.535, allocations: 225.6 MB / 249.1 MB, free: 3.617 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001591/0.001591, allocations: 51.92 kB / 365.6 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1082, allocations: 52.14 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.00378/0.112, allocations: 2.465 MB / 420.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001044/0.113, allocations: 0.4914 MB / 420.7 MB, free: 9.648 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001149/0.1131, allocations: 3.938 kB / 420.7 MB, free: 9.645 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002039/0.1133, allocations: 47.52 kB / 420.8 MB, free: 9.598 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000174/0.1135, allocations: 91.33 kB / 420.9 MB, free: 9.508 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004637/0.114, allocations: 191.6 kB / 421 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005248/0.1145, allocations: 491.1 kB / 421.5 MB, free: 8.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001445/0.1147, allocations: 48.72 kB / 421.6 MB, free: 8.789 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000263/0.1149, allocations: 211.4 kB / 421.8 MB, free: 8.582 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003403/0.1153, allocations: 243.2 kB / 422 MB, free: 8.344 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.849e-05/0.1153, allocations: 40 kB / 422.1 MB, free: 8.305 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001776/0.1155, allocations: 99.88 kB / 422.2 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001193/0.1156, allocations: 99.7 kB / 422.2 MB, free: 8.109 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001847/0.1158, allocations: 179.2 kB / 422.4 MB, free: 7.934 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005502/0.1164, allocations: 470.2 kB / 422.9 MB, free: 7.473 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1164, allocations: 0 / 422.9 MB, free: 7.473 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1164, allocations: 0 / 422.9 MB, free: 7.473 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.1164, allocations: 0 / 422.9 MB, free: 7.473 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.001372/0.1177, allocations: 0.6662 MB / 423.5 MB, free: 6.754 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.1178, allocations: 12.03 kB / 423.6 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.826e-05/0.1179, allocations: 62.72 kB / 423.6 MB, free: 6.672 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.053e-05/0.118, allocations: 36.7 kB / 423.7 MB, free: 6.637 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004324/0.1184, allocations: 300.6 kB / 424 MB, free: 6.305 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.747e-05/0.1184, allocations: 20.94 kB / 424 MB, free: 6.285 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.674e-05/0.1185, allocations: 24.38 kB / 424 MB, free: 6.262 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007749/0.1193, allocations: 385.2 kB / 424.4 MB, free: 5.879 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.881e-05/0.1193, allocations: 3.938 kB / 424.4 MB, free: 5.875 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.521e-05/0.1193, allocations: 8 kB / 424.4 MB, free: 5.867 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.1193, allocations: 8 kB / 424.4 MB, free: 5.859 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008393/0.1202, allocations: 406 kB / 424.8 MB, free: 5.465 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002101/0.1223, allocations: 1.108 MB / 425.9 MB, free: 4.281 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005815/0.1229, allocations: 276.4 kB / 426.2 MB, free: 4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003866/0.1233, allocations: 189.8 kB / 426.4 MB, free: 3.812 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.292e-05/0.1233, allocations: 4 kB / 426.4 MB, free: 3.809 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.599e-05/0.1233, allocations: 46.48 kB / 426.4 MB, free: 3.754 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 2.334e-06/0.1233, allocations: 0 / 426.4 MB, free: 3.754 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.005149/0.1285, allocations: 2.03 MB / 428.4 MB, free: 1.586 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.006e-05/0.1286, allocations: 59.34 kB / 428.5 MB, free: 1.516 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003137/0.1289, allocations: 241 kB / 428.7 MB, free: 1.273 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.761e-05/0.1289, allocations: 37.7 kB / 428.8 MB, free: 1.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/0.1291, allocations: 153 kB / 428.9 MB, free: 1.078 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000182/0.1292, allocations: 166.6 kB / 429.1 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002114/0.1295, allocations: 98.19 kB / 429.2 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001889/0.1296, allocations: 338.8 kB / 429.5 MB, free: 484 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004392/0.1301, allocations: 213 kB / 429.7 MB, free: 272 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005432/0.1306, allocations: 284.8 kB / 430 MB, free: 15.96 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00076/0.1314, allocations: 381.7 kB / 430.4 MB, free: 15.56 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.1314, allocations: 0 / 430.4 MB, free: 15.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001662/0.133, allocations: 0.6808 MB / 431 MB, free: 14.87 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.823e-05/0.1331, allocations: 8 kB / 431 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.1331, allocations: 0 / 431 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009847/0.1341, allocations: 493.5 kB / 431.5 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003181/0.1344, allocations: 83.77 kB / 431.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001518/0.1359, allocations: 1.394 MB / 433 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004691/0.1364, allocations: 68.08 kB / 433.1 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.016e-05/0.1364, allocations: 23.98 kB / 433.1 MB, free: 12.76 MB / 366.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 (49): * Single equations (assignments): 47 * 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,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002407/0.1367, allocations: 158.9 kB / 433.2 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.818e-05/0.1368, allocations: 31.81 kB / 433.3 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001404/0.1369, allocations: 51.3 kB / 433.3 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.1369, allocations: 4 kB / 433.3 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.727e-06/0.1369, allocations: 0 / 433.3 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.1369, allocations: 7.984 kB / 433.3 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003044/0.14, allocations: 1.338 MB / 434.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.14, allocations: 160 / 434.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003162/0.1403, allocations: 63.86 kB / 434.7 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008874/0.1412, allocations: 465.4 kB / 435.2 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.268e-05/0.1412, allocations: 19.98 kB / 435.2 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001501/0.1427, allocations: 1.343 MB / 436.6 MB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.1427, allocations: 0 / 436.6 MB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002055/0.1448, allocations: 0.9403 MB / 437.5 MB, free: 8.168 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002604/0.145, allocations: 152.9 kB / 437.6 MB, free: 8 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.877e-05/0.1451, allocations: 19.94 kB / 437.7 MB, free: 7.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000315/0.1454, allocations: 39.95 kB / 437.7 MB, free: 7.941 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002023/0.1456, allocations: 83.86 kB / 437.8 MB, free: 7.859 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.693e-05/0.1457, allocations: 19.98 kB / 437.8 MB, free: 7.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001876/0.1459, allocations: 168.5 kB / 438 MB, free: 7.676 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1459, allocations: 0 / 438 MB, free: 7.676 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005108/0.1464, allocations: 111.9 kB / 438.1 MB, free: 7.566 MB / 366.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,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002566/0.1489, allocations: 1.524 MB / 439.6 MB, free: 5.992 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00121/0.1502, allocations: 490.4 kB / 440.1 MB, free: 5.516 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.1502, allocations: 0 / 440.1 MB, free: 5.516 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006621/0.1508, allocations: 283.7 kB / 440.4 MB, free: 5.238 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005398/0.1514, allocations: 48.42 kB / 440.4 MB, free: 5.191 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008028/0.1594, allocations: 4.11 MB / 444.5 MB, free: 0.918 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005495/0.1599, allocations: 0.78 MB / 445.3 MB, free: 112 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001614/0.1601, allocations: 34.95 kB / 445.3 MB, free: 76 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2132/0.3733, allocations: 91.91 kB / 445.4 MB, free: 30.86 MB / 366.1 MB Notification: Performance of SimCode: time 1.864e-06/0.3733, allocations: 0.75 kB / 445.4 MB, free: 30.86 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04458/0.4179, allocations: 11.72 MB / 457.1 MB, free: 28.76 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.26/12.68, allocations: 20.89 kB / 457.2 MB, free: 28.75 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake.mode from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake.startBackward in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake.startBackward from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake.startForward in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake.startForward from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake1.mode in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake1.mode from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake1.startBackward in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake1.startBackward from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake1.startForward in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake1.startForward from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.316777346655726]