Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.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.001307/0.001307, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.001439/0.001439, allocations: 208.7 kB / 24.51 MB, free: 3.941 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.569/1.569, allocations: 230.5 MB / 258.2 MB, free: 7.809 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.IntegerNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00182/0.00182, allocations: 63.89 kB / 378.5 MB, free: 2.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4536/0.4555, allocations: 53.4 MB / 431.9 MB, free: 6.477 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003536/0.459, allocations: 1.816 MB / 433.7 MB, free: 4.664 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001442/0.4604, allocations: 0.6544 MB / 434.4 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001213/0.4605, allocations: 7.938 kB / 434.4 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001623/0.4607, allocations: 27.66 kB / 434.4 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001634/0.4609, allocations: 39.66 kB / 434.4 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003709/0.4612, allocations: 99.72 kB / 434.5 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002818/0.4615, allocations: 167.5 kB / 434.7 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002518/0.4618, allocations: 54.92 kB / 434.8 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000211/0.462, allocations: 91.62 kB / 434.8 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001757/0.4622, allocations: 87.55 kB / 434.9 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.877e-05/0.4622, allocations: 16 kB / 435 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.019e-05/0.4623, allocations: 31.88 kB / 435 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.119e-05/0.4624, allocations: 51.83 kB / 435 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.595e-05/0.4625, allocations: 67.59 kB / 435.1 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003195/0.4628, allocations: 209.5 kB / 435.3 MB, free: 3.062 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.4628, allocations: 0 / 435.3 MB, free: 3.062 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.4628, allocations: 0 / 435.3 MB, free: 3.062 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.616e-06/0.4628, allocations: 0 / 435.3 MB, free: 3.062 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0009841/0.4638, allocations: 445.2 kB / 435.7 MB, free: 2.598 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/0.4639, allocations: 16.02 kB / 435.8 MB, free: 2.582 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.482e-05/0.4639, allocations: 4.188 kB / 435.8 MB, free: 2.578 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.437e-05/0.4639, allocations: 54.73 kB / 435.8 MB, free: 2.516 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001935/0.4641, allocations: 28.8 kB / 435.8 MB, free: 2.488 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000308/0.4644, allocations: 188.1 kB / 436 MB, free: 2.277 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.786e-05/0.4645, allocations: 16.38 kB / 436 MB, free: 2.262 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.93e-05/0.4645, allocations: 16.38 kB / 436.1 MB, free: 2.246 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004274/0.4649, allocations: 217.6 kB / 436.3 MB, free: 2.016 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.4649, allocations: 0 / 436.3 MB, free: 2.016 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.155e-05/0.465, allocations: 8 kB / 436.3 MB, free: 2.008 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.833e-05/0.465, allocations: 11.98 kB / 436.3 MB, free: 1.996 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003116/0.4653, allocations: 135.8 kB / 436.4 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001126/0.4664, allocations: 0.7068 MB / 437.1 MB, free: 1.102 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006603/0.4671, allocations: 194.6 kB / 437.3 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001559/0.4672, allocations: 56.77 kB / 437.4 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.434e-05/0.4673, allocations: 4 kB / 437.4 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003083/0.4676, allocations: 149 kB / 437.5 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.432e-06/0.4676, allocations: 0 / 437.5 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006556/0.4683, allocations: 249.4 kB / 437.8 MB, free: 436 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.773e-05/0.4683, allocations: 81.09 kB / 437.8 MB, free: 336 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002444/0.4686, allocations: 224.1 kB / 438.1 MB, free: 104 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.872e-05/0.4686, allocations: 34.08 kB / 438.1 MB, free: 64 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001498/0.4688, allocations: 136.4 kB / 438.2 MB, free: 15.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.516e-05/0.4688, allocations: 39.67 kB / 438.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.366e-05/0.4689, allocations: 57.66 kB / 438.3 MB, free: 15.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002068/0.4691, allocations: 338.8 kB / 438.7 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001638/0.4693, allocations: 71.89 kB / 438.7 MB, free: 15.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002316/0.4695, allocations: 137.2 kB / 438.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003692/0.4699, allocations: 208.6 kB / 439.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.4699, allocations: 4 kB / 439.1 MB, free: 15.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000475/0.4703, allocations: 249.2 kB / 439.3 MB, free: 14.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.436e-05/0.4704, allocations: 8 kB / 439.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.4704, allocations: 0 / 439.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.416e-05/0.4704, allocations: 4 kB / 439.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001842/0.4706, allocations: 40.17 kB / 439.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.299e-05/0.4706, allocations: 11.94 kB / 439.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001741/0.4708, allocations: 35.75 kB / 439.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.404e-05/0.4708, allocations: 12 kB / 439.4 MB, free: 14.65 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (product.y,product.u[2],product.u[1],sum.u[1],triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition3,$whenCondition2,multiSwitch1.expr[2],multiSwitch1.expr[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch1.firstActiveIndex,multiSwitch1.y,$PRE.multiSwitch1.y,multiSwitch1.u[2],multiSwitch1.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,$whenCondition1,triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001807/0.471, allocations: 152.2 kB / 439.6 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.579e-05/0.471, allocations: 15.91 kB / 439.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002931/0.4713, allocations: 135 kB / 439.7 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.4713, allocations: 0 / 439.7 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.196e-06/0.4713, allocations: 8 kB / 439.7 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.4713, allocations: 3.938 kB / 439.7 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006979/0.472, allocations: 433.4 kB / 440.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.472, allocations: 0 / 440.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001166/0.4721, allocations: 19.98 kB / 440.2 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.4721, allocations: 3.984 kB / 440.2 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.901e-05/0.4722, allocations: 3.938 kB / 440.2 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.4722, allocations: 4 kB / 440.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.4722, allocations: 0 / 440.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004373/0.4726, allocations: 288.1 kB / 440.5 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.05e-05/0.4726, allocations: 24.03 kB / 440.5 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.635e-05/0.4727, allocations: 7.984 kB / 440.5 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001655/0.4728, allocations: 27.92 kB / 440.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.559e-05/0.4729, allocations: 15.97 kB / 440.5 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.489e-05/0.4729, allocations: 11.98 kB / 440.5 MB, free: 13.44 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000132/0.4731, allocations: 147.5 kB / 440.7 MB, free: 13.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4731, allocations: 0 / 440.7 MB, free: 13.29 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003246/0.4734, allocations: 43.89 kB / 440.7 MB, free: 13.25 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: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulseStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulseStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.00085/0.4742, allocations: 0.8302 MB / 441.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004096/0.4747, allocations: 166.5 kB / 441.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4747, allocations: 0 / 441.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001827/0.4748, allocations: 72.39 kB / 441.8 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003452/0.4752, allocations: 27.98 kB / 441.8 MB, free: 12.13 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002938/0.4781, allocations: 2.252 MB / 444.1 MB, free: 9.727 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001265/0.4782, allocations: 124.9 kB / 444.2 MB, free: 9.586 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001076/0.4784, allocations: 33.61 kB / 444.2 MB, free: 9.555 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001279/0.4785, allocations: 71.41 kB / 444.3 MB, free: 9.484 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.4785, allocations: 0 / 444.3 MB, free: 9.484 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02741/0.5059, allocations: 4.494 MB / 448.8 MB, free: 5.121 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.01/11.52, allocations: 6.812 kB / 448.8 MB, free: 5.117 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00197941 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.164807343040593] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch1.y', 'triggeredAdd.y'] 11.680491266073659 11.703281889 11.236171931 Calling exit ...