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.0008042/0.0008042, allocations: 80.36 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008183/0.0008183, allocations: 160.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.897/0.897, allocations: 177 MB / 204.1 MB, free: 5.707 MB / 186.7 MB " [Timeout remaining time 179] 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 1.653e-06/1.653e-06, allocations: 0 / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.753e-05/1.919e-05, allocations: 6.281 kB / 324.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002158/0.002177, allocations: 1.821 MB / 326.3 MB, free: 14.03 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009206/0.003097, allocations: 0.631 MB / 327 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.867e-05/0.003196, allocations: 7.938 kB / 327 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001195/0.003316, allocations: 31.66 kB / 327 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001352/0.003451, allocations: 39.59 kB / 327 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002979/0.003749, allocations: 83.72 kB / 327.1 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000191/0.00394, allocations: 171.3 kB / 327.3 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001528/0.004092, allocations: 48.34 kB / 327.3 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00018/0.004272, allocations: 103.8 kB / 327.4 MB, free: 12.92 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000139/0.004412, allocations: 63.78 kB / 327.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.618e-05/0.004438, allocations: 12 kB / 327.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.505e-05/0.004523, allocations: 31.88 kB / 327.5 MB, free: 12.81 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.293e-05/0.004616, allocations: 43.83 kB / 327.6 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.843e-05/0.004684, allocations: 51.83 kB / 327.6 MB, free: 12.72 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002525/0.004937, allocations: 191.3 kB / 327.8 MB, free: 12.53 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.004939, allocations: 0 / 327.8 MB, free: 12.53 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.542e-06/0.004941, allocations: 4 kB / 327.8 MB, free: 12.53 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.004947, allocations: 0 / 327.8 MB, free: 12.53 MB / 298.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.0006664/0.005613, allocations: 453.3 kB / 328.3 MB, free: 12.05 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.005653, allocations: 15.92 kB / 328.3 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.024e-05/0.005694, allocations: 46.73 kB / 328.3 MB, free: 11.98 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000107/0.005801, allocations: 32.8 kB / 328.4 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002054/0.006006, allocations: 185.6 kB / 328.5 MB, free: 11.74 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.525e-05/0.006021, allocations: 12.59 kB / 328.6 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.675e-05/0.006038, allocations: 16.38 kB / 328.6 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002365/0.006275, allocations: 200.5 kB / 328.8 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.006283, allocations: 192 / 328.8 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.006298, allocations: 16.11 kB / 328.8 MB, free: 11.49 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.615e-05/0.006314, allocations: 4 kB / 328.8 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001836/0.006498, allocations: 147.8 kB / 328.9 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007209/0.007219, allocations: 0.7107 MB / 329.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002168/0.007436, allocations: 149.1 kB / 329.8 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.205e-05/0.007528, allocations: 77.73 kB / 329.9 MB, free: 10.33 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.714e-05/0.007565, allocations: 7.938 kB / 329.9 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001759/0.007741, allocations: 147.2 kB / 330 MB, free: 10.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.432e-06/0.007742, allocations: 0 / 330 MB, free: 10.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003867/0.008129, allocations: 257.9 kB / 330.3 MB, free: 9.902 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.725e-05/0.008176, allocations: 85.11 kB / 330.4 MB, free: 9.801 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001305/0.008307, allocations: 203.2 kB / 330.6 MB, free: 9.594 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.616e-05/0.008323, allocations: 33.7 kB / 330.6 MB, free: 9.555 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.559e-05/0.008398, allocations: 152.3 kB / 330.7 MB, free: 9.402 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.556e-05/0.008424, allocations: 39.66 kB / 330.8 MB, free: 9.363 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.16e-05/0.008476, allocations: 45.7 kB / 330.8 MB, free: 9.312 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.008577, allocations: 330.8 kB / 331.1 MB, free: 8.98 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.933e-05/0.008666, allocations: 71.89 kB / 331.2 MB, free: 8.91 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001214/0.008787, allocations: 127.6 kB / 331.3 MB, free: 8.762 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001901/0.008977, allocations: 202.7 kB / 331.5 MB, free: 8.539 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.00898, allocations: 4 kB / 331.5 MB, free: 8.535 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000274/0.009254, allocations: 245.2 kB / 331.8 MB, free: 8.289 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.22e-05/0.009266, allocations: 4.297 kB / 331.8 MB, free: 8.285 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.009271, allocations: 11.94 kB / 331.8 MB, free: 8.273 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.103e-05/0.009283, allocations: 96 / 331.8 MB, free: 8.273 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.433e-05/0.009377, allocations: 43.84 kB / 331.8 MB, free: 8.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.009382, allocations: 4 kB / 331.8 MB, free: 8.227 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.984e-05/0.009462, allocations: 27.86 kB / 331.9 MB, free: 8.199 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.234e-05/0.009474, allocations: 15.98 kB / 331.9 MB, free: 8.184 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 8.624e-05/0.00956, allocations: 133.8 kB / 332 MB, free: 8.043 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.766e-05/0.009578, allocations: 27.8 kB / 332 MB, free: 8.016 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002502/0.009828, allocations: 211 kB / 332.2 MB, free: 7.805 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.009833, allocations: 7.984 kB / 332.3 MB, free: 7.797 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.009837, allocations: 0 / 332.3 MB, free: 7.797 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.009841, allocations: 0 / 332.3 MB, free: 7.797 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001538/0.009995, allocations: 220.6 kB / 332.5 MB, free: 7.539 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.009997, allocations: 3.938 kB / 332.5 MB, free: 7.535 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.954e-05/0.01005, allocations: 19.98 kB / 332.5 MB, free: 7.516 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.01005, allocations: 3.984 kB / 332.5 MB, free: 7.512 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.01006, allocations: 8 kB / 332.5 MB, free: 7.504 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.01006, allocations: 4 kB / 332.5 MB, free: 7.5 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.01006, allocations: 0 / 332.5 MB, free: 7.5 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002795/0.01034, allocations: 225.7 kB / 332.7 MB, free: 7.258 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.904e-05/0.01036, allocations: 19.78 kB / 332.8 MB, free: 7.238 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.744e-05/0.01038, allocations: 8 kB / 332.8 MB, free: 7.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.874e-05/0.01044, allocations: 15.97 kB / 332.8 MB, free: 7.215 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.628e-05/0.01048, allocations: 19.97 kB / 332.8 MB, free: 7.195 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.682e-06/0.01049, allocations: 4 kB / 332.8 MB, free: 7.191 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.177e-05/0.01057, allocations: 152.6 kB / 332.9 MB, free: 7.043 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01057, allocations: 0 / 332.9 MB, free: 7.043 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001775/0.01075, allocations: 35.95 kB / 333 MB, free: 7.008 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.0004388/0.01119, allocations: 0.7706 MB / 333.8 MB, free: 6.207 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002267/0.01142, allocations: 163.8 kB / 333.9 MB, free: 6.047 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.213e-06/0.01142, allocations: 384 / 333.9 MB, free: 6.047 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.333e-05/0.01151, allocations: 84.19 kB / 334 MB, free: 5.965 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002066/0.01172, allocations: 52.03 kB / 334 MB, free: 5.914 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001714/0.01343, allocations: 2.19 MB / 336.2 MB, free: 3.582 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.137e-05/0.0135, allocations: 128.9 kB / 336.4 MB, free: 3.438 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.346e-05/0.01358, allocations: 37.61 kB / 336.4 MB, free: 3.398 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.722e-05/0.01364, allocations: 60.47 kB / 336.5 MB, free: 3.34 MB / 298.7 MB Notification: Performance of SimCode: time 4.91e-07/0.01364, allocations: 0 / 336.5 MB, free: 3.34 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01545/0.02909, allocations: 4.993 MB / 341.5 MB, free: 14.46 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.844/6.873, allocations: 7.219 kB / 341.5 MB, free: 14.46 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins/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: 8.646462148986757]