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.001268/0.001268, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.001362/0.001362, allocations: 213.2 kB / 24.54 MB, free: 4.016 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.394/1.394, allocations: 230.6 MB / 258.3 MB, free: 8.051 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.001997/0.001997, allocations: 56.78 kB / 378.5 MB, free: 3.184 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2447/0.2467, allocations: 53.37 MB / 431.9 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003184/0.2499, allocations: 1.901 MB / 433.8 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001244/0.2511, allocations: 0.6583 MB / 434.5 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001295/0.2513, allocations: 7.938 kB / 434.5 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001599/0.2514, allocations: 31.72 kB / 434.5 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000181/0.2516, allocations: 39.59 kB / 434.5 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003699/0.252, allocations: 83.78 kB / 434.6 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002658/0.2522, allocations: 167.4 kB / 434.8 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001789/0.2524, allocations: 52.55 kB / 434.8 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001815/0.2526, allocations: 71.66 kB / 434.9 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000187/0.2528, allocations: 87.59 kB / 435 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.15e-05/0.2528, allocations: 12 kB / 435 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.39e-05/0.2529, allocations: 24 kB / 435 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.435e-05/0.253, allocations: 47.78 kB / 435.1 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.776e-05/0.2531, allocations: 79.53 kB / 435.2 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003152/0.2534, allocations: 195.9 kB / 435.4 MB, free: 3.449 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.2534, allocations: 4 kB / 435.4 MB, free: 3.445 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2534, allocations: 0 / 435.4 MB, free: 3.445 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.2534, allocations: 0 / 435.4 MB, free: 3.445 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.000957/0.2544, allocations: 457.4 kB / 435.8 MB, free: 2.965 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.2544, allocations: 8.031 kB / 435.8 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.682e-05/0.2545, allocations: 50.73 kB / 435.9 MB, free: 2.898 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001566/0.2546, allocations: 32.8 kB / 435.9 MB, free: 2.867 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002982/0.2549, allocations: 186.8 kB / 436.1 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.221e-05/0.255, allocations: 12.66 kB / 436.1 MB, free: 2.648 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.931e-05/0.255, allocations: 16.38 kB / 436.1 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003928/0.2554, allocations: 203.8 kB / 436.3 MB, free: 2.418 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.2554, allocations: 4 kB / 436.3 MB, free: 2.414 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.664e-05/0.2554, allocations: 4 kB / 436.3 MB, free: 2.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.189e-05/0.2554, allocations: 7.984 kB / 436.3 MB, free: 2.402 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003144/0.2557, allocations: 143.8 kB / 436.5 MB, free: 2.262 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001173/0.2569, allocations: 0.7419 MB / 437.2 MB, free: 1.465 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003404/0.2572, allocations: 165 kB / 437.4 MB, free: 1.285 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001462/0.2574, allocations: 73.8 kB / 437.4 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.164e-05/0.2574, allocations: 4 kB / 437.4 MB, free: 1.203 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002782/0.2577, allocations: 145.1 kB / 437.6 MB, free: 1.043 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.233e-06/0.2577, allocations: 0 / 437.6 MB, free: 1.043 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005902/0.2583, allocations: 261.5 kB / 437.8 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.299e-05/0.2584, allocations: 81.11 kB / 437.9 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002138/0.2586, allocations: 211 kB / 438.1 MB, free: 480 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.962e-05/0.2586, allocations: 37.69 kB / 438.2 MB, free: 436 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.2587, allocations: 140.3 kB / 438.3 MB, free: 292 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.192e-05/0.2588, allocations: 43.64 kB / 438.3 MB, free: 248 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.573e-05/0.2589, allocations: 45.7 kB / 438.4 MB, free: 196 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001806/0.259, allocations: 338.8 kB / 438.7 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001528/0.2592, allocations: 67.95 kB / 438.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001973/0.2594, allocations: 122.8 kB / 438.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003403/0.2597, allocations: 202.7 kB / 439.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.2597, allocations: 4 kB / 439.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004345/0.2602, allocations: 241.3 kB / 439.3 MB, free: 15.17 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.2602, allocations: 4.109 kB / 439.3 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.2602, allocations: 7.938 kB / 439.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.2602, allocations: 0 / 439.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000183/0.2604, allocations: 43.91 kB / 439.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.2604, allocations: 192 / 439.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001542/0.2606, allocations: 35.88 kB / 439.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.6e-05/0.2606, allocations: 7.984 kB / 439.4 MB, free: 15.07 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.0001491/0.2607, allocations: 141.7 kB / 439.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.974e-05/0.2607, allocations: 15.91 kB / 439.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004572/0.2612, allocations: 211.6 kB / 439.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.2612, allocations: 11.98 kB / 439.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.2612, allocations: 0 / 439.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.2612, allocations: 3.984 kB / 439.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002885/0.2615, allocations: 240.5 kB / 440 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/0.2615, allocations: 4 kB / 440 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001153/0.2616, allocations: 24.02 kB / 440.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.2616, allocations: 3.938 kB / 440.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.839e-05/0.2617, allocations: 11.98 kB / 440.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2617, allocations: 0 / 440.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.2617, allocations: 0 / 440.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000411/0.2621, allocations: 233.8 kB / 440.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.081e-05/0.2621, allocations: 11.91 kB / 440.3 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.756e-05/0.2621, allocations: 4 kB / 440.3 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001254/0.2622, allocations: 23.91 kB / 440.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.364e-05/0.2623, allocations: 15.97 kB / 440.4 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.238e-05/0.2623, allocations: 8 kB / 440.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001504/0.2625, allocations: 148.6 kB / 440.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2625, allocations: 0 / 440.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002656/0.2627, allocations: 43.89 kB / 440.6 MB, free: 13.86 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.0008001/0.2635, allocations: 0.7761 MB / 441.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003827/0.2639, allocations: 159.8 kB / 441.5 MB, free: 12.9 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.2639, allocations: 3.938 kB / 441.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001828/0.2641, allocations: 75.95 kB / 441.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003242/0.2644, allocations: 36.36 kB / 441.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002773/0.2672, allocations: 2.184 MB / 443.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003597/0.2676, allocations: 0.7399 MB / 444.5 MB, free: 9.691 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001187/0.2677, allocations: 41.55 kB / 444.6 MB, free: 9.652 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.415e-05/0.2678, allocations: 59.36 kB / 444.6 MB, free: 9.598 MB / 350.1 MB Notification: Performance of SimCode: time 8.02e-07/0.2678, allocations: 0 / 444.6 MB, free: 9.598 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02969/0.2975, allocations: 4.27 MB / 448.9 MB, free: 5.434 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.891/8.189, allocations: 7.688 kB / 448.9 MB, free: 5.43 MB / 350.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.56977908173576] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch.u[1]', 'multiSwitch.u[2]'] 8.263830195646733 8.293499995 8.03428777 Calling exit ...