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.001349/0.001349, allocations: 118.3 kB / 18.49 MB, free: 4.535 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.001628/0.001628, allocations: 222.3 kB / 21.46 MB, free: 1.582 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.648/1.648, allocations: 230.5 MB / 254.7 MB, free: 15 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.002092/0.002092, allocations: 63.91 kB / 373.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1359, allocations: 53.38 MB / 427.1 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.004049/0.1399, allocations: 1.848 MB / 428.9 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001782/0.1417, allocations: 0.705 MB / 429.6 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002258/0.1419, allocations: 7.938 kB / 429.6 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002247/0.1422, allocations: 31.67 kB / 429.6 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002206/0.1424, allocations: 31.67 kB / 429.7 MB, free: 1.953 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004782/0.1429, allocations: 91.77 kB / 429.8 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003882/0.1432, allocations: 179.4 kB / 429.9 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002124/0.1435, allocations: 54.66 kB / 430 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002748/0.1437, allocations: 87.69 kB / 430.1 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002283/0.144, allocations: 95.47 kB / 430.2 MB, free: 1.449 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.242e-05/0.144, allocations: 16 kB / 430.2 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001098/0.1441, allocations: 24 kB / 430.2 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.212e-05/0.1442, allocations: 43.84 kB / 430.3 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001135/0.1443, allocations: 83.47 kB / 430.3 MB, free: 1.285 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004009/0.1447, allocations: 211 kB / 430.5 MB, free: 1.078 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1447, allocations: 3.938 kB / 430.5 MB, free: 1.074 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1447, allocations: 0 / 430.5 MB, free: 1.074 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.4e-05/0.1447, allocations: 4 kB / 430.6 MB, free: 1.07 MB / 350.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.001212/0.1459, allocations: 0.5165 MB / 431.1 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.146, allocations: 8.031 kB / 431.1 MB, free: 0.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.263e-05/0.146, allocations: 4.188 kB / 431.1 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.297e-05/0.1461, allocations: 46.73 kB / 431.1 MB, free: 452 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002078/0.1463, allocations: 36.8 kB / 431.2 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003653/0.1467, allocations: 248.8 kB / 431.4 MB, free: 124 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.786e-05/0.1467, allocations: 12.38 kB / 431.4 MB, free: 112 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.617e-05/0.1467, allocations: 12.38 kB / 431.4 MB, free: 100 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000527/0.1472, allocations: 225.2 kB / 431.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/0.1473, allocations: 4 kB / 431.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.532e-05/0.1473, allocations: 11.98 kB / 431.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.21e-05/0.1473, allocations: 4 kB / 431.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003863/0.1477, allocations: 143.8 kB / 431.8 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001263/0.149, allocations: 0.7817 MB / 432.6 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006683/0.1496, allocations: 182.7 kB / 432.8 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001753/0.1498, allocations: 56.81 kB / 432.8 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.629e-05/0.1499, allocations: 4 kB / 432.8 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003065/0.1502, allocations: 145 kB / 433 MB, free: 14.45 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 2.024e-06/0.1502, allocations: 4 kB / 433 MB, free: 14.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007209/0.1509, allocations: 237.7 kB / 433.2 MB, free: 14.2 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.847e-05/0.151, allocations: 81.11 kB / 433.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002746/0.1513, allocations: 227 kB / 433.5 MB, free: 13.87 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.379e-05/0.1513, allocations: 29.8 kB / 433.5 MB, free: 13.84 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001306/0.1514, allocations: 152.3 kB / 433.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.474e-05/0.1515, allocations: 47.66 kB / 433.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001198/0.1516, allocations: 53.66 kB / 433.8 MB, free: 13.58 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.1518, allocations: 334.8 kB / 434.1 MB, free: 13.24 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000176/0.1519, allocations: 67.95 kB / 434.2 MB, free: 13.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002243/0.1522, allocations: 132.5 kB / 434.3 MB, free: 13.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004126/0.1526, allocations: 204.4 kB / 434.5 MB, free: 12.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.1526, allocations: 0 / 434.5 MB, free: 12.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005387/0.1531, allocations: 257.3 kB / 434.8 MB, free: 12.53 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.1531, allocations: 4 kB / 434.8 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.1531, allocations: 4 kB / 434.8 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.851e-05/0.1532, allocations: 4 kB / 434.8 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001815/0.1534, allocations: 39.91 kB / 434.8 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.339e-05/0.1534, allocations: 4 kB / 434.8 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000219/0.1536, allocations: 43.75 kB / 434.9 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.985e-05/0.1536, allocations: 8 kB / 434.9 MB, free: 12.42 MB / 366.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.0001923/0.1538, allocations: 148.1 kB / 435 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.307e-05/0.1538, allocations: 15.91 kB / 435 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003064/0.1541, allocations: 135.3 kB / 435.2 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.1542, allocations: 4 kB / 435.2 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.093e-05/0.1542, allocations: 4 kB / 435.2 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.158e-05/0.1542, allocations: 3.938 kB / 435.2 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007289/0.1549, allocations: 482.3 kB / 435.6 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.1549, allocations: 0 / 435.6 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001151/0.155, allocations: 19.97 kB / 435.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/0.155, allocations: 4 kB / 435.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.688e-05/0.155, allocations: 3.938 kB / 435.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.003e-06/0.1551, allocations: 0 / 435.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.1551, allocations: 7.984 kB / 435.7 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004868/0.1555, allocations: 292.2 kB / 436 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.606e-05/0.1556, allocations: 92.95 kB / 436 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.626e-05/0.1557, allocations: 15.92 kB / 436.1 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001758/0.1559, allocations: 11.98 kB / 436.1 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.962e-05/0.156, allocations: 23.97 kB / 436.1 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.953e-05/0.156, allocations: 4 kB / 436.1 MB, free: 11.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001399/0.1561, allocations: 152.6 kB / 436.3 MB, free: 10.92 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1561, allocations: 4 kB / 436.3 MB, free: 10.92 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003466/0.1565, allocations: 39.95 kB / 436.3 MB, free: 10.88 MB / 366.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.0009724/0.1574, allocations: 0.8313 MB / 437.1 MB, free: 10.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004913/0.1579, allocations: 171.6 kB / 437.3 MB, free: 9.852 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1579, allocations: 0 / 437.3 MB, free: 9.852 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002085/0.1581, allocations: 71.89 kB / 437.4 MB, free: 9.781 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003848/0.1585, allocations: 31.7 kB / 437.4 MB, free: 9.754 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003251/0.1618, allocations: 2.249 MB / 439.6 MB, free: 7.359 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004035/0.1622, allocations: 0.7398 MB / 440.4 MB, free: 6.594 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001171/0.1623, allocations: 33.78 kB / 440.4 MB, free: 6.555 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001336/0.1624, allocations: 67.41 kB / 440.5 MB, free: 6.488 MB / 366.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1624, allocations: 0 / 440.5 MB, free: 6.488 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02359/0.186, allocations: 4.184 MB / 444.7 MB, free: 2.379 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.37/8.556, allocations: 7.922 kB / 444.7 MB, free: 2.371 MB / 366.1 MB " [Timeout remaining time 651] (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: 11.448095764033496] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch1.y', 'triggeredAdd.y'] 8.681680159992538 8.886624202 8.739607759 Calling exit ...