Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001498/0.001498, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 206.8 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.462/1.462, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001599/0.001599, allocations: 43.92 kB / 377.7 MB, free: 3.066 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2631/0.2647, allocations: 53.36 MB / 431.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003229/0.2679, allocations: 1.84 MB / 432.9 MB, free: 4.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001268/0.2692, allocations: 0.6194 MB / 433.5 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000105/0.2693, allocations: 7.875 kB / 433.5 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001404/0.2694, allocations: 27.67 kB / 433.6 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001542/0.2696, allocations: 39.66 kB / 433.6 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003254/0.2699, allocations: 75.84 kB / 433.7 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00025/0.2701, allocations: 175.3 kB / 433.8 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001647/0.2703, allocations: 40.58 kB / 433.9 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001735/0.2705, allocations: 87.62 kB / 434 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001521/0.2706, allocations: 71.62 kB / 434 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.161e-05/0.2707, allocations: 12 kB / 434.1 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.674e-05/0.2708, allocations: 31.97 kB / 434.1 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.027e-05/0.2708, allocations: 47.84 kB / 434.1 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.875e-05/0.2709, allocations: 67.61 kB / 434.2 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002938/0.2712, allocations: 199.4 kB / 434.4 MB, free: 3.328 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2712, allocations: 0 / 434.4 MB, free: 3.328 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2712, allocations: 0 / 434.4 MB, free: 3.328 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.2712, allocations: 0 / 434.4 MB, free: 3.328 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.0009206/0.2722, allocations: 445.5 kB / 434.8 MB, free: 2.859 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.2722, allocations: 12.03 kB / 434.8 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.266e-05/0.2723, allocations: 54.72 kB / 434.9 MB, free: 2.785 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001539/0.2724, allocations: 32.78 kB / 434.9 MB, free: 2.754 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000294/0.2727, allocations: 175.4 kB / 435.1 MB, free: 2.559 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001207/0.2728, allocations: 12.66 kB / 435.1 MB, free: 2.547 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.871e-05/0.2729, allocations: 12.38 kB / 435.1 MB, free: 2.535 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004115/0.2733, allocations: 211.8 kB / 435.3 MB, free: 2.312 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.2733, allocations: 0 / 435.3 MB, free: 2.312 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.907e-05/0.2733, allocations: 4 kB / 435.3 MB, free: 2.309 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.555e-05/0.2734, allocations: 12 kB / 435.3 MB, free: 2.297 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003156/0.2737, allocations: 143.8 kB / 435.5 MB, free: 2.156 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00123/0.2749, allocations: 0.7186 MB / 436.2 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003179/0.2752, allocations: 169 kB / 436.4 MB, free: 1.199 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001457/0.2754, allocations: 65.81 kB / 436.4 MB, free: 1.129 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.985e-05/0.2754, allocations: 4 kB / 436.4 MB, free: 1.125 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002603/0.2757, allocations: 147.9 kB / 436.6 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.583e-06/0.2757, allocations: 0 / 436.6 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005666/0.2762, allocations: 261.7 kB / 436.8 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.595e-05/0.2763, allocations: 81.11 kB / 436.9 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002014/0.2765, allocations: 215.1 kB / 437.1 MB, free: 396 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.791e-05/0.2765, allocations: 29.7 kB / 437.2 MB, free: 360 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001138/0.2766, allocations: 144.3 kB / 437.3 MB, free: 212 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.991e-05/0.2767, allocations: 43.62 kB / 437.3 MB, free: 168 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.195e-05/0.2767, allocations: 45.7 kB / 437.4 MB, free: 116 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.2769, allocations: 334.8 kB / 437.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001577/0.2771, allocations: 75.88 kB / 437.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001812/0.2773, allocations: 120.5 kB / 437.9 MB, free: 15.56 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003332/0.2776, allocations: 202.7 kB / 438.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.2776, allocations: 0 / 438.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.00043/0.278, allocations: 246 kB / 438.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.278, allocations: 8 kB / 438.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.278, allocations: 0 / 438.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.2781, allocations: 7.938 kB / 438.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001692/0.2782, allocations: 31.98 kB / 438.4 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.2782, allocations: 4 kB / 438.4 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001484/0.2784, allocations: 31.8 kB / 438.4 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.936e-05/0.2784, allocations: 12 kB / 438.4 MB, free: 15 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.0001572/0.2786, allocations: 145.9 kB / 438.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.581e-05/0.2786, allocations: 23.8 kB / 438.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004407/0.279, allocations: 219 kB / 438.8 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.279, allocations: 4 kB / 438.8 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.279, allocations: 0 / 438.8 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.2791, allocations: 0 / 438.8 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002531/0.2793, allocations: 228.6 kB / 439 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.2793, allocations: 0 / 439 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000109/0.2794, allocations: 23.92 kB / 439.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.2794, allocations: 4 kB / 439.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.526e-05/0.2794, allocations: 4 kB / 439.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.317e-06/0.2794, allocations: 4 kB / 439.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.2794, allocations: 0 / 439.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003938/0.2798, allocations: 233.6 kB / 439.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.353e-05/0.2799, allocations: 19.98 kB / 439.3 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.795e-05/0.2799, allocations: 7.938 kB / 439.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000124/0.28, allocations: 15.98 kB / 439.3 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.518e-05/0.2801, allocations: 15.97 kB / 439.4 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.107e-05/0.2801, allocations: 8 kB / 439.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001297/0.2802, allocations: 152.6 kB / 439.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2802, allocations: 0 / 439.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002583/0.2805, allocations: 39.89 kB / 439.6 MB, free: 13.8 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.000716/0.2812, allocations: 0.7653 MB / 440.3 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003698/0.2816, allocations: 167.9 kB / 440.5 MB, free: 12.83 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.2816, allocations: 4 kB / 440.5 MB, free: 12.83 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001736/0.2817, allocations: 79.88 kB / 440.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003348/0.2821, allocations: 39.95 kB / 440.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002768/0.2848, allocations: 2.185 MB / 442.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001223/0.285, allocations: 124.9 kB / 442.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00011/0.2851, allocations: 37.73 kB / 443 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001001/0.2852, allocations: 63.34 kB / 443 MB, free: 10.15 MB / 350.1 MB Notification: Performance of SimCode: time 9.72e-07/0.2852, allocations: 0 / 443 MB, free: 10.15 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03249/0.3177, allocations: 4.941 MB / 448 MB, free: 5.379 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.48, allocations: 4 kB / 448 MB, free: 5.375 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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.1.0_Modelica.Blocks.Examples.RealNetwork1_res.csv. Warning: Get data of variable multiSwitch.u[1] from file Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1_res.csv failed! Error: Could not read variable multiSwitch.u[2] in file Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1_res.csv. Warning: Get data of variable multiSwitch.u[2] from file Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.060918375005713]