Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001326/0.001326, allocations: 214.4 kB / 24.52 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.374/1.374, allocations: 230.6 MB / 258.3 MB, free: 7.801 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 47.94 kB / 378.5 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.2439, allocations: 53.36 MB / 431.9 MB, free: 6.801 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003132/0.247, allocations: 1.809 MB / 433.7 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001212/0.2482, allocations: 0.6622 MB / 434.3 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.234e-05/0.2483, allocations: 7.938 kB / 434.3 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001343/0.2485, allocations: 31.59 kB / 434.4 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001317/0.2486, allocations: 31.67 kB / 434.4 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003051/0.2489, allocations: 99.77 kB / 434.5 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002674/0.2492, allocations: 171.5 kB / 434.7 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001858/0.2494, allocations: 54.92 kB / 434.7 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001882/0.2495, allocations: 87.64 kB / 434.8 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001768/0.2497, allocations: 87.59 kB / 434.9 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.092e-05/0.2498, allocations: 20 kB / 434.9 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.173e-05/0.2498, allocations: 27.94 kB / 434.9 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.322e-05/0.2499, allocations: 43.84 kB / 435 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.479e-05/0.25, allocations: 71.58 kB / 435 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003205/0.2503, allocations: 201.8 kB / 435.2 MB, free: 3.398 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2503, allocations: 0 / 435.2 MB, free: 3.398 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2503, allocations: 0 / 435.2 MB, free: 3.398 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.2504, allocations: 0 / 435.2 MB, free: 3.398 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.001037/0.2514, allocations: 459.2 kB / 435.7 MB, free: 2.922 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.2514, allocations: 12.03 kB / 435.7 MB, free: 2.91 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.667e-05/0.2514, allocations: 4.188 kB / 435.7 MB, free: 2.906 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.415e-05/0.2515, allocations: 50.73 kB / 435.8 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001632/0.2517, allocations: 32.78 kB / 435.8 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003003/0.252, allocations: 187.8 kB / 436 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.587e-05/0.252, allocations: 16.38 kB / 436 MB, free: 2.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.437e-05/0.252, allocations: 12.38 kB / 436 MB, free: 2.578 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004173/0.2525, allocations: 222.2 kB / 436.2 MB, free: 2.344 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.2525, allocations: 4 kB / 436.2 MB, free: 2.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.898e-05/0.2525, allocations: 4 kB / 436.2 MB, free: 2.336 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.332e-05/0.2525, allocations: 8 kB / 436.2 MB, free: 2.328 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003174/0.2528, allocations: 139.8 kB / 436.4 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001073/0.2539, allocations: 0.7146 MB / 437.1 MB, free: 1.422 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006212/0.2545, allocations: 190.6 kB / 437.3 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001475/0.2547, allocations: 64.75 kB / 437.3 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.638e-05/0.2547, allocations: 4 kB / 437.3 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002825/0.255, allocations: 141 kB / 437.5 MB, free: 1 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.884e-06/0.255, allocations: 7.938 kB / 437.5 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005971/0.2556, allocations: 245.3 kB / 437.7 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/0.2556, allocations: 81.11 kB / 437.8 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002272/0.2559, allocations: 227 kB / 438 MB, free: 428 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.668e-05/0.2559, allocations: 33.7 kB / 438.1 MB, free: 388 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001104/0.256, allocations: 144.3 kB / 438.2 MB, free: 240 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.819e-05/0.2561, allocations: 39.67 kB / 438.2 MB, free: 200 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.71e-05/0.2561, allocations: 57.66 kB / 438.3 MB, free: 136 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.2563, allocations: 334.8 kB / 438.6 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001608/0.2565, allocations: 67.95 kB / 438.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002061/0.2567, allocations: 136.5 kB / 438.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003515/0.257, allocations: 212.3 kB / 439 MB, free: 15.33 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.257, allocations: 0 / 439 MB, free: 15.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000455/0.2575, allocations: 241.3 kB / 439.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.2575, allocations: 8 kB / 439.3 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.2575, allocations: 4.25 kB / 439.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.2575, allocations: 7.984 kB / 439.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001741/0.2577, allocations: 43.86 kB / 439.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/0.2577, allocations: 4 kB / 439.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001687/0.2579, allocations: 35.75 kB / 439.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.858e-05/0.2579, allocations: 12 kB / 439.4 MB, free: 14.97 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.0001486/0.258, allocations: 147.8 kB / 439.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.979e-05/0.2581, allocations: 23.91 kB / 439.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002598/0.2583, allocations: 135 kB / 439.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.2583, allocations: 0 / 439.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.2583, allocations: 320 / 439.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.2583, allocations: 8.406 kB / 439.7 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006112/0.259, allocations: 437.3 kB / 440.1 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.259, allocations: 4 kB / 440.1 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001156/0.2591, allocations: 19.92 kB / 440.1 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.2591, allocations: 4 kB / 440.1 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.757e-05/0.2591, allocations: 7.922 kB / 440.1 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.2591, allocations: 8 kB / 440.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2591, allocations: 0 / 440.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004222/0.2595, allocations: 280.2 kB / 440.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.056e-05/0.2596, allocations: 23.84 kB / 440.4 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.229e-05/0.2596, allocations: 3.938 kB / 440.5 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001651/0.2598, allocations: 19.97 kB / 440.5 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.087e-05/0.2598, allocations: 19.97 kB / 440.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.038e-05/0.2599, allocations: 11.92 kB / 440.5 MB, free: 13.76 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001299/0.26, allocations: 152.6 kB / 440.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.26, allocations: 4 kB / 440.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002931/0.2603, allocations: 39.95 kB / 440.7 MB, free: 13.57 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.0008184/0.2611, allocations: 0.8292 MB / 441.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004067/0.2615, allocations: 160.3 kB / 441.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2615, allocations: 4 kB / 441.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001807/0.2617, allocations: 71.89 kB / 441.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003399/0.262, allocations: 27.92 kB / 441.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002855/0.2649, allocations: 2.248 MB / 444 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001248/0.265, allocations: 128.8 kB / 444.2 MB, free: 9.906 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001009/0.2651, allocations: 37.61 kB / 444.2 MB, free: 9.871 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001138/0.2652, allocations: 63.42 kB / 444.3 MB, free: 9.809 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2652, allocations: 0 / 444.3 MB, free: 9.809 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02485/0.2901, allocations: 4.501 MB / 448.8 MB, free: 5.477 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.25, allocations: 64 / 448.8 MB, free: 5.477 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00197941 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.500281223095953] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch1.y', 'triggeredAdd.y'] 11.401268188026734 11.415697067 11.162486808 Calling exit ...