Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.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.001248/0.001248, 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.001345/0.001345, 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.518/1.518, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.Brake,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001536/0.001536, allocations: 47.92 kB / 373 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1128, allocations: 53.32 MB / 426.3 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004042/0.1168, allocations: 2.591 MB / 428.9 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.118, allocations: 0.5771 MB / 429.5 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001134/0.1181, allocations: 4 kB / 429.5 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002839/0.1183, allocations: 67.42 kB / 429.5 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003031/0.1187, allocations: 143 kB / 429.7 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002853/0.1189, allocations: 159.8 kB / 429.8 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005302/0.1195, allocations: 0.5185 MB / 430.3 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001453/0.1196, allocations: 48.67 kB / 430.4 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000258/0.1199, allocations: 231.4 kB / 430.6 MB, free: 484 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003434/0.1202, allocations: 251.1 kB / 430.9 MB, free: 232 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.893e-05/0.1203, allocations: 44 kB / 430.9 MB, free: 188 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001706/0.1205, allocations: 99.95 kB / 431 MB, free: 88 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2213/0.3418, allocations: 106.5 kB / 431.1 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003006/0.3421, allocations: 196.9 kB / 431.3 MB, free: 8.109 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007365/0.3428, allocations: 0.5026 MB / 431.8 MB, free: 8.043 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3428, allocations: 0 / 431.8 MB, free: 8.043 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3428, allocations: 0.5 kB / 431.8 MB, free: 8.043 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.3428, allocations: 0 / 431.8 MB, free: 8.043 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001314/0.3441, allocations: 0.7184 MB / 432.5 MB, free: 7.551 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.3442, allocations: 10.03 kB / 432.5 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.603e-05/0.3443, allocations: 67.86 kB / 432.6 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.813e-05/0.3443, allocations: 41.34 kB / 432.6 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000372/0.3447, allocations: 295.9 kB / 432.9 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.224e-05/0.3448, allocations: 27.28 kB / 433 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.255e-05/0.3448, allocations: 26.34 kB / 433 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007643/0.3456, allocations: 376.3 kB / 433.3 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.384e-05/0.3456, allocations: 9.453 kB / 433.4 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.689e-05/0.3457, allocations: 13.67 kB / 433.4 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.698e-05/0.3457, allocations: 10.72 kB / 433.4 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008579/0.3465, allocations: 388.7 kB / 433.8 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002242/0.3488, allocations: 1.127 MB / 434.9 MB, free: 6.777 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006311/0.3494, allocations: 314.5 kB / 435.2 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000367/0.3498, allocations: 180 kB / 435.4 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.233e-05/0.3498, allocations: 6.094 kB / 435.4 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.678e-05/0.3499, allocations: 41.39 kB / 435.4 MB, free: 6.695 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.453e-06/0.3499, allocations: 0 / 435.4 MB, free: 6.695 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004681/0.3545, allocations: 1.999 MB / 437.4 MB, free: 5.945 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.339e-05/0.3546, allocations: 58.22 kB / 437.5 MB, free: 5.883 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002814/0.3549, allocations: 253.4 kB / 437.7 MB, free: 5.734 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.856e-05/0.3549, allocations: 41.88 kB / 437.8 MB, free: 5.695 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.121e-05/0.355, allocations: 157.3 kB / 437.9 MB, free: 5.555 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001214/0.3551, allocations: 177.6 kB / 438.1 MB, free: 5.422 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001644/0.3553, allocations: 95.38 kB / 438.2 MB, free: 5.371 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.016e-05/0.3553, allocations: 347 kB / 438.5 MB, free: 5.039 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003983/0.3557, allocations: 190.9 kB / 438.7 MB, free: 4.969 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004182/0.3562, allocations: 271.2 kB / 439 MB, free: 4.816 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005847/0.3567, allocations: 349.7 kB / 439.3 MB, free: 4.625 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.3567, allocations: 7.938 kB / 439.3 MB, free: 4.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001154/0.3579, allocations: 0.6045 MB / 439.9 MB, free: 4.352 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.3579, allocations: 6.031 kB / 439.9 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.3579, allocations: 2.234 kB / 439.9 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007141/0.3586, allocations: 345.2 kB / 440.3 MB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002712/0.3589, allocations: 72.09 kB / 440.3 MB, free: 4.223 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001044/0.36, allocations: 1.36 MB / 441.7 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004744/0.3604, allocations: 78.08 kB / 441.8 MB, free: 3.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.2e-05/0.3605, allocations: 18.89 kB / 441.8 MB, free: 3.02 MB / 350.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 (47): * Single equations (assignments): 45 * 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,9), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0001811/0.3606, allocations: 158.6 kB / 441.9 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.176e-05/0.3607, allocations: 36.84 kB / 442 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001216/0.3609, allocations: 53.25 kB / 442 MB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.014e-06/0.3609, allocations: 11.03 kB / 442 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.3609, allocations: 0 / 442 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.3609, allocations: 3.953 kB / 442.1 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002849/0.3637, allocations: 1.334 MB / 443.4 MB, free: 2.121 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.3637, allocations: 1.312 kB / 443.4 MB, free: 2.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002756/0.364, allocations: 62.78 kB / 443.4 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005833/0.3646, allocations: 306 kB / 443.7 MB, free: 2.012 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.596e-05/0.3646, allocations: 23.12 kB / 443.8 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000954/0.3656, allocations: 1.308 MB / 445.1 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.3656, allocations: 1.219 kB / 445.1 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001693/0.3673, allocations: 0.9166 MB / 446 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001948/0.3675, allocations: 158 kB / 446.1 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.854e-05/0.3676, allocations: 18.81 kB / 446.2 MB, free: 212 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003334/0.3679, allocations: 35.97 kB / 446.2 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002176/0.3681, allocations: 94.36 kB / 446.3 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.404e-05/0.3682, allocations: 20.98 kB / 446.3 MB, free: 184 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001866/0.3683, allocations: 186.6 kB / 446.5 MB, free: 72 kB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3683, allocations: 1.188 kB / 446.5 MB, free: 72 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004936/0.3688, allocations: 95.36 kB / 446.6 MB, free: 60 kB / 350.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,7), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003539/0.3724, allocations: 1.722 MB / 448.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001203/0.3736, allocations: 469.8 kB / 448.8 MB, free: 14.83 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.3736, allocations: 0 / 448.8 MB, free: 14.83 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006785/0.3743, allocations: 285.4 kB / 449.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005957/0.3749, allocations: 65.3 kB / 449.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007537/0.3824, allocations: 4.055 MB / 453.2 MB, free: 12.15 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004816/0.3829, allocations: 0.7909 MB / 454 MB, free: 11.45 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002164/0.3831, allocations: 42.09 kB / 454 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002179/0.3833, allocations: 100.4 kB / 454.1 MB, free: 11.37 MB / 366.1 MB Notification: Performance of SimCode: time 1.293e-06/0.3833, allocations: 0 / 454.1 MB, free: 11.37 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0426/0.4259, allocations: 11.92 MB / 466 MB, free: 6.496 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.92/12.35, allocations: 7.094 kB / 466 MB, free: 6.496 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake.mode from file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake.startBackward in file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake.startBackward from file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake.startForward in file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake.startForward from file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake1.mode in file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake1.mode from file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake1.startBackward in file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake1.startBackward from file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake1.startForward in file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake1.startForward from file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.072695589988143]