Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.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.001472/0.001472, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.001788/0.001788, allocations: 205.5 kB / 24.51 MB, free: 3.945 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.607/1.607, allocations: 230.5 MB / 258.2 MB, free: 7.789 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.LogicalNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001894/0.001894, allocations: 55.91 kB / 378.5 MB, free: 2.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4455/0.4474, allocations: 53.4 MB / 431.9 MB, free: 6.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003945/0.4514, allocations: 1.973 MB / 433.9 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00252/0.4539, allocations: 1.227 MB / 435.1 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001208/0.454, allocations: 7.938 kB / 435.1 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009753/0.455, allocations: 307.1 kB / 435.4 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006157/0.4556, allocations: 263.1 kB / 435.7 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005892/0.4562, allocations: 238.6 kB / 435.9 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004599/0.4566, allocations: 363 kB / 436.2 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001576/0.4568, allocations: 40.7 kB / 436.3 MB, free: 2.051 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002148/0.457, allocations: 151.4 kB / 436.4 MB, free: 1.902 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002131/0.4572, allocations: 163.3 kB / 436.6 MB, free: 1.742 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.161e-05/0.4573, allocations: 20 kB / 436.6 MB, free: 1.723 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002038/0.4575, allocations: 87.88 kB / 436.7 MB, free: 1.637 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001344/0.4576, allocations: 99.66 kB / 436.8 MB, free: 1.539 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001376/0.4577, allocations: 95.34 kB / 436.9 MB, free: 1.445 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005279/0.4583, allocations: 380.7 kB / 437.3 MB, free: 1.074 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.4583, allocations: 0 / 437.3 MB, free: 1.074 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4583, allocations: 0 / 437.3 MB, free: 1.074 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.624e-06/0.4583, allocations: 0 / 437.3 MB, free: 1.074 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001144/0.4594, allocations: 0.6088 MB / 437.9 MB, free: 432 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.4595, allocations: 8.031 kB / 437.9 MB, free: 424 kB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.019e-05/0.4595, allocations: 4.188 kB / 437.9 MB, free: 420 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.785e-05/0.4595, allocations: 42.75 kB / 437.9 MB, free: 368 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.19e-05/0.4596, allocations: 36.7 kB / 438 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004685/0.4601, allocations: 276.8 kB / 438.2 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.441e-05/0.4601, allocations: 12.38 kB / 438.2 MB, free: 16 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.632e-05/0.4601, allocations: 16.3 kB / 438.3 MB, free: 0 / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003935/0.4605, allocations: 214.5 kB / 438.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.4605, allocations: 0 / 438.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.574e-05/0.4606, allocations: 0 / 438.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.4606, allocations: 4 kB / 438.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002101/0.4608, allocations: 75.95 kB / 438.5 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007471/0.4615, allocations: 443.5 kB / 439 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003448/0.4619, allocations: 126.7 kB / 439.1 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001201/0.462, allocations: 48.83 kB / 439.1 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.948e-05/0.462, allocations: 0 / 439.1 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002766/0.4623, allocations: 123.3 kB / 439.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.383e-06/0.4623, allocations: 0 / 439.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.000548/0.4628, allocations: 233.2 kB / 439.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.854e-05/0.4629, allocations: 114.8 kB / 439.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005739/0.4635, allocations: 461.5 kB / 440.1 MB, free: 14.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.452e-05/0.4635, allocations: 33.7 kB / 440.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001676/0.4637, allocations: 168 kB / 440.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.492e-05/0.4638, allocations: 39.69 kB / 440.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.428e-05/0.4638, allocations: 45.7 kB / 440.3 MB, free: 13.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.464, allocations: 342.8 kB / 440.7 MB, free: 13.42 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001111/0.4641, allocations: 47.97 kB / 440.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002289/0.4644, allocations: 211.5 kB / 440.9 MB, free: 13.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000219/0.4646, allocations: 117.6 kB / 441 MB, free: 13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.4646, allocations: 0 / 441 MB, free: 13 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003555/0.4649, allocations: 189.3 kB / 441.2 MB, free: 12.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.465, allocations: 6.656 kB / 441.2 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.465, allocations: 3.938 kB / 441.2 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.465, allocations: 7.938 kB / 441.2 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001224/0.4651, allocations: 23.92 kB / 441.3 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.4651, allocations: 8.062 kB / 441.3 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001024/0.4652, allocations: 19.88 kB / 441.3 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.309e-05/0.4652, allocations: 8 kB / 441.3 MB, free: 12.74 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,Pre1.y,Pre1.u,$PRE.Pre1.u,And1.y,Not1.y,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001872/0.4654, allocations: 171.5 kB / 441.5 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.014e-05/0.4655, allocations: 31.81 kB / 441.5 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000407/0.4659, allocations: 200.4 kB / 441.7 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.134e-06/0.4659, allocations: 4 kB / 441.7 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.4659, allocations: 0 / 441.7 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.4659, allocations: 4 kB / 441.7 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002812/0.4662, allocations: 256.6 kB / 442 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.4662, allocations: 0 / 442 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.247e-05/0.4662, allocations: 19.92 kB / 442 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.4662, allocations: 0 / 442 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.907e-05/0.4662, allocations: 7.938 kB / 442 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.4662, allocations: 4 kB / 442 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.4662, allocations: 4 kB / 442 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003679/0.4666, allocations: 216.8 kB / 442.2 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.9e-05/0.4667, allocations: 35.73 kB / 442.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.372e-05/0.4667, allocations: 11.94 kB / 442.2 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.524e-05/0.4668, allocations: 11.98 kB / 442.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.552e-05/0.4669, allocations: 15.98 kB / 442.3 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.11e-05/0.4669, allocations: 11.92 kB / 442.3 MB, free: 11.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003827/0.4673, allocations: 331.1 kB / 442.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4673, allocations: 0 / 442.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002939/0.4676, allocations: 55.94 kB / 442.7 MB, free: 11.3 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,Pre1.u,Pre1.y) * Number of discrete states: 5 (Pre1.u,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.002242/0.4698, allocations: 1.093 MB / 443.8 MB, free: 10.33 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003376/0.4701, allocations: 133.8 kB / 443.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.4701, allocations: 0 / 443.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001443/0.4703, allocations: 63.91 kB / 443.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004504/0.4707, allocations: 77.91 kB / 444 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003809/0.4745, allocations: 2.896 MB / 446.9 MB, free: 7.078 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001784/0.4747, allocations: 170.2 kB / 447.1 MB, free: 6.895 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001554/0.4749, allocations: 46.25 kB / 447.1 MB, free: 6.848 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001804/0.4751, allocations: 103.4 kB / 447.2 MB, free: 6.746 MB / 350.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4751, allocations: 0 / 447.2 MB, free: 6.746 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03223/0.5073, allocations: 7.982 MB / 455.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.83, allocations: 11.94 kB / 455.2 MB, free: 14.83 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00199601 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.596037199022248] Failed to read output from testmodel.py, exit status != 0: ['time', 'Pre1.u', 'table1.y', 'table2.y'] 12.058424098067917 12.072819096 11.611552673 Calling exit ...