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.001783/0.001783, allocations: 119 kB / 17.78 MB, free: 5.23 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.001724/0.001724, allocations: 197.2 kB / 20.73 MB, free: 2.289 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.459/1.459, allocations: 225.6 MB / 249.1 MB, free: 3.629 MB / 190.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.001586/0.001586, allocations: 55.91 kB / 365.6 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1039, allocations: 52.14 MB / 417.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003312/0.1072, allocations: 1.865 MB / 419.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001239/0.1085, allocations: 0.596 MB / 420.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001263/0.1086, allocations: 7.938 kB / 420.2 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001498/0.1087, allocations: 27.67 kB / 420.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000172/0.1089, allocations: 35.66 kB / 420.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003413/0.1093, allocations: 71.84 kB / 420.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002731/0.1095, allocations: 159.4 kB / 420.5 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001876/0.1097, allocations: 53.66 kB / 420.6 MB, free: 9.809 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001441/0.1099, allocations: 75.7 kB / 420.7 MB, free: 9.734 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001818/0.11, allocations: 83.55 kB / 420.7 MB, free: 9.652 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.228e-05/0.1101, allocations: 15.94 kB / 420.8 MB, free: 9.637 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.433e-05/0.1101, allocations: 20 kB / 420.8 MB, free: 9.617 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001019/0.1102, allocations: 47.83 kB / 420.8 MB, free: 9.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.849e-05/0.1103, allocations: 75.53 kB / 420.9 MB, free: 9.496 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003088/0.1107, allocations: 187 kB / 421.1 MB, free: 9.312 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/0.1107, allocations: 8 kB / 421.1 MB, free: 9.305 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1107, allocations: 7.938 kB / 421.1 MB, free: 9.297 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.167e-05/0.1107, allocations: 0 / 421.1 MB, free: 9.297 MB / 350.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.001082/0.1118, allocations: 0.5065 MB / 421.6 MB, free: 8.738 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.1118, allocations: 8.031 kB / 421.6 MB, free: 8.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.073e-05/0.1119, allocations: 46.73 kB / 421.7 MB, free: 8.676 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.632e-05/0.1119, allocations: 28.8 kB / 421.7 MB, free: 8.648 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003502/0.1123, allocations: 239.9 kB / 421.9 MB, free: 8.375 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.029e-05/0.1123, allocations: 20.41 kB / 421.9 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.051e-05/0.1123, allocations: 12 kB / 421.9 MB, free: 8.344 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004388/0.1128, allocations: 198.9 kB / 422.1 MB, free: 8.133 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.1128, allocations: 3.938 kB / 422.1 MB, free: 8.129 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.142e-05/0.1128, allocations: 15.94 kB / 422.2 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.794e-05/0.1128, allocations: 4 kB / 422.2 MB, free: 8.109 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003326/0.1132, allocations: 143.8 kB / 422.3 MB, free: 7.969 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001186/0.1144, allocations: 0.7702 MB / 423.1 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003307/0.1147, allocations: 161 kB / 423.2 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000156/0.1149, allocations: 69.81 kB / 423.3 MB, free: 6.887 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.407e-05/0.1149, allocations: 12.12 kB / 423.3 MB, free: 6.875 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002656/0.1152, allocations: 149.1 kB / 423.5 MB, free: 6.711 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.663e-06/0.1152, allocations: 0 / 423.5 MB, free: 6.711 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.000596/0.1158, allocations: 253.5 kB / 423.7 MB, free: 6.457 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.473e-05/0.1158, allocations: 89.05 kB / 423.8 MB, free: 6.352 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002422/0.1161, allocations: 199 kB / 424 MB, free: 6.145 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.094e-05/0.1161, allocations: 29.7 kB / 424 MB, free: 6.109 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001291/0.1162, allocations: 144.3 kB / 424.2 MB, free: 5.965 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.793e-05/0.1163, allocations: 43.58 kB / 424.2 MB, free: 5.922 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.465e-05/0.1164, allocations: 41.7 kB / 424.2 MB, free: 5.875 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002583/0.1166, allocations: 338.8 kB / 424.6 MB, free: 5.535 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001665/0.1168, allocations: 75.95 kB / 424.6 MB, free: 5.461 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001975/0.117, allocations: 114.8 kB / 424.8 MB, free: 5.324 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003681/0.1173, allocations: 210.7 kB / 425 MB, free: 5.094 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1174, allocations: 0 / 425 MB, free: 5.094 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004558/0.1178, allocations: 249.2 kB / 425.2 MB, free: 4.844 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.1178, allocations: 8 kB / 425.2 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.1178, allocations: 0 / 425.2 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/0.1179, allocations: 4 kB / 425.2 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001686/0.118, allocations: 31.92 kB / 425.2 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.118, allocations: 8.094 kB / 425.3 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001651/0.1182, allocations: 36 kB / 425.3 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.113e-05/0.1182, allocations: 15.94 kB / 425.3 MB, free: 4.742 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.0001487/0.1184, allocations: 138.3 kB / 425.4 MB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.378e-05/0.1184, allocations: 19.91 kB / 425.5 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004646/0.1189, allocations: 214.9 kB / 425.7 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.1189, allocations: 0 / 425.7 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.1189, allocations: 0 / 425.7 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.1189, allocations: 8 kB / 425.7 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002906/0.1192, allocations: 273.4 kB / 425.9 MB, free: 4.035 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1192, allocations: 0 / 425.9 MB, free: 4.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.1193, allocations: 27.92 kB / 426 MB, free: 4.008 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.1193, allocations: 4 kB / 426 MB, free: 4.004 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.1193, allocations: 0 / 426 MB, free: 4.004 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.1193, allocations: 0.8594 kB / 426 MB, free: 4.004 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.1193, allocations: 0 / 426 MB, free: 4.004 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004221/0.1197, allocations: 236.2 kB / 426.2 MB, free: 3.754 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.159e-05/0.1198, allocations: 96.94 kB / 426.3 MB, free: 3.641 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.692e-05/0.1198, allocations: 4 kB / 426.3 MB, free: 3.637 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000139/0.12, allocations: 15.98 kB / 426.3 MB, free: 3.621 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.136e-05/0.12, allocations: 23.91 kB / 426.3 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.273e-05/0.1201, allocations: 7.938 kB / 426.4 MB, free: 3.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001428/0.1202, allocations: 148.4 kB / 426.5 MB, free: 3.445 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1202, allocations: 0 / 426.5 MB, free: 3.445 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002667/0.1205, allocations: 39.95 kB / 426.5 MB, free: 3.406 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.0007692/0.1212, allocations: 0.7673 MB / 427.3 MB, free: 2.609 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003989/0.1216, allocations: 163.9 kB / 427.5 MB, free: 2.449 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1216, allocations: 192 / 427.5 MB, free: 2.449 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001843/0.1218, allocations: 79.89 kB / 427.5 MB, free: 2.371 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003456/0.1222, allocations: 48.2 kB / 427.6 MB, free: 2.324 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002831/0.125, allocations: 2.181 MB / 429.8 MB, free: 8 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003861/0.1254, allocations: 0.7397 MB / 430.5 MB, free: 15.24 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001111/0.1255, allocations: 33.53 kB / 430.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001006/0.1256, allocations: 55.41 kB / 430.6 MB, free: 15.16 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1256, allocations: 0 / 430.6 MB, free: 15.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03049/0.1561, allocations: 4.135 MB / 434.7 MB, free: 11.12 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.338/8.494, allocations: 16.02 kB / 434.7 MB, free: 11.1 MB / 366.1 MB " [Timeout remaining time 651] (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: 11.26568433875218]