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.001248/0.001248, allocations: 109.4 kB / 19.8 MB, free: 2.516 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.001434/0.001434, allocations: 217.2 kB / 23 MB, free: 5.617 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.397/1.397, allocations: 230.5 MB / 256.5 MB, free: 8.246 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.001888/0.001888, allocations: 67.83 kB / 376.2 MB, free: 4.043 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.2556, allocations: 53.32 MB / 429.5 MB, free: 7.434 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.00363/0.2592, allocations: 1.906 MB / 431.4 MB, free: 5.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001327/0.2606, allocations: 0.6583 MB / 432.1 MB, free: 4.855 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001066/0.2607, allocations: 4 kB / 432.1 MB, free: 4.852 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001477/0.2608, allocations: 27.67 kB / 432.1 MB, free: 4.824 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001654/0.261, allocations: 35.66 kB / 432.2 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003022/0.2613, allocations: 79.78 kB / 432.2 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002743/0.2616, allocations: 167.4 kB / 432.4 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001779/0.2617, allocations: 52.27 kB / 432.4 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001795/0.2619, allocations: 75.64 kB / 432.5 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001586/0.2621, allocations: 83.61 kB / 432.6 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.095e-05/0.2621, allocations: 12 kB / 432.6 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.519e-05/0.2622, allocations: 20 kB / 432.6 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.993e-05/0.2623, allocations: 47.78 kB / 432.7 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.617e-05/0.2624, allocations: 87.52 kB / 432.8 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003001/0.2627, allocations: 191.4 kB / 433 MB, free: 3.996 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.2627, allocations: 4 kB / 433 MB, free: 3.992 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.2627, allocations: 0 / 433 MB, free: 3.992 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.2627, allocations: 0 / 433 MB, free: 3.992 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.0009903/0.2637, allocations: 0.5181 MB / 433.5 MB, free: 3.422 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/0.2637, allocations: 8.031 kB / 433.5 MB, free: 3.414 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.479e-05/0.2638, allocations: 54.67 kB / 433.5 MB, free: 3.352 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001706/0.2639, allocations: 36.78 kB / 433.6 MB, free: 3.316 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003037/0.2642, allocations: 236 kB / 433.8 MB, free: 3.047 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.069e-05/0.2643, allocations: 12.66 kB / 433.8 MB, free: 3.035 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.46e-05/0.2643, allocations: 24.25 kB / 433.8 MB, free: 3.012 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003658/0.2647, allocations: 192 kB / 434 MB, free: 2.809 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.702e-05/0.2647, allocations: 7.984 kB / 434 MB, free: 2.801 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.814e-05/0.2647, allocations: 4 kB / 434 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.92e-05/0.2647, allocations: 4 kB / 434 MB, free: 2.793 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003192/0.265, allocations: 147.8 kB / 434.2 MB, free: 2.648 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001156/0.2662, allocations: 0.7701 MB / 435 MB, free: 1.816 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003315/0.2665, allocations: 161.1 kB / 435.1 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000151/0.2667, allocations: 77.67 kB / 435.2 MB, free: 1.559 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.807e-05/0.2667, allocations: 4.156 kB / 435.2 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002652/0.267, allocations: 149 kB / 435.3 MB, free: 1.391 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.362e-06/0.267, allocations: 0 / 435.3 MB, free: 1.391 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005928/0.2676, allocations: 257.5 kB / 435.6 MB, free: 1.133 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.802e-05/0.2676, allocations: 81.11 kB / 435.7 MB, free: 1.035 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002127/0.2678, allocations: 215 kB / 435.9 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.014e-05/0.2679, allocations: 33.7 kB / 435.9 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.268, allocations: 140.3 kB / 436 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.999e-05/0.268, allocations: 43.66 kB / 436.1 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.51e-05/0.2681, allocations: 45.69 kB / 436.1 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.2683, allocations: 330.8 kB / 436.5 MB, free: 212 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001733/0.2684, allocations: 71.89 kB / 436.5 MB, free: 140 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001999/0.2686, allocations: 126.8 kB / 436.7 MB, free: 15.99 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003425/0.269, allocations: 202.7 kB / 436.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.269, allocations: 0 / 436.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004426/0.2694, allocations: 242.2 kB / 437.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.2695, allocations: 11.97 kB / 437.1 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/0.2695, allocations: 4 kB / 437.1 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.2695, allocations: 4 kB / 437.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001793/0.2697, allocations: 39.91 kB / 437.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.2697, allocations: 4 kB / 437.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001539/0.2698, allocations: 31.86 kB / 437.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.489e-05/0.2698, allocations: 4 kB / 437.2 MB, free: 15.43 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.0001431/0.27, allocations: 153.7 kB / 437.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.998e-05/0.27, allocations: 19.89 kB / 437.4 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004426/0.2705, allocations: 215.1 kB / 437.6 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.2705, allocations: 7.938 kB / 437.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.2705, allocations: 0 / 437.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.137e-06/0.2705, allocations: 0 / 437.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002865/0.2708, allocations: 269.4 kB / 437.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2708, allocations: 0 / 437.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001161/0.2709, allocations: 31.97 kB / 437.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.2709, allocations: 0 / 437.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.808e-05/0.2709, allocations: 8 kB / 437.9 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.2709, allocations: 0 / 437.9 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.2709, allocations: 0 / 437.9 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003997/0.2713, allocations: 240.7 kB / 438.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.105e-05/0.2714, allocations: 93.02 kB / 438.2 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.569e-05/0.2714, allocations: 4 kB / 438.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001322/0.2715, allocations: 19.97 kB / 438.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.306e-05/0.2716, allocations: 11.98 kB / 438.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.057e-05/0.2716, allocations: 7.984 kB / 438.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001325/0.2717, allocations: 148.6 kB / 438.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2717, allocations: 4 kB / 438.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000261/0.272, allocations: 39.89 kB / 438.4 MB, free: 14.08 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.0007592/0.2727, allocations: 0.7576 MB / 439.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004212/0.2731, allocations: 179.8 kB / 439.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2732, allocations: 0 / 439.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001755/0.2733, allocations: 75.91 kB / 439.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003297/0.2737, allocations: 35.97 kB / 439.5 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002712/0.2764, allocations: 2.198 MB / 441.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003775/0.2767, allocations: 0.7435 MB / 442.4 MB, free: 9.895 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001182/0.2769, allocations: 33.52 kB / 442.4 MB, free: 9.863 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001034/0.277, allocations: 63.41 kB / 442.5 MB, free: 9.805 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.277, allocations: 0 / 442.5 MB, free: 9.805 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02741/0.3044, allocations: 4.162 MB / 446.7 MB, free: 5.742 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.833/8.137, allocations: 11.98 kB / 446.7 MB, free: 5.73 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 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.343482476979261] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch.u[1]', 'multiSwitch.u[2]'] 8.205407429020852 8.220753158 7.954745915 Calling exit ...