Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.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.001278/0.001278, allocations: 113 kB / 18.49 MB, free: 4.539 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.001356/0.001356, allocations: 217.4 kB / 21.46 MB, free: 1.586 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.385/1.385, allocations: 230.6 MB / 254.8 MB, free: 15.23 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.BooleanNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 51.92 kB / 373.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0976/0.09904, allocations: 53.33 MB / 427 MB, free: 4.875 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004432/0.1035, allocations: 2.485 MB / 429.5 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002536/0.106, allocations: 1.481 MB / 431 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001709/0.1062, allocations: 15.88 kB / 431 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006956/0.1069, allocations: 246.8 kB / 431.3 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004459/0.1073, allocations: 203 kB / 431.4 MB, free: 440 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005673/0.1079, allocations: 275.2 kB / 431.7 MB, free: 164 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1856/0.2935, allocations: 473.2 kB / 432.2 MB, free: 7.727 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003022/0.2938, allocations: 149.9 kB / 432.3 MB, free: 7.703 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000225/0.294, allocations: 204.4 kB / 432.5 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002104/0.2942, allocations: 230.5 kB / 432.8 MB, free: 7.621 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.72e-05/0.2943, allocations: 35 kB / 432.8 MB, free: 7.621 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002644/0.2945, allocations: 126.9 kB / 432.9 MB, free: 7.621 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001109/0.2946, allocations: 129.2 kB / 433 MB, free: 7.602 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001433/0.2948, allocations: 216.2 kB / 433.2 MB, free: 7.523 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005369/0.2953, allocations: 0.5747 MB / 433.8 MB, free: 7.418 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.2953, allocations: 0 / 433.8 MB, free: 7.418 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2953, allocations: 1.875 kB / 433.8 MB, free: 7.418 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.2953, allocations: 0.8438 kB / 433.8 MB, free: 7.418 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001073/0.2964, allocations: 0.8697 MB / 434.7 MB, free: 6.793 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.173e-05/0.2964, allocations: 9.844 kB / 434.7 MB, free: 6.793 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.051e-05/0.2965, allocations: 9 kB / 434.7 MB, free: 6.793 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.165e-05/0.2965, allocations: 77.69 kB / 434.8 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002576/0.2968, allocations: 70.72 kB / 434.9 MB, free: 6.723 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000404/0.2972, allocations: 408.5 kB / 435.3 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.601e-05/0.2972, allocations: 58.98 kB / 435.3 MB, free: 6.434 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.767e-05/0.2973, allocations: 45.06 kB / 435.4 MB, free: 6.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005471/0.2978, allocations: 428.5 kB / 435.8 MB, free: 6.301 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.2978, allocations: 0.9062 kB / 435.8 MB, free: 6.301 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.145e-05/0.2979, allocations: 14.22 kB / 435.8 MB, free: 6.301 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.167e-05/0.2979, allocations: 12.66 kB / 435.8 MB, free: 6.301 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004258/0.2983, allocations: 270.4 kB / 436.1 MB, free: 6.297 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001529/0.2999, allocations: 1.675 MB / 437.7 MB, free: 5.234 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004968/0.3003, allocations: 269.3 kB / 438 MB, free: 5.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001949/0.3005, allocations: 111.8 kB / 438.1 MB, free: 5.133 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.191e-05/0.3006, allocations: 10.89 kB / 438.1 MB, free: 5.133 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003914/0.301, allocations: 319.2 kB / 438.4 MB, free: 4.965 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.593e-06/0.301, allocations: 0 / 438.4 MB, free: 4.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.0008524/0.3018, allocations: 476.2 kB / 438.9 MB, free: 4.871 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.847e-05/0.3019, allocations: 165.8 kB / 439.1 MB, free: 4.684 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004703/0.3023, allocations: 0.4893 MB / 439.6 MB, free: 4.547 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.078e-05/0.3024, allocations: 40.05 kB / 439.6 MB, free: 4.516 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.3025, allocations: 239.5 kB / 439.8 MB, free: 4.375 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.985e-05/0.3026, allocations: 91.42 kB / 439.9 MB, free: 4.312 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001359/0.3027, allocations: 119.1 kB / 440 MB, free: 4.254 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.895e-05/0.3028, allocations: 360.7 kB / 440.4 MB, free: 3.918 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002371/0.303, allocations: 113.8 kB / 440.5 MB, free: 3.887 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002668/0.3033, allocations: 267.7 kB / 440.8 MB, free: 3.676 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004198/0.3037, allocations: 404.7 kB / 441.2 MB, free: 3.375 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.3037, allocations: 1.188 kB / 441.2 MB, free: 3.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0006607/0.3044, allocations: 466.9 kB / 441.6 MB, free: 3.188 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.758e-05/0.3044, allocations: 39.44 kB / 441.6 MB, free: 3.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.3044, allocations: 3.844 kB / 441.7 MB, free: 3.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.99e-05/0.3044, allocations: 8.422 kB / 441.7 MB, free: 3.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000133/0.3045, allocations: 42.89 kB / 441.7 MB, free: 3.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.24e-05/0.3046, allocations: 8.016 kB / 441.7 MB, free: 3.148 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002205/0.3048, allocations: 52.52 kB / 441.8 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.348e-05/0.3048, allocations: 21.83 kB / 441.8 MB, free: 3.117 MB / 350.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.0002047/0.305, allocations: 255.7 kB / 442 MB, free: 2.922 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.472e-05/0.3051, allocations: 51.38 kB / 442.1 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003952/0.3055, allocations: 234.1 kB / 442.3 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.3055, allocations: 3.969 kB / 442.3 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.3055, allocations: 1.156 kB / 442.3 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.682e-06/0.3055, allocations: 2.781 kB / 442.3 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008981/0.3064, allocations: 0.7464 MB / 443.1 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.137e-06/0.3064, allocations: 1.75 kB / 443.1 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.946e-05/0.3065, allocations: 21.53 kB / 443.1 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.509e-06/0.3065, allocations: 2.188 kB / 443.1 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.831e-05/0.3065, allocations: 10.78 kB / 443.1 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.26e-06/0.3065, allocations: 5.391 kB / 443.1 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.3065, allocations: 8.094 kB / 443.1 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000668/0.3072, allocations: 0.4894 MB / 443.6 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.886e-05/0.3072, allocations: 124.1 kB / 443.7 MB, free: 1.914 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.839e-05/0.3073, allocations: 10.36 kB / 443.7 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002031/0.3075, allocations: 22.27 kB / 443.8 MB, free: 1.906 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001192/0.3076, allocations: 48.62 kB / 443.8 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.74e-05/0.3076, allocations: 11.88 kB / 443.8 MB, free: 1.891 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003155/0.3079, allocations: 335.8 kB / 444.1 MB, free: 1.734 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3079, allocations: 0 / 444.1 MB, free: 1.734 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004203/0.3084, allocations: 116.7 kB / 444.3 MB, free: 1.703 MB / 350.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.002162/0.3105, allocations: 1.387 MB / 445.6 MB, free: 0.793 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006098/0.3111, allocations: 369.1 kB / 446 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3111, allocations: 5.031 kB / 446 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002772/0.3114, allocations: 197.4 kB / 446.2 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005022/0.3119, allocations: 78.64 kB / 446.3 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0053/0.3172, allocations: 4.023 MB / 450.3 MB, free: 14.08 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005139/0.3177, allocations: 0.846 MB / 451.1 MB, free: 13.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002026/0.3179, allocations: 74.19 kB / 451.2 MB, free: 13.35 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002335/0.3182, allocations: 157.8 kB / 451.4 MB, free: 13.24 MB / 366.1 MB Notification: Performance of SimCode: time 4.3e-07/0.3182, allocations: 5.281 kB / 451.4 MB, free: 13.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03421/0.3524, allocations: 9.952 MB / 461.3 MB, free: 9.898 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.589/8.941, allocations: 26.78 kB / 461.4 MB, free: 9.883 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_BooleanNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00197981 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_BooleanNetwork1.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.296825876983348] 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.121790887962561 9.139334252 8.840635891 Calling exit ...