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.001361/0.001361, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001601/0.001601, allocations: 209.8 kB / 23.73 MB, free: 4.387 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.457/1.457, allocations: 230.6 MB / 257.5 MB, free: 7.773 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.00165/0.00165, allocations: 51.92 kB / 377.7 MB, free: 3.047 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.2622, allocations: 53.37 MB / 431.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003705/0.2659, allocations: 1.825 MB / 432.9 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001456/0.2673, allocations: 0.6271 MB / 433.5 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001554/0.2675, allocations: 3.938 kB / 433.5 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002278/0.2677, allocations: 31.66 kB / 433.6 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001812/0.2679, allocations: 35.66 kB / 433.6 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003642/0.2682, allocations: 75.84 kB / 433.7 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002757/0.2685, allocations: 167.4 kB / 433.8 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001773/0.2687, allocations: 48.55 kB / 433.9 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001941/0.2689, allocations: 75.72 kB / 434 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000175/0.2691, allocations: 83.53 kB / 434 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.756e-05/0.2691, allocations: 16 kB / 434.1 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.727e-05/0.2692, allocations: 20 kB / 434.1 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.854e-05/0.2693, allocations: 43.84 kB / 434.1 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.719e-05/0.2694, allocations: 71.58 kB / 434.2 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003442/0.2697, allocations: 199.4 kB / 434.4 MB, free: 3.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.2697, allocations: 3.938 kB / 434.4 MB, free: 3.316 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2697, allocations: 0 / 434.4 MB, free: 3.316 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.361e-06/0.2697, allocations: 0 / 434.4 MB, free: 3.316 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.000984/0.2707, allocations: 449.4 kB / 434.8 MB, free: 2.844 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.269e-05/0.2708, allocations: 12.03 kB / 434.8 MB, free: 2.832 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.966e-05/0.2709, allocations: 50.73 kB / 434.9 MB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001861/0.2711, allocations: 32.8 kB / 434.9 MB, free: 2.742 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003283/0.2714, allocations: 179.4 kB / 435.1 MB, free: 2.543 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.071e-05/0.2714, allocations: 12.66 kB / 435.1 MB, free: 2.531 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.091e-05/0.2714, allocations: 16.38 kB / 435.1 MB, free: 2.516 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003785/0.2718, allocations: 203.8 kB / 435.3 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.2718, allocations: 0 / 435.3 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.8e-05/0.2718, allocations: 7.984 kB / 435.3 MB, free: 2.293 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.242e-05/0.2719, allocations: 8 kB / 435.3 MB, free: 2.285 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003059/0.2722, allocations: 139.8 kB / 435.5 MB, free: 2.148 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001217/0.2734, allocations: 0.7263 MB / 436.2 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003518/0.2737, allocations: 157 kB / 436.3 MB, free: 1.195 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001624/0.2739, allocations: 69.8 kB / 436.4 MB, free: 1.121 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.637e-05/0.2739, allocations: 4 kB / 436.4 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002912/0.2742, allocations: 151.8 kB / 436.6 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.502e-06/0.2742, allocations: 4 kB / 436.6 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006698/0.2749, allocations: 257.5 kB / 436.8 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.061e-05/0.275, allocations: 77.11 kB / 436.9 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002403/0.2752, allocations: 215 kB / 437.1 MB, free: 388 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.07e-05/0.2753, allocations: 29.7 kB / 437.1 MB, free: 352 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001363/0.2754, allocations: 148.3 kB / 437.3 MB, free: 200 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.956e-05/0.2754, allocations: 43.64 kB / 437.3 MB, free: 156 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.937e-05/0.2755, allocations: 41.7 kB / 437.4 MB, free: 108 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001945/0.2757, allocations: 334.8 kB / 437.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001766/0.2759, allocations: 71.95 kB / 437.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001928/0.2761, allocations: 124.4 kB / 437.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003538/0.2764, allocations: 199.3 kB / 438.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.2764, allocations: 3.938 kB / 438.1 MB, free: 15.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004638/0.2769, allocations: 249.2 kB / 438.3 MB, free: 15.08 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.643e-05/0.2769, allocations: 8 kB / 438.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.2769, allocations: 0 / 438.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.734e-05/0.277, allocations: 7.984 kB / 438.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001942/0.2772, allocations: 35.92 kB / 438.4 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.235e-05/0.2772, allocations: 4 kB / 438.4 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001808/0.2774, allocations: 36.05 kB / 438.4 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.532e-05/0.2774, allocations: 11.98 kB / 438.4 MB, free: 14.98 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.0001855/0.2776, allocations: 141.7 kB / 438.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.559e-05/0.2776, allocations: 23.84 kB / 438.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005083/0.2781, allocations: 210.9 kB / 438.8 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.2781, allocations: 4 kB / 438.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.2782, allocations: 0 / 438.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.2782, allocations: 0 / 438.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003579/0.2785, allocations: 224.6 kB / 439 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.2785, allocations: 4 kB / 439 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001185/0.2786, allocations: 31.91 kB / 439.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.558e-06/0.2786, allocations: 112 / 439.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.443e-05/0.2787, allocations: 3.938 kB / 439.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.2787, allocations: 4 kB / 439.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.2787, allocations: 0 / 439.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004317/0.2791, allocations: 233.6 kB / 439.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.486e-05/0.2791, allocations: 15.84 kB / 439.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.467e-05/0.2792, allocations: 8 kB / 439.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001295/0.2793, allocations: 19.97 kB / 439.3 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.362e-05/0.2794, allocations: 15.97 kB / 439.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.416e-05/0.2794, allocations: 8 kB / 439.4 MB, free: 13.97 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001549/0.2795, allocations: 144.6 kB / 439.5 MB, free: 13.83 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2795, allocations: 0 / 439.5 MB, free: 13.83 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002826/0.2798, allocations: 43.89 kB / 439.5 MB, free: 13.79 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.0009052/0.2807, allocations: 0.7751 MB / 440.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004585/0.2812, allocations: 163.8 kB / 440.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.2812, allocations: 4 kB / 440.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001961/0.2814, allocations: 75.89 kB / 440.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003946/0.2818, allocations: 40.98 kB / 440.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003395/0.2852, allocations: 2.184 MB / 442.8 MB, free: 10.37 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001411/0.2853, allocations: 132.9 kB / 442.9 MB, free: 10.22 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001276/0.2854, allocations: 37.59 kB / 442.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001217/0.2856, allocations: 55.42 kB / 443 MB, free: 10.14 MB / 350.1 MB Notification: Performance of SimCode: time 9.22e-07/0.2856, allocations: 0 / 443 MB, free: 10.14 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03308/0.3186, allocations: 4.879 MB / 447.9 MB, free: 5.438 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.58/11.9, allocations: 11.16 kB / 447.9 MB, free: 5.43 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.44024662161246]