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.00128/0.00128, allocations: 103.6 kB / 20.43 MB, free: 1.211 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.001617/0.001617, allocations: 182.4 kB / 23.7 MB, free: 4.445 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.441/1.441, allocations: 225.7 MB / 252.5 MB, free: 12.81 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.001507/0.001507, allocations: 43.92 kB / 370.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.249/0.2505, allocations: 52.19 MB / 422.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003079/0.2536, allocations: 1.809 MB / 424.4 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001064/0.2546, allocations: 0.5493 MB / 424.9 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.2547, allocations: 4 kB / 424.9 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001222/0.2548, allocations: 31.61 kB / 425 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001453/0.255, allocations: 43.66 kB / 425 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000271/0.2553, allocations: 67.84 kB / 425.1 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002258/0.2555, allocations: 159.5 kB / 425.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001556/0.2556, allocations: 49.72 kB / 425.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001258/0.2558, allocations: 75.66 kB / 425.3 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001453/0.2559, allocations: 75.59 kB / 425.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.109e-05/0.2559, allocations: 16 kB / 425.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.05e-05/0.256, allocations: 27.88 kB / 425.5 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.726e-05/0.2561, allocations: 39.84 kB / 425.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.25e-05/0.2562, allocations: 71.59 kB / 425.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002638/0.2564, allocations: 185 kB / 425.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.2564, allocations: 3.938 kB / 425.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2564, allocations: 0 / 425.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.428e-06/0.2565, allocations: 0 / 425.8 MB, free: 11.18 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.0008605/0.2573, allocations: 441.5 kB / 426.2 MB, free: 10.71 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.2574, allocations: 8.031 kB / 426.2 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.354e-05/0.2574, allocations: 54.73 kB / 426.2 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.884e-05/0.2575, allocations: 20.8 kB / 426.3 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002813/0.2577, allocations: 183 kB / 426.4 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.016e-05/0.2578, allocations: 20.34 kB / 426.5 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.786e-05/0.2578, allocations: 12 kB / 426.5 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003711/0.2582, allocations: 199.8 kB / 426.7 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/0.2582, allocations: 3.938 kB / 426.7 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.65e-05/0.2582, allocations: 4 kB / 426.7 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.164e-05/0.2582, allocations: 11.94 kB / 426.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003232/0.2585, allocations: 139.9 kB / 426.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001145/0.2597, allocations: 0.7185 MB / 427.5 MB, free: 9.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003331/0.26, allocations: 153 kB / 427.7 MB, free: 9.082 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001518/0.2602, allocations: 73.81 kB / 427.8 MB, free: 9.004 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.701e-05/0.2602, allocations: 7.984 kB / 427.8 MB, free: 8.996 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002632/0.2605, allocations: 141.2 kB / 427.9 MB, free: 8.84 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.363e-06/0.2605, allocations: 0 / 427.9 MB, free: 8.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005819/0.261, allocations: 258 kB / 428.2 MB, free: 8.582 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.995e-05/0.2611, allocations: 85.11 kB / 428.2 MB, free: 8.48 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002097/0.2613, allocations: 206.9 kB / 428.5 MB, free: 8.27 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.617e-05/0.2613, allocations: 33.7 kB / 428.5 MB, free: 8.23 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.2615, allocations: 144.2 kB / 428.6 MB, free: 8.086 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.715e-05/0.2615, allocations: 51.67 kB / 428.7 MB, free: 8.035 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.384e-05/0.2616, allocations: 41.7 kB / 428.7 MB, free: 7.988 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.2617, allocations: 334.8 kB / 429 MB, free: 7.652 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001603/0.2619, allocations: 71.95 kB / 429.1 MB, free: 7.582 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001929/0.2621, allocations: 122.3 kB / 429.2 MB, free: 7.441 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003698/0.2625, allocations: 206.7 kB / 429.4 MB, free: 7.215 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2625, allocations: 0 / 429.4 MB, free: 7.215 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004431/0.2629, allocations: 241.3 kB / 429.7 MB, free: 6.973 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.2629, allocations: 11.56 kB / 429.7 MB, free: 6.965 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.2629, allocations: 11.94 kB / 429.7 MB, free: 6.953 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.2629, allocations: 4 kB / 429.7 MB, free: 6.949 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001641/0.2631, allocations: 32.03 kB / 429.7 MB, free: 6.918 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.2631, allocations: 7.922 kB / 429.7 MB, free: 6.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000156/0.2633, allocations: 31.88 kB / 429.8 MB, free: 6.879 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.537e-05/0.2633, allocations: 7.938 kB / 429.8 MB, free: 6.871 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.000143/0.2634, allocations: 141.8 kB / 429.9 MB, free: 6.723 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.176e-05/0.2635, allocations: 23.86 kB / 429.9 MB, free: 6.699 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004523/0.2639, allocations: 210.9 kB / 430.1 MB, free: 6.484 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.022e-06/0.2639, allocations: 4 kB / 430.1 MB, free: 6.48 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.2639, allocations: 0 / 430.1 MB, free: 6.48 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.2639, allocations: 0 / 430.1 MB, free: 6.48 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002765/0.2642, allocations: 236.5 kB / 430.4 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2642, allocations: 0 / 430.4 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001128/0.2643, allocations: 19.98 kB / 430.4 MB, free: 6.188 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.2643, allocations: 0 / 430.4 MB, free: 6.188 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.432e-05/0.2643, allocations: 4 kB / 430.4 MB, free: 6.184 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.2643, allocations: 7.938 kB / 430.4 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2643, allocations: 0 / 430.4 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000475/0.2648, allocations: 233.1 kB / 430.6 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.464e-05/0.2649, allocations: 23.83 kB / 430.7 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.573e-05/0.2649, allocations: 4 kB / 430.7 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001348/0.265, allocations: 11.98 kB / 430.7 MB, free: 5.891 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.966e-05/0.2651, allocations: 19.97 kB / 430.7 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.722e-05/0.2651, allocations: 7.938 kB / 430.7 MB, free: 5.863 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001365/0.2652, allocations: 152.6 kB / 430.9 MB, free: 5.715 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2652, allocations: 0 / 430.9 MB, free: 5.715 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000259/0.2655, allocations: 35.95 kB / 430.9 MB, free: 5.68 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.0007765/0.2663, allocations: 0.7615 MB / 431.6 MB, free: 4.887 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003873/0.2667, allocations: 168.5 kB / 431.8 MB, free: 4.723 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.2667, allocations: 8.062 kB / 431.8 MB, free: 4.715 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001739/0.2668, allocations: 72.2 kB / 431.9 MB, free: 4.645 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003389/0.2672, allocations: 64.05 kB / 432 MB, free: 4.582 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002797/0.27, allocations: 2.172 MB / 434.1 MB, free: 2.273 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001458/0.2701, allocations: 120.9 kB / 434.2 MB, free: 2.137 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001351/0.2703, allocations: 37.45 kB / 434.3 MB, free: 2.102 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001032/0.2704, allocations: 59.42 kB / 434.3 MB, free: 2.047 MB / 334.1 MB Notification: Performance of SimCode: time 7.32e-07/0.2704, allocations: 0 / 434.3 MB, free: 2.047 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03383/0.3042, allocations: 4.851 MB / 439.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.56/11.86, allocations: 4.062 kB / 439.2 MB, free: 13.36 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.3877719421871]