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.001609/0.001609, allocations: 109.5 kB / 20.43 MB, free: 1.449 MB / 14.72 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.001789/0.001789, allocations: 186.2 kB / 23.72 MB, free: 4.684 MB / 14.72 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 1.483/1.483, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] 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 0.00158/0.00158, allocations: 43.92 kB / 370.4 MB, free: 9.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2816/0.2832, allocations: 52.19 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003592/0.2868, allocations: 1.89 MB / 424.5 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001488/0.2883, allocations: 0.5883 MB / 425.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001483/0.2884, allocations: 7.938 kB / 425.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002116/0.2886, allocations: 23.72 kB / 425.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00022/0.2888, allocations: 39.66 kB / 425.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004002/0.2892, allocations: 67.8 kB / 425.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003552/0.2896, allocations: 171.4 kB / 425.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002793/0.2899, allocations: 41.94 kB / 425.4 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001894/0.2901, allocations: 75.7 kB / 425.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002399/0.2903, allocations: 83.56 kB / 425.6 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.703e-05/0.2904, allocations: 16 kB / 425.6 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001265/0.2905, allocations: 23.98 kB / 425.6 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001189/0.2906, allocations: 43.83 kB / 425.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001339/0.2907, allocations: 79.48 kB / 425.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004475/0.2912, allocations: 187.5 kB / 425.9 MB, free: 11.26 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.056e-05/0.2912, allocations: 0 / 425.9 MB, free: 11.26 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.2912, allocations: 3.938 kB / 425.9 MB, free: 11.26 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.687e-05/0.2912, allocations: 0 / 425.9 MB, free: 11.26 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.001355/0.2926, allocations: 453.5 kB / 426.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.393e-05/0.2926, allocations: 8.031 kB / 426.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.967e-05/0.2927, allocations: 46.73 kB / 426.4 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.735e-05/0.2928, allocations: 24.8 kB / 426.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003293/0.2931, allocations: 179 kB / 426.6 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.67e-05/0.2931, allocations: 12.41 kB / 426.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.787e-05/0.2932, allocations: 16 kB / 426.7 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003878/0.2935, allocations: 207.7 kB / 426.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.2936, allocations: 0 / 426.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.81e-05/0.2936, allocations: 4 kB / 426.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.385e-05/0.2936, allocations: 8 kB / 426.9 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003092/0.2939, allocations: 139.8 kB / 427 MB, free: 10.1 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001288/0.2952, allocations: 0.7458 MB / 427.8 MB, free: 9.301 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004069/0.2956, allocations: 161 kB / 427.9 MB, free: 9.125 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.2958, allocations: 69.8 kB / 428 MB, free: 9.051 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.763e-05/0.2958, allocations: 4 kB / 428 MB, free: 9.047 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003696/0.2962, allocations: 152.6 kB / 428.1 MB, free: 8.883 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 3.106e-06/0.2962, allocations: 0 / 428.1 MB, free: 8.883 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007438/0.297, allocations: 253.6 kB / 428.4 MB, free: 8.629 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.2971, allocations: 81.11 kB / 428.5 MB, free: 8.531 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000237/0.2973, allocations: 199 kB / 428.7 MB, free: 8.328 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.772e-05/0.2973, allocations: 37.69 kB / 428.7 MB, free: 8.285 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/0.2974, allocations: 140.3 kB / 428.8 MB, free: 8.145 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.916e-05/0.2975, allocations: 51.69 kB / 428.9 MB, free: 8.094 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.933e-05/0.2975, allocations: 45.64 kB / 428.9 MB, free: 8.043 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.2977, allocations: 338.8 kB / 429.3 MB, free: 7.703 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001547/0.2979, allocations: 67.95 kB / 429.3 MB, free: 7.637 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000192/0.298, allocations: 138.2 kB / 429.5 MB, free: 7.48 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003462/0.2984, allocations: 194.8 kB / 429.7 MB, free: 7.266 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.9e-06/0.2984, allocations: 7.938 kB / 429.7 MB, free: 7.258 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004358/0.2988, allocations: 245.4 kB / 429.9 MB, free: 7.012 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.2989, allocations: 12 kB / 429.9 MB, free: 7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.2989, allocations: 0 / 429.9 MB, free: 7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.2989, allocations: 4 kB / 429.9 MB, free: 6.996 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001717/0.2991, allocations: 31.97 kB / 430 MB, free: 6.965 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.262e-05/0.2991, allocations: 7.938 kB / 430 MB, free: 6.957 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001558/0.2992, allocations: 27.88 kB / 430 MB, free: 6.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.086e-05/0.2992, allocations: 11.94 kB / 430 MB, free: 6.918 MB / 334.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.0001641/0.2994, allocations: 137.8 kB / 430.1 MB, free: 6.773 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.528e-05/0.2994, allocations: 19.84 kB / 430.2 MB, free: 6.754 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004878/0.2999, allocations: 223.7 kB / 430.4 MB, free: 6.527 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.2999, allocations: 3.938 kB / 430.4 MB, free: 6.523 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.2999, allocations: 0 / 430.4 MB, free: 6.523 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.2999, allocations: 7.984 kB / 430.4 MB, free: 6.516 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002906/0.3002, allocations: 232.6 kB / 430.6 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3002, allocations: 0 / 430.6 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001135/0.3004, allocations: 23.98 kB / 430.6 MB, free: 6.223 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.3004, allocations: 8 kB / 430.6 MB, free: 6.215 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.332e-05/0.3004, allocations: 0 / 430.6 MB, free: 6.215 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.3004, allocations: 3.984 kB / 430.6 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.3004, allocations: 4 kB / 430.7 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004229/0.3008, allocations: 229.6 kB / 430.9 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.977e-05/0.3008, allocations: 23.84 kB / 430.9 MB, free: 5.938 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.648e-05/0.3009, allocations: 4 kB / 430.9 MB, free: 5.934 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001244/0.301, allocations: 19.97 kB / 430.9 MB, free: 5.914 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.455e-05/0.301, allocations: 11.98 kB / 430.9 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.655e-05/0.3011, allocations: 15.92 kB / 430.9 MB, free: 5.887 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001259/0.3012, allocations: 136.6 kB / 431.1 MB, free: 5.754 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3012, allocations: 4 kB / 431.1 MB, free: 5.75 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002567/0.3014, allocations: 35.95 kB / 431.1 MB, free: 5.715 MB / 334.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.0008166/0.3023, allocations: 0.7653 MB / 431.9 MB, free: 4.918 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003912/0.3027, allocations: 172 kB / 432.1 MB, free: 4.75 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3027, allocations: 192 / 432.1 MB, free: 4.75 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001609/0.3028, allocations: 71.91 kB / 432.1 MB, free: 4.68 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000324/0.3031, allocations: 47.78 kB / 432.2 MB, free: 4.633 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002737/0.3059, allocations: 2.176 MB / 434.3 MB, free: 2.316 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003628/0.3062, allocations: 0.7359 MB / 435.1 MB, free: 1.555 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001108/0.3064, allocations: 41.44 kB / 435.1 MB, free: 1.516 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.438e-05/0.3064, allocations: 55.41 kB / 435.2 MB, free: 1.465 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3064, allocations: 0 / 435.2 MB, free: 1.465 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03016/0.3366, allocations: 4.347 MB / 439.5 MB, free: 13.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.59, allocations: 6.484 kB / 439.5 MB, free: 13.27 MB / 350.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/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: 14.173502225999982]