Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.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.001901/0.001901, 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 trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002472/0.002472, allocations: 207.5 kB / 20.75 MB, free: 2.312 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.487/1.487, allocations: 230.4 MB / 254 MB, free: 15.01 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.Brake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002162/0.002162, allocations: 67.91 kB / 373 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1139, allocations: 53.37 MB / 426.3 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004476/0.1183, allocations: 2.582 MB / 428.9 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001327/0.1197, allocations: 0.581 MB / 429.5 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002317/0.1199, allocations: 7.938 kB / 429.5 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003279/0.1202, allocations: 67.42 kB / 429.6 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004402/0.1207, allocations: 135.1 kB / 429.7 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004174/0.1211, allocations: 167.7 kB / 429.9 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007089/0.1218, allocations: 0.5069 MB / 430.4 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001683/0.122, allocations: 52.66 kB / 430.4 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003687/0.1223, allocations: 231.3 kB / 430.7 MB, free: 284 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004275/0.1228, allocations: 255.1 kB / 430.9 MB, free: 28 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.2343/0.3571, allocations: 38.52 kB / 430.9 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004022/0.3575, allocations: 92.73 kB / 431 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002022/0.3577, allocations: 111 kB / 431.1 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002551/0.358, allocations: 198.5 kB / 431.3 MB, free: 8.082 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007699/0.3587, allocations: 0.5038 MB / 431.8 MB, free: 8.016 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.3587, allocations: 1.531 kB / 431.8 MB, free: 8.016 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3587, allocations: 0 / 431.8 MB, free: 8.016 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.835e-06/0.3587, allocations: 0.5 kB / 431.8 MB, free: 8.016 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.001387/0.3601, allocations: 0.7176 MB / 432.6 MB, free: 7.523 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.369e-05/0.3602, allocations: 11.47 kB / 432.6 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.423e-05/0.3603, allocations: 65.16 kB / 432.6 MB, free: 7.484 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001124/0.3604, allocations: 39.73 kB / 432.7 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003787/0.3608, allocations: 304.1 kB / 433 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.14e-05/0.3608, allocations: 22.66 kB / 433 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.177e-05/0.3609, allocations: 29.56 kB / 433 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006915/0.3616, allocations: 375.3 kB / 433.4 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.095e-05/0.3616, allocations: 12.95 kB / 433.4 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.163e-05/0.3616, allocations: 9.219 kB / 433.4 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.3616, allocations: 8.094 kB / 433.4 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000787/0.3624, allocations: 391 kB / 433.8 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001956/0.3644, allocations: 1.131 MB / 434.9 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006337/0.365, allocations: 305.4 kB / 435.2 MB, free: 6.719 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003761/0.3654, allocations: 179.2 kB / 435.4 MB, free: 6.711 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.577e-05/0.3654, allocations: 10.48 kB / 435.4 MB, free: 6.711 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.599e-05/0.3654, allocations: 41.34 kB / 435.5 MB, free: 6.668 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.563e-06/0.3654, allocations: 1.062 kB / 435.5 MB, free: 6.668 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004724/0.3702, allocations: 1.999 MB / 437.5 MB, free: 5.844 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.59e-05/0.3702, allocations: 57.91 kB / 437.5 MB, free: 5.781 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002744/0.3705, allocations: 257.8 kB / 437.8 MB, free: 5.625 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.577e-05/0.3705, allocations: 40.75 kB / 437.8 MB, free: 5.586 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.112e-05/0.3706, allocations: 157.1 kB / 438 MB, free: 5.445 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001168/0.3707, allocations: 181.7 kB / 438.1 MB, free: 5.312 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001619/0.3709, allocations: 93.78 kB / 438.2 MB, free: 5.262 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.21e-05/0.371, allocations: 348 kB / 438.6 MB, free: 4.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003832/0.3713, allocations: 186.4 kB / 438.7 MB, free: 4.859 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000434/0.3718, allocations: 280.9 kB / 439 MB, free: 4.699 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006313/0.3724, allocations: 350.3 kB / 439.4 MB, free: 4.508 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.3724, allocations: 0.9688 kB / 439.4 MB, free: 4.508 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001232/0.3736, allocations: 0.6031 MB / 440 MB, free: 4.242 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.3737, allocations: 5.781 kB / 440 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.864e-06/0.3737, allocations: 2.625 kB / 440 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000775/0.3744, allocations: 340.9 kB / 440.3 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002824/0.3747, allocations: 71.27 kB / 440.4 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001094/0.3758, allocations: 1.367 MB / 441.7 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004915/0.3763, allocations: 69.78 kB / 441.8 MB, free: 2.914 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.298e-05/0.3763, allocations: 19.34 kB / 441.8 MB, free: 2.91 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.0001911/0.3765, allocations: 163.5 kB / 442 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000104/0.3766, allocations: 38.91 kB / 442 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001243/0.3768, allocations: 54.38 kB / 442.1 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.747e-06/0.3768, allocations: 7.188 kB / 442.1 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.3768, allocations: 0.75 kB / 442.1 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.3768, allocations: 2.344 kB / 442.1 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002966/0.3798, allocations: 1.332 MB / 443.4 MB, free: 2.012 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.3798, allocations: 3.062 kB / 443.4 MB, free: 2.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002927/0.3801, allocations: 62.38 kB / 443.5 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006797/0.3807, allocations: 313.5 kB / 443.8 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.576e-05/0.3808, allocations: 23.33 kB / 443.8 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001054/0.3818, allocations: 1.307 MB / 445.1 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.3818, allocations: 1.594 kB / 445.1 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001781/0.3836, allocations: 0.91 MB / 446 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002002/0.3838, allocations: 158.6 kB / 446.2 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.296e-05/0.3839, allocations: 21.81 kB / 446.2 MB, free: 104 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003295/0.3842, allocations: 33.66 kB / 446.2 MB, free: 100 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002199/0.3845, allocations: 98.08 kB / 446.3 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.062e-05/0.3845, allocations: 21.72 kB / 446.4 MB, free: 72 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002396/0.3847, allocations: 182.4 kB / 446.5 MB, free: 15.96 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3847, allocations: 1.406 kB / 446.5 MB, free: 15.96 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005578/0.3853, allocations: 95.23 kB / 446.6 MB, free: 15.95 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,7), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003654/0.389, allocations: 1.739 MB / 448.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001239/0.3902, allocations: 462 kB / 448.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3902, allocations: 0 / 448.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006826/0.3909, allocations: 283 kB / 449.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005238/0.3914, allocations: 59.23 kB / 449.2 MB, free: 14.58 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007141/0.3985, allocations: 4.054 MB / 453.2 MB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00049/0.399, allocations: 0.7901 MB / 454 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001606/0.3992, allocations: 39.11 kB / 454 MB, free: 11.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001893/0.3994, allocations: 105.9 kB / 454.1 MB, free: 11.24 MB / 366.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3994, allocations: 0 / 454.1 MB, free: 11.24 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04579/0.4452, allocations: 11.92 MB / 466.1 MB, free: 6.324 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/12.57, allocations: 4.5 kB / 466.1 MB, free: 6.32 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake.mode from file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake.startBackward in file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake.startBackward from file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake.startForward in file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake.startForward from file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake1.mode in file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake1.mode from file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake1.startBackward in file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake1.startBackward from file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake1.startForward in file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake1.startForward from file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.261165544972755]