Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001572/0.001572, allocations: 116.8 kB / 18.5 MB, free: 4.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001941/0.001941, allocations: 212.9 kB / 21.46 MB, free: 1.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.487/1.487, allocations: 230.5 MB / 254.8 MB, free: 15.11 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001974/0.001974, allocations: 71.83 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0952/0.09717, allocations: 53.33 MB / 427 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003093/0.1003, allocations: 1.898 MB / 428.9 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001275/0.1015, allocations: 0.6583 MB / 429.6 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001068/0.1016, allocations: 3.938 kB / 429.6 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001392/0.1018, allocations: 31.66 kB / 429.6 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001584/0.1019, allocations: 39.66 kB / 429.6 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003052/0.1022, allocations: 75.84 kB / 429.7 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002612/0.1025, allocations: 167.4 kB / 429.9 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001669/0.1027, allocations: 52.28 kB / 429.9 MB, free: 1.871 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001769/0.1029, allocations: 79.62 kB / 430 MB, free: 1.793 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001576/0.103, allocations: 79.61 kB / 430.1 MB, free: 1.715 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.974e-05/0.103, allocations: 12 kB / 430.1 MB, free: 1.703 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.836e-05/0.1031, allocations: 27.98 kB / 430.1 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.357e-05/0.1032, allocations: 47.78 kB / 430.2 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.796e-05/0.1033, allocations: 83.48 kB / 430.2 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002872/0.1036, allocations: 199 kB / 430.4 MB, free: 1.352 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1036, allocations: 0 / 430.4 MB, free: 1.352 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1036, allocations: 0 / 430.4 MB, free: 1.352 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.267e-06/0.1036, allocations: 0 / 430.4 MB, free: 1.352 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.0009219/0.1045, allocations: 0.5142 MB / 431 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.1046, allocations: 16.03 kB / 431 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.161e-05/0.1046, allocations: 46.73 kB / 431 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001538/0.1048, allocations: 32.78 kB / 431 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002769/0.105, allocations: 236 kB / 431.3 MB, free: 424 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.913e-05/0.1051, allocations: 12.66 kB / 431.3 MB, free: 412 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.969e-05/0.1051, allocations: 16.38 kB / 431.3 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003731/0.1055, allocations: 211 kB / 431.5 MB, free: 168 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.1055, allocations: 0 / 431.5 MB, free: 168 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.755e-05/0.1055, allocations: 4 kB / 431.5 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.174e-05/0.1055, allocations: 4 kB / 431.5 MB, free: 160 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003083/0.1058, allocations: 143.8 kB / 431.7 MB, free: 16 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001182/0.107, allocations: 0.774 MB / 432.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003441/0.1073, allocations: 157 kB / 432.6 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001528/0.1075, allocations: 73.8 kB / 432.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.575e-05/0.1075, allocations: 0 / 432.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002809/0.1078, allocations: 149 kB / 432.8 MB, free: 14.77 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.1078, allocations: 0 / 432.8 MB, free: 14.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006046/0.1084, allocations: 270.2 kB / 433.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.712e-05/0.1085, allocations: 77.11 kB / 433.1 MB, free: 14.4 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002113/0.1087, allocations: 203.1 kB / 433.3 MB, free: 14.19 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.801e-05/0.1087, allocations: 33.7 kB / 433.4 MB, free: 14.15 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.1088, allocations: 144.3 kB / 433.5 MB, free: 14.01 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.057e-05/0.1089, allocations: 47.62 kB / 433.6 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.201e-05/0.109, allocations: 45.7 kB / 433.6 MB, free: 13.91 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.1091, allocations: 330.8 kB / 433.9 MB, free: 13.58 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001575/0.1093, allocations: 67.95 kB / 434 MB, free: 13.51 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001977/0.1095, allocations: 126.8 kB / 434.1 MB, free: 13.36 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003498/0.1098, allocations: 206.6 kB / 434.3 MB, free: 13.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.1098, allocations: 0 / 434.3 MB, free: 13.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004514/0.1103, allocations: 241.3 kB / 434.6 MB, free: 12.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.108e-05/0.1103, allocations: 8 kB / 434.6 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.1103, allocations: 0 / 434.6 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.1103, allocations: 4.188 kB / 434.6 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001754/0.1105, allocations: 39.92 kB / 434.6 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.276e-05/0.1105, allocations: 4 kB / 434.6 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001628/0.1107, allocations: 27.86 kB / 434.6 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.977e-05/0.1107, allocations: 12 kB / 434.7 MB, free: 12.8 MB / 366.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.0001534/0.1108, allocations: 150.2 kB / 434.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.11e-05/0.1109, allocations: 15.91 kB / 434.8 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004693/0.1113, allocations: 222.8 kB / 435 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.1113, allocations: 0 / 435 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.1113, allocations: 4 kB / 435 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.1113, allocations: 112 / 435 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003186/0.1117, allocations: 277.4 kB / 435.3 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.1117, allocations: 0 / 435.3 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001239/0.1118, allocations: 23.92 kB / 435.3 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.1118, allocations: 0 / 435.3 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/0.1118, allocations: 8 kB / 435.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.103e-06/0.1118, allocations: 4 kB / 435.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.1118, allocations: 0 / 435.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000411/0.1122, allocations: 231.8 kB / 435.6 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.131e-05/0.1123, allocations: 92.95 kB / 435.7 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.211e-05/0.1123, allocations: 11.98 kB / 435.7 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001376/0.1125, allocations: 15.98 kB / 435.7 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.326e-05/0.1125, allocations: 19.97 kB / 435.7 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.162e-05/0.1125, allocations: 4 kB / 435.7 MB, free: 11.64 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000134/0.1127, allocations: 144.7 kB / 435.9 MB, free: 11.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1127, allocations: 0 / 435.9 MB, free: 11.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002686/0.1129, allocations: 39.89 kB / 435.9 MB, free: 11.46 MB / 366.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.0007604/0.1137, allocations: 0.7673 MB / 436.7 MB, free: 10.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003971/0.1141, allocations: 175.7 kB / 436.8 MB, free: 10.49 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1141, allocations: 0 / 436.8 MB, free: 10.49 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001837/0.1143, allocations: 84.73 kB / 436.9 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003349/0.1146, allocations: 40.27 kB / 437 MB, free: 10.37 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002775/0.1174, allocations: 2.177 MB / 439.1 MB, free: 8.055 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003528/0.1177, allocations: 0.7397 MB / 439.9 MB, free: 7.289 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001112/0.1179, allocations: 41.5 kB / 439.9 MB, free: 7.25 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.662e-05/0.1179, allocations: 55.42 kB / 440 MB, free: 7.199 MB / 366.1 MB Notification: Performance of SimCode: time 7.82e-07/0.1179, allocations: 0 / 440 MB, free: 7.199 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02684/0.1448, allocations: 4.167 MB / 444.1 MB, free: 3.129 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.962/8.107, allocations: 18.36 kB / 444.1 MB, free: 3.113 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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-beta_om_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.80711245816201] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch.u[1]', 'multiSwitch.u[2]'] 8.183019103948027 8.412897664 8.306073995 Calling exit ...