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.001204/0.001204, allocations: 112.5 kB / 21.22 MB, free: 0.75 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.00132/0.00132, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.4/1.4, allocations: 230.6 MB / 258.3 MB, free: 8 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.001441/0.001441, allocations: 43.94 kB / 378.6 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2308/0.2322, allocations: 53.36 MB / 431.9 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004016/0.2362, allocations: 2.52 MB / 434.4 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002441/0.2387, allocations: 1.5 MB / 435.9 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001604/0.2388, allocations: 15.88 kB / 436 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007027/0.2395, allocations: 246.9 kB / 436.2 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004455/0.24, allocations: 211 kB / 436.4 MB, free: 2.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005784/0.2405, allocations: 275.2 kB / 436.7 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005096/0.2411, allocations: 475.7 kB / 437.1 MB, free: 1.609 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002692/0.2413, allocations: 150.1 kB / 437.3 MB, free: 1.457 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002255/0.2416, allocations: 207.2 kB / 437.5 MB, free: 1.254 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002548/0.2418, allocations: 230.9 kB / 437.7 MB, free: 1.027 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.407e-05/0.2419, allocations: 32 kB / 437.7 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002323/0.2421, allocations: 139.8 kB / 437.9 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001342/0.2422, allocations: 123.6 kB / 438 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001954/0.2424, allocations: 218.7 kB / 438.2 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006547/0.2431, allocations: 0.5735 MB / 438.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.2431, allocations: 0 / 438.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2431, allocations: 0 / 438.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.2431, allocations: 0 / 438.8 MB, free: 15.95 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.00133/0.2444, allocations: 0.7949 MB / 439.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.2445, allocations: 16.02 kB / 439.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.138e-05/0.2445, allocations: 9.188 kB / 439.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.56e-05/0.2446, allocations: 74.72 kB / 439.7 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002802/0.2448, allocations: 72.55 kB / 439.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005017/0.2453, allocations: 337.4 kB / 440.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.94e-05/0.2454, allocations: 88.52 kB / 440.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.461e-05/0.2455, allocations: 43.98 kB / 440.2 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006552/0.2461, allocations: 428.7 kB / 440.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.2461, allocations: 0 / 440.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.425e-05/0.2462, allocations: 16 kB / 440.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.579e-05/0.2462, allocations: 16.42 kB / 440.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004773/0.2467, allocations: 265.5 kB / 440.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001922/0.2486, allocations: 1.628 MB / 442.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005672/0.2492, allocations: 275.8 kB / 442.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002096/0.2494, allocations: 106.5 kB / 442.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.768e-05/0.2494, allocations: 23.92 kB / 442.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004594/0.2499, allocations: 318.1 kB / 443.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.563e-06/0.2499, allocations: 0 / 443.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.000928/0.2508, allocations: 488.6 kB / 443.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000139/0.251, allocations: 162.2 kB / 443.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000559/0.2515, allocations: 0.4897 MB / 444.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.52e-05/0.2516, allocations: 41.64 kB / 444.4 MB, free: 9.969 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001841/0.2517, allocations: 236.9 kB / 444.7 MB, free: 9.734 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.435e-05/0.2518, allocations: 87.38 kB / 444.7 MB, free: 9.648 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001556/0.252, allocations: 118.1 kB / 444.9 MB, free: 9.527 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.2522, allocations: 362.7 kB / 445.2 MB, free: 9.164 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002364/0.2524, allocations: 120.9 kB / 445.3 MB, free: 9.043 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003448/0.2527, allocations: 266 kB / 445.6 MB, free: 8.723 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005287/0.2533, allocations: 398.5 kB / 446 MB, free: 8.266 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.2533, allocations: 256 / 446 MB, free: 8.266 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007487/0.254, allocations: 478.8 kB / 446.4 MB, free: 7.785 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.054e-05/0.2541, allocations: 37.7 kB / 446.5 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.2541, allocations: 7.984 kB / 446.5 MB, free: 7.734 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.157e-05/0.2541, allocations: 8 kB / 446.5 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001311/0.2542, allocations: 35.92 kB / 446.5 MB, free: 7.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.399e-05/0.2542, allocations: 11.94 kB / 446.5 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002323/0.2545, allocations: 51.69 kB / 446.6 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.61e-05/0.2545, allocations: 23.94 kB / 446.6 MB, free: 7.605 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.000265/0.2548, allocations: 244.8 kB / 446.9 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.803e-05/0.2548, allocations: 59.66 kB / 446.9 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007202/0.2556, allocations: 378.7 kB / 447.3 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.096e-05/0.2556, allocations: 4 kB / 447.3 MB, free: 6.906 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.2556, allocations: 8 kB / 447.3 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.209e-06/0.2556, allocations: 0 / 447.3 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001011/0.2566, allocations: 0.7136 MB / 448 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.2566, allocations: 0 / 448 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.522e-05/0.2567, allocations: 15.98 kB / 448 MB, free: 6.117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.2567, allocations: 4 kB / 448 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.594e-05/0.2567, allocations: 8 kB / 448 MB, free: 6.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.2567, allocations: 7.938 kB / 448 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2567, allocations: 0 / 448 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007462/0.2574, allocations: 0.4925 MB / 448.5 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.35e-05/0.2575, allocations: 43.72 kB / 448.6 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.446e-05/0.2576, allocations: 19.98 kB / 448.6 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001963/0.2578, allocations: 19.98 kB / 448.6 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001144/0.2579, allocations: 51.88 kB / 448.7 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.311e-05/0.2579, allocations: 19.92 kB / 448.7 MB, free: 5.426 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000355/0.2583, allocations: 331.1 kB / 449 MB, free: 5.105 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2583, allocations: 0 / 449 MB, free: 5.105 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004344/0.2587, allocations: 111.8 kB / 449.1 MB, free: 4.996 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,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,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.002521/0.2612, allocations: 1.377 MB / 450.5 MB, free: 3.742 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007141/0.2619, allocations: 376 kB / 450.9 MB, free: 3.363 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.2619, allocations: 0 / 450.9 MB, free: 3.363 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003292/0.2623, allocations: 195.2 kB / 451.1 MB, free: 3.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005954/0.2629, allocations: 85.53 kB / 451.1 MB, free: 3.078 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005645/0.2685, allocations: 4.037 MB / 455.2 MB, free: 14.83 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005258/0.269, allocations: 0.8356 MB / 456 MB, free: 13.97 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002396/0.2693, allocations: 75.2 kB / 456.1 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002396/0.2695, allocations: 163.4 kB / 456.2 MB, free: 13.73 MB / 366.1 MB Notification: Performance of SimCode: time 7.02e-07/0.2695, allocations: 0 / 456.2 MB, free: 13.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04795/0.3175, allocations: 10.32 MB / 466.6 MB, free: 3.531 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.51, allocations: 7.984 kB / 466.6 MB, free: 3.523 MB / 366.1 MB " [Timeout remaining time 648] (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: 13.911398969008587] 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]'] 11.744916121009737 11.771039768 11.523043065 Calling exit ...