Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001477/0.001477, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.002478/0.002478, allocations: 212.7 kB / 24.52 MB, free: 3.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.603/1.603, allocations: 230.5 MB / 258.2 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Blocks_Examples_RealNetwork1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001899/0.001899, allocations: 60.05 kB / 378.5 MB, free: 2.824 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3923/0.3942, allocations: 53.4 MB / 431.9 MB, free: 6.574 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003963/0.3981, allocations: 1.825 MB / 433.7 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001742/0.3999, allocations: 0.6232 MB / 434.4 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002526/0.4001, allocations: 3.938 kB / 434.4 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002111/0.4003, allocations: 27.73 kB / 434.4 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000278/0.4006, allocations: 39.66 kB / 434.4 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000514/0.4011, allocations: 83.78 kB / 434.5 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003881/0.4015, allocations: 163.4 kB / 434.7 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002495/0.4018, allocations: 52.36 kB / 434.7 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002971/0.4021, allocations: 75.7 kB / 434.8 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002618/0.4023, allocations: 91.42 kB / 434.9 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.066e-05/0.4024, allocations: 16 kB / 434.9 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001177/0.4025, allocations: 23.98 kB / 434.9 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001093/0.4026, allocations: 47.84 kB / 435 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000122/0.4027, allocations: 71.59 kB / 435 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004447/0.4032, allocations: 193.3 kB / 435.2 MB, free: 3.246 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.346e-06/0.4032, allocations: 3.984 kB / 435.2 MB, free: 3.242 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4032, allocations: 0 / 435.2 MB, free: 3.242 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.227e-06/0.4032, allocations: 0 / 435.2 MB, free: 3.242 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.001294/0.4045, allocations: 445.5 kB / 435.7 MB, free: 2.773 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.747e-05/0.4045, allocations: 16.03 kB / 435.7 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.029e-05/0.4046, allocations: 8.469 kB / 435.7 MB, free: 2.75 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.302e-05/0.4046, allocations: 46.73 kB / 435.7 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002304/0.4049, allocations: 32.78 kB / 435.8 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003042/0.4052, allocations: 174.8 kB / 435.9 MB, free: 2.469 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.246e-05/0.4052, allocations: 12.66 kB / 435.9 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.299e-05/0.4052, allocations: 16.38 kB / 436 MB, free: 2.441 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003957/0.4056, allocations: 203.9 kB / 436.2 MB, free: 2.227 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.4056, allocations: 4 kB / 436.2 MB, free: 2.223 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.394e-05/0.4056, allocations: 4 kB / 436.2 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.494e-05/0.4057, allocations: 8 kB / 436.2 MB, free: 2.211 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003271/0.406, allocations: 143.8 kB / 436.3 MB, free: 2.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001311/0.4073, allocations: 0.7302 MB / 437 MB, free: 1.285 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003895/0.4077, allocations: 161 kB / 437.2 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001648/0.4079, allocations: 61.81 kB / 437.3 MB, free: 1.043 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.798e-05/0.4079, allocations: 8 kB / 437.3 MB, free: 1.035 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002991/0.4082, allocations: 153.1 kB / 437.4 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.833e-06/0.4082, allocations: 0 / 437.4 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007148/0.4089, allocations: 257.5 kB / 437.7 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.559e-05/0.409, allocations: 77.11 kB / 437.7 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002732/0.4093, allocations: 208.2 kB / 438 MB, free: 312 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.32e-05/0.4093, allocations: 29.7 kB / 438 MB, free: 276 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001564/0.4095, allocations: 148.3 kB / 438.1 MB, free: 124 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.176e-05/0.4096, allocations: 47.64 kB / 438.2 MB, free: 76 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001075/0.4097, allocations: 37.7 kB / 438.2 MB, free: 32 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002318/0.4099, allocations: 334.8 kB / 438.5 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001769/0.4101, allocations: 71.89 kB / 438.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000207/0.4103, allocations: 125.9 kB / 438.7 MB, free: 15.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004055/0.4107, allocations: 202.6 kB / 438.9 MB, free: 15.26 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.4107, allocations: 0 / 438.9 MB, free: 15.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004743/0.4112, allocations: 253.2 kB / 439.2 MB, free: 15 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.4112, allocations: 8 kB / 439.2 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.4112, allocations: 0 / 439.2 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.195e-05/0.4112, allocations: 4 kB / 439.2 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001805/0.4114, allocations: 31.92 kB / 439.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.647e-05/0.4114, allocations: 4 kB / 439.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001763/0.4116, allocations: 31.86 kB / 439.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.958e-05/0.4116, allocations: 12.19 kB / 439.3 MB, free: 14.91 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.0001775/0.4118, allocations: 141.7 kB / 439.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.921e-05/0.4118, allocations: 19.91 kB / 439.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004971/0.4123, allocations: 219.6 kB / 439.6 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.215e-06/0.4123, allocations: 4 kB / 439.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.4123, allocations: 0 / 439.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.4123, allocations: 0 / 439.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000296/0.4126, allocations: 232.6 kB / 439.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.4126, allocations: 0 / 439.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001132/0.4128, allocations: 28.03 kB / 439.9 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.4128, allocations: 3.938 kB / 439.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.442e-05/0.4128, allocations: 0 / 439.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.4128, allocations: 4 kB / 439.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.4128, allocations: 0 / 439.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000422/0.4132, allocations: 236.5 kB / 440.1 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.458e-05/0.4132, allocations: 15.89 kB / 440.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.04e-05/0.4133, allocations: 8 kB / 440.2 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001235/0.4134, allocations: 15.98 kB / 440.2 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.866e-05/0.4135, allocations: 23.91 kB / 440.2 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/0.4135, allocations: 4 kB / 440.2 MB, free: 13.9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001572/0.4136, allocations: 151.5 kB / 440.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4136, allocations: 96 / 440.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002906/0.4139, allocations: 43.83 kB / 440.4 MB, free: 13.71 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.0008019/0.4147, allocations: 0.7653 MB / 441.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004049/0.4151, allocations: 167.8 kB / 441.3 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4151, allocations: 0 / 441.3 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001778/0.4153, allocations: 75.89 kB / 441.4 MB, free: 12.67 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000367/0.4157, allocations: 42.62 kB / 441.4 MB, free: 12.63 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002982/0.4187, allocations: 2.185 MB / 443.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00013/0.4188, allocations: 128.9 kB / 443.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001302/0.4189, allocations: 29.62 kB / 443.8 MB, free: 10.13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001085/0.419, allocations: 59.41 kB / 443.8 MB, free: 10.08 MB / 350.1 MB Notification: Performance of SimCode: time 7.92e-07/0.419, allocations: 3.938 kB / 443.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02802/0.447, allocations: 4.56 MB / 448.4 MB, free: 5.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.52, allocations: 14.97 kB / 448.4 MB, free: 5.648 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00198965 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.267267627990805] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch.u[1]', 'multiSwitch.u[2]'] 11.686441116034985 11.710800567 11.303332239 Calling exit ...