Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.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.001647/0.001647, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.002143/0.002143, allocations: 206.3 kB / 23.72 MB, free: 4.391 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.588/1.588, allocations: 230.5 MB / 257.4 MB, free: 7.75 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.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00199/0.00199, allocations: 59.91 kB / 377.7 MB, free: 2.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4318/0.4338, allocations: 53.4 MB / 431.1 MB, free: 6.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003832/0.4377, allocations: 1.828 MB / 433 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001413/0.4391, allocations: 0.6232 MB / 433.6 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001155/0.4392, allocations: 7.938 kB / 433.6 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000168/0.4393, allocations: 31.72 kB / 433.6 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001708/0.4395, allocations: 35.66 kB / 433.7 MB, free: 3.922 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003618/0.4399, allocations: 75.8 kB / 433.7 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000259/0.4401, allocations: 167.4 kB / 433.9 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000209/0.4403, allocations: 48.36 kB / 433.9 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001933/0.4405, allocations: 79.64 kB / 434 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000187/0.4407, allocations: 79.55 kB / 434.1 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.378e-05/0.4408, allocations: 15.94 kB / 434.1 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001006/0.4409, allocations: 24 kB / 434.1 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001016/0.441, allocations: 51.81 kB / 434.2 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.881e-05/0.4411, allocations: 67.61 kB / 434.3 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003632/0.4414, allocations: 188.9 kB / 434.4 MB, free: 3.141 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.4414, allocations: 4 kB / 434.4 MB, free: 3.137 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.4414, allocations: 0 / 434.4 MB, free: 3.137 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.375e-05/0.4414, allocations: 0 / 434.4 MB, free: 3.137 MB / 334.1 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.00105/0.4425, allocations: 453.4 kB / 434.9 MB, free: 2.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/0.4426, allocations: 15.98 kB / 434.9 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.524e-05/0.4426, allocations: 46.73 kB / 434.9 MB, free: 2.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001798/0.4428, allocations: 32.78 kB / 435 MB, free: 2.559 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003256/0.4431, allocations: 174.8 kB / 435.1 MB, free: 2.363 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.436e-05/0.4431, allocations: 24.66 kB / 435.2 MB, free: 2.34 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.143e-05/0.4432, allocations: 12.38 kB / 435.2 MB, free: 2.328 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003807/0.4436, allocations: 199.6 kB / 435.4 MB, free: 2.117 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.4436, allocations: 3.938 kB / 435.4 MB, free: 2.113 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.149e-05/0.4436, allocations: 7.984 kB / 435.4 MB, free: 2.105 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.162e-05/0.4436, allocations: 4 kB / 435.4 MB, free: 2.102 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002953/0.4439, allocations: 139.9 kB / 435.5 MB, free: 1.965 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001172/0.4451, allocations: 0.7302 MB / 436.3 MB, free: 1.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003357/0.4454, allocations: 157.1 kB / 436.4 MB, free: 1.008 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.4456, allocations: 77.73 kB / 436.5 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.423e-05/0.4456, allocations: 4 kB / 436.5 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002643/0.4459, allocations: 144.1 kB / 436.6 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.202e-06/0.4459, allocations: 4 kB / 436.6 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005692/0.4465, allocations: 253.8 kB / 436.9 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.921e-05/0.4465, allocations: 89.03 kB / 437 MB, free: 412 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002289/0.4468, allocations: 211.1 kB / 437.2 MB, free: 192 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.103e-05/0.4468, allocations: 25.7 kB / 437.2 MB, free: 160 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001194/0.4469, allocations: 144.3 kB / 437.3 MB, free: 12 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.685e-05/0.447, allocations: 43.8 kB / 437.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.236e-05/0.447, allocations: 41.7 kB / 437.4 MB, free: 15.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.4472, allocations: 338.8 kB / 437.8 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000145/0.4474, allocations: 71.95 kB / 437.8 MB, free: 15.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000197/0.4476, allocations: 129.8 kB / 438 MB, free: 15.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003379/0.4479, allocations: 207.2 kB / 438.2 MB, free: 15.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.4479, allocations: 0 / 438.2 MB, free: 15.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004206/0.4483, allocations: 241.3 kB / 438.4 MB, free: 14.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.4483, allocations: 8 kB / 438.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.4484, allocations: 3.984 kB / 438.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.029e-05/0.4484, allocations: 4 kB / 438.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001646/0.4485, allocations: 32.11 kB / 438.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.4485, allocations: 8 kB / 438.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001459/0.4487, allocations: 31.86 kB / 438.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.446e-05/0.4487, allocations: 8 kB / 438.5 MB, free: 14.8 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: 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 0.000162/0.4489, allocations: 145.6 kB / 438.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.473e-05/0.4489, allocations: 19.86 kB / 438.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004588/0.4494, allocations: 214.9 kB / 438.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.4494, allocations: 0 / 438.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.4494, allocations: 8 kB / 438.9 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.4494, allocations: 0 / 438.9 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002847/0.4497, allocations: 220.6 kB / 439.1 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.017e-06/0.4497, allocations: 7.984 kB / 439.1 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001046/0.4498, allocations: 23.92 kB / 439.1 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.4498, allocations: 0 / 439.1 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.915e-05/0.4498, allocations: 8 kB / 439.1 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.4498, allocations: 4 kB / 439.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.4498, allocations: 3.938 kB / 439.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003911/0.4502, allocations: 233.6 kB / 439.4 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.845e-05/0.4502, allocations: 11.91 kB / 439.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.116e-05/0.4503, allocations: 8 kB / 439.4 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001226/0.4504, allocations: 15.97 kB / 439.4 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.852e-05/0.4505, allocations: 15.97 kB / 439.4 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.041e-05/0.4505, allocations: 4 kB / 439.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001478/0.4506, allocations: 152.6 kB / 439.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4506, allocations: 96 / 439.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002633/0.4509, allocations: 47.83 kB / 439.6 MB, free: 13.6 MB / 350.1 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.0007728/0.4517, allocations: 0.7642 MB / 440.4 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003853/0.452, allocations: 167.8 kB / 440.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.452, allocations: 0 / 440.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001765/0.4522, allocations: 79.89 kB / 440.6 MB, free: 12.56 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003512/0.4526, allocations: 48.97 kB / 440.7 MB, free: 12.51 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003011/0.4556, allocations: 2.185 MB / 442.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001405/0.4557, allocations: 128.9 kB / 443 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001265/0.4558, allocations: 33.61 kB / 443 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001051/0.4559, allocations: 55.42 kB / 443.1 MB, free: 9.957 MB / 350.1 MB Notification: Performance of SimCode: time 1.152e-06/0.456, allocations: 0 / 443.1 MB, free: 9.957 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03549/0.4914, allocations: 4.871 MB / 447.9 MB, free: 5.215 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.58, allocations: 11.72 kB / 447.9 MB, free: 5.207 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Blocks.Examples.RealNetwork1_res.csv. Warning: Get data of variable multiSwitch.u[1] from file Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.csv failed! Error: Could not read variable multiSwitch.u[2] in file Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.csv. Warning: Get data of variable multiSwitch.u[2] from file Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.35049505205825]