Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.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: 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.001418/0.001418, 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.657/1.657, allocations: 230.4 MB / 254.7 MB, free: 15.19 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.BooleanNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001822/0.001822, allocations: 67.89 kB / 373.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1431/0.145, allocations: 53.37 MB / 427.1 MB, free: 4.621 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004592/0.1496, allocations: 2.501 MB / 429.6 MB, free: 2.109 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002824/0.1524, allocations: 1.478 MB / 431 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002268/0.1526, allocations: 19.81 kB / 431.1 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008531/0.1535, allocations: 246.8 kB / 431.3 MB, free: 372 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005254/0.154, allocations: 203 kB / 431.5 MB, free: 168 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007157/0.1547, allocations: 270.1 kB / 431.8 MB, free: 15.9 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005827/0.1553, allocations: 471.7 kB / 432.2 MB, free: 15.44 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003373/0.1556, allocations: 157.9 kB / 432.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002606/0.1559, allocations: 207.2 kB / 432.6 MB, free: 15.07 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002852/0.1562, allocations: 215 kB / 432.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.175e-05/0.1562, allocations: 36 kB / 432.8 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002562/0.1565, allocations: 123.9 kB / 432.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001588/0.1566, allocations: 131.5 kB / 433.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002456/0.1569, allocations: 218.7 kB / 433.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008149/0.1577, allocations: 0.56 MB / 433.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1577, allocations: 0 / 433.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1577, allocations: 8 kB / 433.9 MB, free: 13.79 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.432e-05/0.1577, allocations: 3.938 kB / 433.9 MB, free: 13.79 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.00166/0.1594, allocations: 0.8664 MB / 434.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/0.1594, allocations: 8.031 kB / 434.7 MB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.142e-05/0.1595, allocations: 9.188 kB / 434.7 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.875e-05/0.1595, allocations: 82.7 kB / 434.8 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000259/0.1598, allocations: 68.56 kB / 434.9 MB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005582/0.1604, allocations: 399.3 kB / 435.3 MB, free: 12.25 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.378e-05/0.1605, allocations: 59.27 kB / 435.3 MB, free: 12.19 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.077e-05/0.1605, allocations: 40.12 kB / 435.4 MB, free: 12.15 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007244/0.1612, allocations: 428.7 kB / 435.8 MB, free: 11.69 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.1613, allocations: 3.938 kB / 435.8 MB, free: 11.69 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.081e-05/0.1613, allocations: 19.98 kB / 435.8 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.347e-05/0.1613, allocations: 16.38 kB / 435.8 MB, free: 11.65 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004943/0.1618, allocations: 273.5 kB / 436.1 MB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002067/0.1639, allocations: 1.663 MB / 437.8 MB, free: 9.633 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006468/0.1645, allocations: 271.9 kB / 438 MB, free: 9.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002295/0.1648, allocations: 118.6 kB / 438.1 MB, free: 9.215 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.398e-05/0.1648, allocations: 11.94 kB / 438.2 MB, free: 9.203 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005094/0.1653, allocations: 320 kB / 438.5 MB, free: 8.852 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 1.783e-06/0.1653, allocations: 4 kB / 438.5 MB, free: 8.848 MB / 366.1 MB Notification: Performance of matching and sorting (n=37): time 0.000985/0.1663, allocations: 466.8 kB / 438.9 MB, free: 8.379 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001284/0.1665, allocations: 166.2 kB / 439.1 MB, free: 8.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005845/0.167, allocations: 0.4897 MB / 439.6 MB, free: 7.68 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.608e-05/0.1671, allocations: 45.62 kB / 439.6 MB, free: 7.629 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002095/0.1673, allocations: 240.8 kB / 439.9 MB, free: 7.391 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.888e-05/0.1674, allocations: 91.36 kB / 440 MB, free: 7.301 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001617/0.1675, allocations: 122.2 kB / 440.1 MB, free: 7.176 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.1677, allocations: 358.7 kB / 440.4 MB, free: 6.816 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002284/0.1679, allocations: 113.1 kB / 440.5 MB, free: 6.707 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003573/0.1683, allocations: 262.7 kB / 440.8 MB, free: 6.391 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005669/0.1689, allocations: 407.1 kB / 441.2 MB, free: 5.926 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.1689, allocations: 0 / 441.2 MB, free: 5.926 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007543/0.1696, allocations: 478.4 kB / 441.7 MB, free: 5.445 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.698e-05/0.1697, allocations: 37.69 kB / 441.7 MB, free: 5.402 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/0.1697, allocations: 4 kB / 441.7 MB, free: 5.398 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.331e-05/0.1697, allocations: 8 kB / 441.7 MB, free: 5.391 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001369/0.1698, allocations: 39.86 kB / 441.7 MB, free: 5.352 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.807e-05/0.1699, allocations: 16.39 kB / 441.8 MB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000236/0.1701, allocations: 59.66 kB / 441.8 MB, free: 5.277 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.722e-05/0.1701, allocations: 20 kB / 441.8 MB, free: 5.258 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 58 ($PRE.onDelay.u,$PRE.onDelay.t_next,triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition5,$whenCondition4,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition1,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay.t_next,onDelay.delaySignal,onDelay.y,onDelay.u,$whenCondition3,$whenCondition2,sampleTriggerReset.y,sampleTriggerSet.y,rSFlipFlop.pre.u,$PRE.rSFlipFlop.pre.u,rSFlipFlop.QI,rSFlipFlop.Q,triggeredAdd.local_set,triggeredAdd.local_reset,set1.expr[2],set1.expr[1],changing.y,changing.u,$PRE.changing.u,falling.not_u,$PRE.falling.not_u,set1.firstActiveIndex,set1.y,$PRE.set1.y,set1.u[2],set1.u[1],rising.u,$PRE.rising.u,nor1.y,or2.u[1],nand1.u[1],xor1.u[1],or1.u[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,and1.u[2],and1.u[1],$whenCondition6,showValue6.active,showValue5.active,showValue1.number,showValue4.active,showValue3.active,showValue2.active,showValue.active) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * 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.0002873/0.1704, allocations: 244.6 kB / 442.1 MB, free: 5.004 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.08e-05/0.1705, allocations: 51.67 kB / 442.1 MB, free: 4.953 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004536/0.171, allocations: 236.3 kB / 442.4 MB, free: 4.723 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/0.171, allocations: 4 kB / 442.4 MB, free: 4.719 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/0.171, allocations: 4 kB / 442.4 MB, free: 4.715 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.7e-06/0.171, allocations: 0 / 442.4 MB, free: 4.715 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001063/0.172, allocations: 0.7404 MB / 443.1 MB, free: 3.914 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.172, allocations: 3.984 kB / 443.1 MB, free: 3.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.727e-05/0.1721, allocations: 15.94 kB / 443.1 MB, free: 3.895 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.1721, allocations: 4 kB / 443.1 MB, free: 3.891 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.086e-05/0.1721, allocations: 20.05 kB / 443.1 MB, free: 3.871 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.1721, allocations: 4 kB / 443.1 MB, free: 3.867 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1721, allocations: 0 / 443.1 MB, free: 3.867 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007576/0.1729, allocations: 488.6 kB / 443.6 MB, free: 3.363 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001168/0.173, allocations: 128.7 kB / 443.8 MB, free: 3.219 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.114e-05/0.1731, allocations: 16 kB / 443.8 MB, free: 3.203 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002017/0.1733, allocations: 23.97 kB / 443.8 MB, free: 3.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001332/0.1734, allocations: 47.89 kB / 443.8 MB, free: 3.133 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.158e-05/0.1734, allocations: 15.92 kB / 443.9 MB, free: 3.117 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003864/0.1738, allocations: 331.1 kB / 444.2 MB, free: 2.797 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1738, allocations: 0 / 444.2 MB, free: 2.797 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004807/0.1743, allocations: 111.8 kB / 444.3 MB, free: 2.688 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 35 (rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u,sampleTriggerSet.y,sampleTriggerReset.y,$whenCondition1,$whenCondition2,$whenCondition3,onDelay.u,onDelay.y,onDelay.delaySignal,onDelay.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,changing.y,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],or2.u[1],nor1.y,rising.u,set1.u[1],set1.u[2],set1.y,set1.firstActiveIndex,falling.not_u,changing.u,triggeredAdd.y) * Number of discrete states: 12 (falling.not_u,rising.u,set1.y,changing.u,triggeredAdd.y,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,rSFlipFlop.pre.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 5 * 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.002814/0.1771, allocations: 1.382 MB / 445.7 MB, free: 1.406 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008913/0.178, allocations: 363 kB / 446 MB, free: 1.039 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.178, allocations: 0 / 446 MB, free: 1.039 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003918/0.1784, allocations: 199.4 kB / 446.2 MB, free: 0.832 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006321/0.179, allocations: 91.27 kB / 446.3 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3214/0.5004, allocations: 4.022 MB / 450.3 MB, free: 22.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005095/0.501, allocations: 0.8409 MB / 451.2 MB, free: 22.02 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003418/0.5013, allocations: 74.97 kB / 451.2 MB, free: 22.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00028/0.5016, allocations: 162.2 kB / 451.4 MB, free: 22.02 MB / 366.1 MB Notification: Performance of SimCode: time 1.573e-06/0.5016, allocations: 0 / 451.4 MB, free: 22.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05036/0.5519, allocations: 9.935 MB / 461.3 MB, free: 20.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.739/9.291, allocations: 17.47 kB / 461.4 MB, free: 20.49 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_BooleanNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00197981 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_BooleanNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.102965869999025] Failed to read output from testmodel.py, exit status != 0: ['time', 'and1.u[1]', 'and1.u[2]', 'and1.u[3]', 'booleanTable.y', 'changing.u', 'nand1.u[1]', 'nand1.u[2]', 'onDelay.u', 'or1.u[1]', 'or1.u[2]', 'or2.u[1]', 'or2.u[2]', 'rSFlipFlop.pre.u', 'rising.u', 'set1.y', 'triggeredAdd.y', 'xor1.u[1]', 'xor1.u[2]'] 9.48010995896766 9.493873697 9.333109298 Calling exit ...