Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001677/0.001677, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.002051/0.002051, allocations: 212.3 kB / 24.54 MB, free: 4.02 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.519/1.519, allocations: 230.6 MB / 258.3 MB, free: 8.035 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.IntegerNetwork1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_IntegerNetwork1",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.002123/0.002123, allocations: 64.77 kB / 378.5 MB, free: 3.184 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2569, allocations: 53.37 MB / 431.9 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003367/0.2603, allocations: 1.869 MB / 433.8 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001689/0.262, allocations: 0.705 MB / 434.5 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000127/0.2621, allocations: 7.938 kB / 434.5 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001709/0.2623, allocations: 27.66 kB / 434.5 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001674/0.2624, allocations: 31.72 kB / 434.5 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003996/0.2628, allocations: 99.72 kB / 434.6 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003087/0.2631, allocations: 179.4 kB / 434.8 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001941/0.2633, allocations: 50.92 kB / 434.9 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002702/0.2636, allocations: 87.64 kB / 435 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001711/0.2638, allocations: 91.59 kB / 435 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.984e-05/0.2638, allocations: 16 kB / 435.1 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.283e-05/0.2639, allocations: 24 kB / 435.1 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.077e-05/0.264, allocations: 47.78 kB / 435.1 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001146/0.2641, allocations: 87.45 kB / 435.2 MB, free: 3.566 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003839/0.2645, allocations: 207.8 kB / 435.4 MB, free: 3.371 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.2645, allocations: 0 / 435.4 MB, free: 3.371 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2645, allocations: 4 kB / 435.4 MB, free: 3.367 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.2645, allocations: 0 / 435.4 MB, free: 3.367 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.001086/0.2656, allocations: 453.2 kB / 435.9 MB, free: 2.895 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.2656, allocations: 8.031 kB / 435.9 MB, free: 2.887 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.859e-05/0.2657, allocations: 54.72 kB / 435.9 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002097/0.2659, allocations: 28.8 kB / 436 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003349/0.2663, allocations: 191.8 kB / 436.1 MB, free: 2.582 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.933e-05/0.2663, allocations: 20.38 kB / 436.2 MB, free: 2.562 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.262e-05/0.2663, allocations: 16.38 kB / 436.2 MB, free: 2.547 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004089/0.2667, allocations: 209.8 kB / 436.4 MB, free: 2.324 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.2667, allocations: 7.938 kB / 436.4 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/0.2668, allocations: 4 kB / 436.4 MB, free: 2.312 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.693e-05/0.2668, allocations: 11.98 kB / 436.4 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003406/0.2671, allocations: 139.8 kB / 436.5 MB, free: 2.164 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001145/0.2683, allocations: 0.7457 MB / 437.3 MB, free: 1.363 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006267/0.2689, allocations: 186.6 kB / 437.5 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001484/0.269, allocations: 56.83 kB / 437.5 MB, free: 1.113 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.403e-05/0.2691, allocations: 11.98 kB / 437.5 MB, free: 1.102 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003336/0.2694, allocations: 143.6 kB / 437.7 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.473e-06/0.2694, allocations: 0 / 437.7 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.000644/0.2701, allocations: 249.3 kB / 437.9 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.726e-05/0.2701, allocations: 85.11 kB / 438 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002443/0.2704, allocations: 227 kB / 438.2 MB, free: 372 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.045e-05/0.2704, allocations: 29.7 kB / 438.3 MB, free: 336 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001149/0.2705, allocations: 140.3 kB / 438.4 MB, free: 192 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.559e-05/0.2706, allocations: 39.73 kB / 438.4 MB, free: 152 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.323e-05/0.2707, allocations: 57.64 kB / 438.5 MB, free: 88 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002041/0.2709, allocations: 330.8 kB / 438.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001813/0.2711, allocations: 79.94 kB / 438.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002085/0.2713, allocations: 128.5 kB / 439 MB, free: 15.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003807/0.2717, allocations: 216.3 kB / 439.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.2717, allocations: 0 / 439.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000499/0.2722, allocations: 241.3 kB / 439.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.2722, allocations: 8 kB / 439.5 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.2722, allocations: 4 kB / 439.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.2722, allocations: 4 kB / 439.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001864/0.2724, allocations: 40.16 kB / 439.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.401e-05/0.2724, allocations: 7.938 kB / 439.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001771/0.2726, allocations: 39.77 kB / 439.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.958e-05/0.2726, allocations: 8.312 kB / 439.6 MB, free: 14.93 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.0001501/0.2728, allocations: 143.8 kB / 439.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.807e-05/0.2728, allocations: 15.91 kB / 439.7 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002722/0.2731, allocations: 139 kB / 439.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.2731, allocations: 0 / 439.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.2731, allocations: 4 kB / 439.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.258e-06/0.2731, allocations: 7.922 kB / 439.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006983/0.2738, allocations: 453.8 kB / 440.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2738, allocations: 3.938 kB / 440.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001224/0.2739, allocations: 20.08 kB / 440.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.2739, allocations: 7.938 kB / 440.3 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.38e-05/0.274, allocations: 7.938 kB / 440.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.274, allocations: 0 / 440.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.274, allocations: 7.984 kB / 440.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004512/0.2744, allocations: 284.1 kB / 440.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.106e-05/0.2745, allocations: 15.84 kB / 440.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.576e-05/0.2745, allocations: 11.94 kB / 440.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001727/0.2747, allocations: 19.97 kB / 440.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.932e-05/0.2747, allocations: 23.97 kB / 440.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.03e-05/0.2748, allocations: 4 kB / 440.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001413/0.2749, allocations: 152.6 kB / 440.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2749, allocations: 0 / 440.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003119/0.2752, allocations: 43.89 kB / 440.9 MB, free: 13.5 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.0008718/0.2761, allocations: 0.8232 MB / 441.7 MB, free: 12.65 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004136/0.2765, allocations: 164.1 kB / 441.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.2765, allocations: 4.062 kB / 441.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002029/0.2767, allocations: 75.89 kB / 442 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003609/0.2771, allocations: 35.33 kB / 442 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002994/0.2801, allocations: 2.236 MB / 444.2 MB, free: 9.992 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003828/0.2804, allocations: 0.7397 MB / 445 MB, free: 9.227 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001265/0.2806, allocations: 41.62 kB / 445 MB, free: 9.188 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.2807, allocations: 59.59 kB / 445.1 MB, free: 9.129 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2807, allocations: 4 kB / 445.1 MB, free: 9.125 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0297/0.3104, allocations: 4.273 MB / 449.4 MB, free: 4.945 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.409/8.719, allocations: 10.11 kB / 449.4 MB, free: 4.945 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00197941 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.091159206349403] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch1.y', 'triggeredAdd.y'] 8.792378325015306 8.816036977 8.546587996 Calling exit ...