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.001193/0.001193, allocations: 120.2 kB / 18.49 MB, free: 4.559 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.001192/0.001192, allocations: 214.2 kB / 21.46 MB, free: 1.605 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.578/1.578, allocations: 230.4 MB / 254.7 MB, free: 15.18 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.001941/0.001941, allocations: 63.91 kB / 373.7 MB, free: 10.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1586/0.1606, allocations: 53.38 MB / 427 MB, free: 4.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.004287/0.1648, allocations: 2.054 MB / 429.1 MB, free: 2.598 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002611/0.1675, allocations: 1.282 MB / 430.4 MB, free: 1.309 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001484/0.1676, allocations: 7.938 kB / 430.4 MB, free: 1.301 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001079/0.1687, allocations: 307.1 kB / 430.7 MB, free: 1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006766/0.1694, allocations: 255.1 kB / 430.9 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007218/0.1701, allocations: 225.7 kB / 431.2 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004773/0.1706, allocations: 363 kB / 431.5 MB, free: 180 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001712/0.1707, allocations: 40.67 kB / 431.6 MB, free: 136 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002524/0.171, allocations: 155.4 kB / 431.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002372/0.1712, allocations: 163.3 kB / 431.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.663e-05/0.1713, allocations: 16 kB / 431.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002098/0.1715, allocations: 83.94 kB / 432 MB, free: 15.72 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001353/0.1716, allocations: 95.62 kB / 432.1 MB, free: 15.63 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001494/0.1717, allocations: 123.2 kB / 432.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005616/0.1723, allocations: 370.4 kB / 432.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1723, allocations: 4 kB / 432.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.1723, allocations: 0 / 432.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.526e-05/0.1723, allocations: 0 / 432.5 MB, free: 15.14 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.00125/0.1736, allocations: 0.6763 MB / 433.2 MB, free: 14.4 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.445e-05/0.1736, allocations: 12.03 kB / 433.2 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.023e-05/0.1737, allocations: 4.188 kB / 433.2 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.457e-05/0.1737, allocations: 46.73 kB / 433.3 MB, free: 14.33 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.736e-05/0.1738, allocations: 36.7 kB / 433.3 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000526/0.1743, allocations: 342.6 kB / 433.6 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.633e-05/0.1744, allocations: 12.38 kB / 433.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.275e-05/0.1744, allocations: 12.36 kB / 433.7 MB, free: 13.9 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003617/0.1747, allocations: 151.9 kB / 433.8 MB, free: 13.74 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.1748, allocations: 3.984 kB / 433.8 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.362e-05/0.1748, allocations: 11.98 kB / 433.8 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.1748, allocations: 0 / 433.8 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001862/0.175, allocations: 67.97 kB / 433.9 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008099/0.1758, allocations: 0.4925 MB / 434.4 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003684/0.1762, allocations: 126.7 kB / 434.5 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001216/0.1763, allocations: 44.84 kB / 434.6 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.063e-05/0.1763, allocations: 7.984 kB / 434.6 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002716/0.1766, allocations: 104.9 kB / 434.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.643e-06/0.1766, allocations: 0 / 434.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005798/0.1772, allocations: 226.8 kB / 434.9 MB, free: 12.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.423e-05/0.1773, allocations: 110.7 kB / 435 MB, free: 12.45 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005772/0.1778, allocations: 457.6 kB / 435.4 MB, free: 12 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.401e-05/0.1779, allocations: 33.7 kB / 435.5 MB, free: 11.96 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001738/0.1781, allocations: 160.1 kB / 435.6 MB, free: 11.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.835e-05/0.1781, allocations: 47.67 kB / 435.7 MB, free: 11.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.331e-05/0.1782, allocations: 41.7 kB / 435.7 MB, free: 11.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001833/0.1784, allocations: 350.8 kB / 436.1 MB, free: 11.35 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001102/0.1785, allocations: 39.98 kB / 436.1 MB, free: 11.31 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001705/0.1787, allocations: 101.9 kB / 436.2 MB, free: 11.19 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002179/0.1789, allocations: 106.5 kB / 436.3 MB, free: 11.08 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1789, allocations: 0 / 436.3 MB, free: 11.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003487/0.1792, allocations: 182.8 kB / 436.5 MB, free: 10.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.396e-05/0.1792, allocations: 8 kB / 436.5 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.707e-06/0.1793, allocations: 3.938 kB / 436.5 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.128e-05/0.1793, allocations: 0 / 436.5 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001431/0.1794, allocations: 27.98 kB / 436.5 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.1794, allocations: 3.938 kB / 436.5 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001073/0.1795, allocations: 23.95 kB / 436.6 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.014e-05/0.1796, allocations: 11.98 kB / 436.6 MB, free: 10.82 MB / 366.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.0002051/0.1798, allocations: 163.6 kB / 436.7 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.361e-05/0.1798, allocations: 31.81 kB / 436.8 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.414e-05/0.1799, allocations: 38.91 kB / 436.8 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.022e-06/0.1799, allocations: 3.984 kB / 436.8 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.1799, allocations: 0 / 436.8 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.1799, allocations: 0 / 436.8 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003554/0.1803, allocations: 309.4 kB / 437.1 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.1803, allocations: 0 / 437.1 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.777e-05/0.1803, allocations: 19.92 kB / 437.1 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.1803, allocations: 3.938 kB / 437.1 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.521e-05/0.1803, allocations: 3.938 kB / 437.1 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.1803, allocations: 4 kB / 437.1 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1803, allocations: 0 / 437.1 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003773/0.1807, allocations: 202.2 kB / 437.3 MB, free: 9.977 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.255e-05/0.1808, allocations: 104.9 kB / 437.4 MB, free: 9.855 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.667e-05/0.1808, allocations: 11.92 kB / 437.4 MB, free: 9.844 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.967e-05/0.1809, allocations: 12 kB / 437.5 MB, free: 9.832 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.718e-05/0.181, allocations: 7.984 kB / 437.5 MB, free: 9.824 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.389e-05/0.181, allocations: 11.98 kB / 437.5 MB, free: 9.812 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003967/0.1814, allocations: 331.1 kB / 437.8 MB, free: 9.488 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1814, allocations: 0 / 437.8 MB, free: 9.488 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003166/0.1818, allocations: 59.83 kB / 437.9 MB, free: 9.43 MB / 366.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,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * 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.002356/0.1841, allocations: 1.061 MB / 438.9 MB, free: 8.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003684/0.1845, allocations: 111.9 kB / 439 MB, free: 8.371 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.1845, allocations: 4 kB / 439 MB, free: 8.367 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001394/0.1846, allocations: 63.91 kB / 439.1 MB, free: 8.305 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004666/0.1851, allocations: 76.77 kB / 439.2 MB, free: 8.234 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003951/0.189, allocations: 2.866 MB / 442 MB, free: 5.262 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004712/0.1895, allocations: 0.7753 MB / 442.8 MB, free: 4.461 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001502/0.1897, allocations: 46.25 kB / 442.9 MB, free: 4.418 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001795/0.1898, allocations: 103.4 kB / 443 MB, free: 4.316 MB / 366.1 MB Notification: Performance of SimCode: time 9.52e-07/0.1898, allocations: 0 / 443 MB, free: 4.316 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2871/0.4769, allocations: 7.41 MB / 450.4 MB, free: 24.14 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.657/9.134, allocations: 13 kB / 450.4 MB, free: 24.14 MB / 366.1 MB " [Timeout remaining time 651] (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: 11.737361650972161] Failed to read output from testmodel.py, exit status != 0: ['time', 'Pre1.u', 'table1.y', 'table2.y'] 9.311412333045155 9.32483931 9.150039775 Calling exit ...