Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001321/0.001321, allocations: 116.9 kB / 18.45 MB, free: 4.566 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.001499/0.001499, allocations: 213.6 kB / 21.42 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.433/1.433, allocations: 207.6 MB / 231.8 MB, free: 4.055 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001719/0.001719, allocations: 60.44 kB / 342.3 MB, free: 9.988 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09992/0.1016, allocations: 49.13 MB / 391.4 MB, free: 8.695 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003323/0.105, allocations: 1.863 MB / 393.3 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001285/0.1062, allocations: 0.6356 MB / 393.9 MB, free: 6.176 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001072/0.1064, allocations: 4 kB / 393.9 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001503/0.1065, allocations: 23.67 kB / 393.9 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001743/0.1067, allocations: 43.66 kB / 394 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000318/0.107, allocations: 67.84 kB / 394 MB, free: 6.039 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002583/0.1073, allocations: 171.3 kB / 394.2 MB, free: 5.871 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001827/0.1074, allocations: 57.45 kB / 394.3 MB, free: 5.816 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001316/0.1076, allocations: 79.62 kB / 394.3 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001501/0.1077, allocations: 75.62 kB / 394.4 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.244e-05/0.1078, allocations: 15.98 kB / 394.4 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.157e-05/0.1078, allocations: 27.92 kB / 394.5 MB, free: 5.621 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001087/0.1079, allocations: 47.78 kB / 394.5 MB, free: 5.574 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.376e-05/0.108, allocations: 75.55 kB / 394.6 MB, free: 5.5 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000286/0.1083, allocations: 191 kB / 394.8 MB, free: 5.312 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.1083, allocations: 0 / 394.8 MB, free: 5.312 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1083, allocations: 0 / 394.8 MB, free: 5.312 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.936e-06/0.1083, allocations: 3.984 kB / 394.8 MB, free: 5.309 MB / 318.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.0009584/0.1093, allocations: 0.5141 MB / 395.3 MB, free: 4.746 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.1093, allocations: 12.03 kB / 395.3 MB, free: 4.734 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.438e-05/0.1094, allocations: 46.73 kB / 395.3 MB, free: 4.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.209e-05/0.1094, allocations: 24.8 kB / 395.4 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002989/0.1097, allocations: 239.8 kB / 395.6 MB, free: 4.383 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.022e-05/0.1098, allocations: 8.656 kB / 395.6 MB, free: 4.375 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.781e-05/0.1098, allocations: 16.38 kB / 395.6 MB, free: 4.359 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003842/0.1102, allocations: 203 kB / 395.8 MB, free: 4.145 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.1102, allocations: 0 / 395.8 MB, free: 4.145 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.032e-05/0.1102, allocations: 4 kB / 395.8 MB, free: 4.141 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.421e-05/0.1102, allocations: 8 kB / 395.8 MB, free: 4.133 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003195/0.1105, allocations: 143.8 kB / 396 MB, free: 3.992 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001158/0.1117, allocations: 0.778 MB / 396.8 MB, free: 3.152 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003507/0.1121, allocations: 153 kB / 396.9 MB, free: 2.984 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001542/0.1122, allocations: 73.78 kB / 397 MB, free: 2.906 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.428e-05/0.1123, allocations: 12.14 kB / 397 MB, free: 2.895 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002662/0.1125, allocations: 145 kB / 397.1 MB, free: 2.734 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.233e-06/0.1125, allocations: 0 / 397.1 MB, free: 2.734 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005947/0.1131, allocations: 261.5 kB / 397.4 MB, free: 2.473 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.644e-05/0.1132, allocations: 81.09 kB / 397.5 MB, free: 2.375 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000203/0.1134, allocations: 202.9 kB / 397.7 MB, free: 2.168 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.807e-05/0.1134, allocations: 33.7 kB / 397.7 MB, free: 2.129 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.1135, allocations: 144.3 kB / 397.8 MB, free: 1.984 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.244e-05/0.1136, allocations: 43.66 kB / 397.9 MB, free: 1.941 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.503e-05/0.1136, allocations: 41.7 kB / 397.9 MB, free: 1.895 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.1138, allocations: 334.8 kB / 398.2 MB, free: 1.559 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001547/0.1139, allocations: 67.95 kB / 398.3 MB, free: 1.492 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001987/0.1141, allocations: 130.7 kB / 398.4 MB, free: 1.34 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003469/0.1145, allocations: 210.6 kB / 398.6 MB, free: 1.109 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1145, allocations: 0 / 398.6 MB, free: 1.109 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000443/0.1149, allocations: 233.3 kB / 398.9 MB, free: 0.875 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.115, allocations: 8 kB / 398.9 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.115, allocations: 192 / 398.9 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.115, allocations: 8 kB / 398.9 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001741/0.1152, allocations: 39.91 kB / 398.9 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.295e-06/0.1152, allocations: 4 kB / 398.9 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000168/0.1153, allocations: 35.81 kB / 399 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.47e-05/0.1153, allocations: 4 kB / 399 MB, free: 0.7773 MB / 318.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.0001475/0.1155, allocations: 145.7 kB / 399.1 MB, free: 0.625 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.293e-05/0.1155, allocations: 20 kB / 399.1 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004857/0.116, allocations: 226.8 kB / 399.4 MB, free: 384 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.116, allocations: 4 kB / 399.4 MB, free: 380 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.116, allocations: 0 / 399.4 MB, free: 380 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.116, allocations: 0 / 399.4 MB, free: 380 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002782/0.1163, allocations: 269.4 kB / 399.6 MB, free: 60 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.1163, allocations: 0 / 399.6 MB, free: 60 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001163/0.1164, allocations: 23.92 kB / 399.6 MB, free: 36 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1164, allocations: 0 / 399.6 MB, free: 36 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.702e-05/0.1164, allocations: 15.98 kB / 399.7 MB, free: 20 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1164, allocations: 0 / 399.7 MB, free: 20 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1164, allocations: 0.8594 kB / 399.7 MB, free: 20 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004325/0.1169, allocations: 229.6 kB / 399.9 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.698e-05/0.1169, allocations: 92.97 kB / 400 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.836e-05/0.117, allocations: 4 kB / 400 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001411/0.1171, allocations: 23.97 kB / 400 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.497e-05/0.1172, allocations: 15.92 kB / 400 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/0.1172, allocations: 4 kB / 400 MB, free: 15.62 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001357/0.1173, allocations: 152.4 kB / 400.2 MB, free: 15.47 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1173, allocations: 0 / 400.2 MB, free: 15.47 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000261/0.1176, allocations: 35.94 kB / 400.2 MB, free: 15.43 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.0007586/0.1183, allocations: 0.7731 MB / 401 MB, free: 14.63 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004034/0.1187, allocations: 167.8 kB / 401.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1187, allocations: 384 / 401.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001719/0.1189, allocations: 79.89 kB / 401.2 MB, free: 14.39 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003491/0.1193, allocations: 47.8 kB / 401.3 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002924/0.1222, allocations: 2.173 MB / 403.4 MB, free: 12.03 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004007/0.1226, allocations: 0.7358 MB / 404.2 MB, free: 11.27 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001309/0.1227, allocations: 37.62 kB / 404.2 MB, free: 11.23 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.1228, allocations: 59.36 kB / 404.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of SimCode: time 8.31e-07/0.1228, allocations: 7.938 kB / 404.3 MB, free: 11.17 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02885/0.1517, allocations: 4.133 MB / 408.4 MB, free: 6.984 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.154/8.306, allocations: 7.844 kB / 408.4 MB, free: 6.977 MB / 334.1 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.csv. Warning: Get data of variable multiSwitch.u[1] from file Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.csv failed! Error: Could not read variable multiSwitch.u[2] in file Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.csv. Warning: Get data of variable multiSwitch.u[2] from file Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.851150650996715]