Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.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.0007898/0.0007898, allocations: 80.06 kB / 20.67 MB, free: 3.883 MB / 18.57 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.000817/0.000817, allocations: 153.1 kB / 23.93 MB, free: 0.625 MB / 18.57 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 0.9211/0.9211, allocations: 173.4 MB / 200.4 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] 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.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.232e-06/1.232e-06, allocations: 0 / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.231e-05/1.355e-05, allocations: 2.281 kB / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.001918/0.001932, allocations: 1.795 MB / 320.2 MB, free: 4.547 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007184/0.00265, allocations: 0.5686 MB / 320.8 MB, free: 3.977 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.322e-05/0.002744, allocations: 3.938 kB / 320.8 MB, free: 3.973 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001165/0.00286, allocations: 23.73 kB / 320.8 MB, free: 3.949 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001471/0.003007, allocations: 35.66 kB / 320.8 MB, free: 3.914 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003076/0.003315, allocations: 79.72 kB / 320.9 MB, free: 3.836 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002217/0.003536, allocations: 171.3 kB / 321.1 MB, free: 3.668 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001919/0.003728, allocations: 49.91 kB / 321.1 MB, free: 3.617 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001222/0.003851, allocations: 99.72 kB / 321.2 MB, free: 3.52 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001108/0.003961, allocations: 63.78 kB / 321.3 MB, free: 3.457 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.182e-05/0.003983, allocations: 12 kB / 321.3 MB, free: 3.445 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.944e-05/0.004043, allocations: 23.94 kB / 321.3 MB, free: 3.422 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.258e-05/0.004105, allocations: 43.83 kB / 321.4 MB, free: 3.379 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.251e-05/0.004158, allocations: 47.83 kB / 321.4 MB, free: 3.332 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002157/0.004373, allocations: 195.2 kB / 321.6 MB, free: 3.141 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.034e-06/0.004375, allocations: 0 / 321.6 MB, free: 3.141 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.41e-07/0.004376, allocations: 4 kB / 321.6 MB, free: 3.137 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.004381, allocations: 0 / 321.6 MB, free: 3.137 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0006279/0.005009, allocations: 436.9 kB / 322 MB, free: 2.68 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.005044, allocations: 12.86 kB / 322.1 MB, free: 2.668 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.648e-05/0.005081, allocations: 50.73 kB / 322.1 MB, free: 2.609 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.604e-05/0.005117, allocations: 20.8 kB / 322.1 MB, free: 2.59 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001957/0.005312, allocations: 185.2 kB / 322.3 MB, free: 2.383 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/0.005327, allocations: 12.66 kB / 322.3 MB, free: 2.371 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.678e-05/0.005344, allocations: 12.38 kB / 322.3 MB, free: 2.359 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002422/0.005586, allocations: 211.6 kB / 322.5 MB, free: 2.137 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.005595, allocations: 0 / 322.5 MB, free: 2.137 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.005608, allocations: 4 kB / 322.5 MB, free: 2.133 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.738e-05/0.005626, allocations: 8 kB / 322.6 MB, free: 2.125 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000186/0.005812, allocations: 143.8 kB / 322.7 MB, free: 1.984 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006794/0.006491, allocations: 0.7109 MB / 323.4 MB, free: 1.219 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002051/0.006696, allocations: 153 kB / 323.6 MB, free: 1.051 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.419e-05/0.00678, allocations: 73.8 kB / 323.6 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.502e-05/0.006815, allocations: 4.109 kB / 323.6 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001655/0.006981, allocations: 156.3 kB / 323.8 MB, free: 0.8008 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 1.623e-06/0.006982, allocations: 0 / 323.8 MB, free: 0.8008 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004076/0.00739, allocations: 254.1 kB / 324 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.768e-05/0.007438, allocations: 85.11 kB / 324.1 MB, free: 456 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001334/0.007571, allocations: 207 kB / 324.3 MB, free: 240 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.875e-05/0.00759, allocations: 33.7 kB / 324.3 MB, free: 200 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.007716, allocations: 136.4 kB / 324.5 MB, free: 60 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.743e-05/0.007744, allocations: 47.67 kB / 324.5 MB, free: 12 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.138e-05/0.007805, allocations: 49.84 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.894e-05/0.007894, allocations: 334.6 kB / 324.9 MB, free: 15.62 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.381e-05/0.007988, allocations: 71.95 kB / 325 MB, free: 15.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001113/0.008099, allocations: 120.7 kB / 325.1 MB, free: 15.41 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000202/0.008301, allocations: 214.7 kB / 325.3 MB, free: 15.18 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.008304, allocations: 0 / 325.3 MB, free: 15.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003321/0.008636, allocations: 237.3 kB / 325.5 MB, free: 14.94 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.008651, allocations: 7.938 kB / 325.5 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.008658, allocations: 4 kB / 325.5 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.008673, allocations: 4 kB / 325.5 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.706e-05/0.00877, allocations: 32.17 kB / 325.6 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.779e-06/0.00878, allocations: 7.922 kB / 325.6 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.446e-05/0.008854, allocations: 31.88 kB / 325.6 MB, free: 14.85 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-06/0.008863, allocations: 4 kB / 325.6 MB, free: 14.85 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch.firstActiveIndex,multiSwitch.u[2],multiSwitch.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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 9.034e-05/0.008953, allocations: 145.7 kB / 325.8 MB, free: 14.7 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.746e-05/0.008971, allocations: 23.84 kB / 325.8 MB, free: 14.67 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002591/0.00923, allocations: 211 kB / 326 MB, free: 14.46 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.009233, allocations: 8 kB / 326 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.009238, allocations: 0 / 326 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.009242, allocations: 0 / 326 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001562/0.009398, allocations: 236.5 kB / 326.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.009399, allocations: 0 / 326.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.241e-05/0.009452, allocations: 23.92 kB / 326.3 MB, free: 14.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.009453, allocations: 0 / 326.3 MB, free: 14.15 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.009464, allocations: 8 kB / 326.3 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.009465, allocations: 0 / 326.3 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.009466, allocations: 0 / 326.3 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002119/0.009678, allocations: 229.7 kB / 326.5 MB, free: 13.9 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.775e-05/0.009696, allocations: 23.83 kB / 326.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.493e-05/0.00971, allocations: 3.938 kB / 326.5 MB, free: 13.87 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.438e-05/0.009765, allocations: 15.98 kB / 326.5 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.719e-05/0.009812, allocations: 20.06 kB / 326.5 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.594e-06/0.00982, allocations: 7.938 kB / 326.6 MB, free: 13.83 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.852e-05/0.009898, allocations: 148.4 kB / 326.7 MB, free: 13.68 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009898, allocations: 0 / 326.7 MB, free: 13.68 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000172/0.01007, allocations: 43.89 kB / 326.7 MB, free: 13.64 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006328/0.0107, allocations: 0.7692 MB / 327.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002417/0.01094, allocations: 163.8 kB / 327.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.262e-06/0.01095, allocations: 0 / 327.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.333e-05/0.01104, allocations: 75.94 kB / 327.7 MB, free: 12.61 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002038/0.01124, allocations: 47.8 kB / 327.8 MB, free: 12.56 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001637/0.01288, allocations: 2.175 MB / 330 MB, free: 10.25 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.381e-05/0.01295, allocations: 128.9 kB / 330.1 MB, free: 10.1 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.488e-05/0.01302, allocations: 29.47 kB / 330.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.361e-05/0.01309, allocations: 68.47 kB / 330.2 MB, free: 10 MB / 298.7 MB Notification: Performance of SimCode: time 8.21e-07/0.01309, allocations: 0 / 330.2 MB, free: 10 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01687/0.02996, allocations: 4.965 MB / 335.2 MB, free: 5.199 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.887/6.917, allocations: 14.89 kB / 335.2 MB, free: 5.188 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00198965 Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable multiSwitch.u[1] in file Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.csv. Warning: Get data of variable multiSwitch.u[1] from file Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.csv failed! Error: Could not read variable multiSwitch.u[2] in file Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.csv. Warning: Get data of variable multiSwitch.u[2] from file Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.747435082681477]