Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001715/0.001715, allocations: 108.6 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00195/0.00195, allocations: 192.8 kB / 24.5 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.335/1.335, allocations: 225.7 MB / 253.3 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 43.92 kB / 371.2 MB, free: 9.887 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2244/0.2258, allocations: 52.19 MB / 423.4 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003242/0.2291, allocations: 2.019 MB / 425.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001824/0.2309, allocations: 1.169 MB / 426.6 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.52e-05/0.231, allocations: 3.938 kB / 426.6 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007815/0.2318, allocations: 313.9 kB / 426.9 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004238/0.2322, allocations: 215.2 kB / 427.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006517/0.2328, allocations: 290.5 kB / 427.4 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00038/0.2332, allocations: 339.2 kB / 427.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001192/0.2333, allocations: 36.56 kB / 427.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001903/0.2335, allocations: 151.4 kB / 427.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001983/0.2337, allocations: 163.4 kB / 428.1 MB, free: 9.957 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.112e-05/0.2338, allocations: 16 kB / 428.1 MB, free: 9.941 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001833/0.2339, allocations: 91.88 kB / 428.2 MB, free: 9.852 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000107/0.2341, allocations: 87.69 kB / 428.3 MB, free: 9.766 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001264/0.2342, allocations: 123.3 kB / 428.4 MB, free: 9.645 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004251/0.2346, allocations: 355.3 kB / 428.7 MB, free: 9.305 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2346, allocations: 0 / 428.7 MB, free: 9.305 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.2346, allocations: 0 / 428.7 MB, free: 9.305 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.2346, allocations: 0 / 428.7 MB, free: 9.305 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.001004/0.2356, allocations: 0.6011 MB / 429.3 MB, free: 8.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.2357, allocations: 12.03 kB / 429.3 MB, free: 8.648 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.385e-05/0.2357, allocations: 192 / 429.3 MB, free: 8.648 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.256e-05/0.2357, allocations: 42.73 kB / 429.4 MB, free: 8.598 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.361e-05/0.2358, allocations: 36.7 kB / 429.4 MB, free: 8.562 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004385/0.2362, allocations: 273.8 kB / 429.7 MB, free: 8.273 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.091e-05/0.2363, allocations: 12 kB / 429.7 MB, free: 8.262 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.285e-05/0.2363, allocations: 8 kB / 429.7 MB, free: 8.254 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000306/0.2366, allocations: 151.6 kB / 429.9 MB, free: 8.094 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.2366, allocations: 0 / 429.9 MB, free: 8.094 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.729e-05/0.2366, allocations: 4 kB / 429.9 MB, free: 8.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.68e-06/0.2366, allocations: 0 / 429.9 MB, free: 8.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001697/0.2368, allocations: 67.97 kB / 429.9 MB, free: 8.023 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007362/0.2375, allocations: 475.3 kB / 430.4 MB, free: 7.516 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003374/0.2379, allocations: 130.6 kB / 430.5 MB, free: 7.379 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001182/0.238, allocations: 48.77 kB / 430.6 MB, free: 7.328 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.712e-05/0.238, allocations: 4 kB / 430.6 MB, free: 7.324 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002491/0.2383, allocations: 119.3 kB / 430.7 MB, free: 7.195 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.382e-06/0.2383, allocations: 3.938 kB / 430.7 MB, free: 7.191 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005292/0.2388, allocations: 216.8 kB / 430.9 MB, free: 6.977 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.638e-05/0.2389, allocations: 110.8 kB / 431 MB, free: 6.844 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005156/0.2394, allocations: 424.5 kB / 431.4 MB, free: 6.422 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.845e-05/0.2394, allocations: 33.7 kB / 431.5 MB, free: 6.383 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001436/0.2396, allocations: 175.9 kB / 431.6 MB, free: 6.207 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.403e-05/0.2396, allocations: 35.73 kB / 431.7 MB, free: 6.172 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.818e-05/0.2397, allocations: 41.7 kB / 431.7 MB, free: 6.125 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.2398, allocations: 342.8 kB / 432 MB, free: 5.781 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001096/0.2399, allocations: 47.94 kB / 432.1 MB, free: 5.734 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001542/0.2401, allocations: 109.9 kB / 432.2 MB, free: 5.605 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002059/0.2403, allocations: 102.6 kB / 432.3 MB, free: 5.496 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.2403, allocations: 3.938 kB / 432.3 MB, free: 5.492 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003215/0.2406, allocations: 180.7 kB / 432.5 MB, free: 5.312 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.2406, allocations: 4 kB / 432.5 MB, free: 5.309 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.2406, allocations: 4.062 kB / 432.5 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.2407, allocations: 4 kB / 432.5 MB, free: 5.301 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.2408, allocations: 23.92 kB / 432.5 MB, free: 5.277 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.2408, allocations: 4 kB / 432.5 MB, free: 5.273 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.688e-05/0.2409, allocations: 15.94 kB / 432.5 MB, free: 5.258 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.484e-05/0.2409, allocations: 8 kB / 432.5 MB, free: 5.25 MB / 334.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.0001629/0.2411, allocations: 171.5 kB / 432.7 MB, free: 5.074 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.773e-05/0.2411, allocations: 35.8 kB / 432.7 MB, free: 5.039 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003703/0.2415, allocations: 184.5 kB / 432.9 MB, free: 4.848 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.2415, allocations: 0 / 432.9 MB, free: 4.848 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.2415, allocations: 0 / 432.9 MB, free: 4.848 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.2415, allocations: 0 / 432.9 MB, free: 4.848 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002935/0.2418, allocations: 280.4 kB / 433.2 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.2418, allocations: 4 kB / 433.2 MB, free: 4.527 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.793e-05/0.2418, allocations: 7.938 kB / 433.2 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.2418, allocations: 3.984 kB / 433.2 MB, free: 4.516 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.364e-05/0.2418, allocations: 8 kB / 433.2 MB, free: 4.508 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.2418, allocations: 4 kB / 433.2 MB, free: 4.504 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2418, allocations: 0 / 433.2 MB, free: 4.504 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003421/0.2422, allocations: 196.8 kB / 433.4 MB, free: 4.293 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.334e-05/0.2422, allocations: 35.69 kB / 433.4 MB, free: 4.258 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.221e-05/0.2423, allocations: 8 kB / 433.5 MB, free: 4.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.301e-05/0.2424, allocations: 11.98 kB / 433.5 MB, free: 4.238 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.148e-05/0.2424, allocations: 15.97 kB / 433.5 MB, free: 4.223 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.944e-05/0.2424, allocations: 15.94 kB / 433.5 MB, free: 4.207 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003515/0.2428, allocations: 311 kB / 433.8 MB, free: 3.902 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2428, allocations: 0 / 433.8 MB, free: 3.902 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00029/0.2431, allocations: 55.88 kB / 433.9 MB, free: 3.848 MB / 334.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 (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.001998/0.2451, allocations: 1.051 MB / 434.9 MB, free: 2.926 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003017/0.2454, allocations: 119.3 kB / 435 MB, free: 2.812 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2454, allocations: 0 / 435 MB, free: 2.812 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001319/0.2455, allocations: 55.91 kB / 435.1 MB, free: 2.758 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000417/0.2459, allocations: 71 kB / 435.1 MB, free: 2.691 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003439/0.2494, allocations: 2.82 MB / 438 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000418/0.2498, allocations: 0.779 MB / 438.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001295/0.2499, allocations: 42.25 kB / 438.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001538/0.2501, allocations: 95.41 kB / 438.9 MB, free: 14.83 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2501, allocations: 0 / 438.9 MB, free: 14.83 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02807/0.2781, allocations: 7.458 MB / 446.3 MB, free: 7.461 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.33, allocations: 13.59 kB / 446.4 MB, free: 7.453 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00199601 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.630706788040698] Failed to read output from testmodel.py, exit status != 0: ['time', 'Pre1.u', 'table1.y', 'table2.y'] 11.545445478986949 11.564617178 11.326787037 Calling exit ...