Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.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.001511/0.001511, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.00169/0.00169, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.346/1.346, allocations: 230.6 MB / 258.3 MB, free: 8.02 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.LogicalNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 43.94 kB / 378.6 MB, free: 3.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2176/0.2191, allocations: 53.35 MB / 431.9 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.00351/0.2226, allocations: 2.063 MB / 434 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002227/0.2248, allocations: 1.302 MB / 435.3 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000104/0.2249, allocations: 7.938 kB / 435.3 MB, free: 3.469 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008659/0.2258, allocations: 318.4 kB / 435.6 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005168/0.2263, allocations: 255.1 kB / 435.8 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005007/0.2268, allocations: 235.5 kB / 436.1 MB, free: 2.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003868/0.2272, allocations: 359.1 kB / 436.4 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001327/0.2273, allocations: 36.92 kB / 436.5 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001857/0.2275, allocations: 151.4 kB / 436.6 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002023/0.2277, allocations: 163.3 kB / 436.8 MB, free: 1.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.148e-05/0.2278, allocations: 20 kB / 436.8 MB, free: 1.961 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001896/0.2279, allocations: 95.92 kB / 436.9 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001049/0.228, allocations: 87.62 kB / 437 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001382/0.2282, allocations: 131.2 kB / 437.1 MB, free: 1.652 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004468/0.2286, allocations: 371.3 kB / 437.5 MB, free: 1.297 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2286, allocations: 0 / 437.5 MB, free: 1.297 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.2286, allocations: 3.938 kB / 437.5 MB, free: 1.293 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.228e-05/0.2287, allocations: 0 / 437.5 MB, free: 1.293 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.001017/0.2297, allocations: 0.6011 MB / 438.1 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.2297, allocations: 8.031 kB / 438.1 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.54e-05/0.2297, allocations: 8.188 kB / 438.1 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.958e-05/0.2298, allocations: 42.69 kB / 438.1 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.017e-05/0.2298, allocations: 44.69 kB / 438.2 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004135/0.2302, allocations: 276.8 kB / 438.4 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.289e-05/0.2303, allocations: 16.12 kB / 438.4 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.398e-05/0.2303, allocations: 12 kB / 438.5 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002807/0.2306, allocations: 149.6 kB / 438.6 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.286e-06/0.2306, allocations: 0 / 438.6 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.658e-05/0.2306, allocations: 4 kB / 438.6 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.2306, allocations: 7.984 kB / 438.6 MB, free: 44 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001804/0.2308, allocations: 67.97 kB / 438.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006658/0.2314, allocations: 471.4 kB / 439.1 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003087/0.2318, allocations: 133.8 kB / 439.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001031/0.2319, allocations: 40.84 kB / 439.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.095e-05/0.2319, allocations: 0 / 439.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002253/0.2321, allocations: 115.3 kB / 439.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.382e-06/0.2321, allocations: 0 / 439.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004863/0.2326, allocations: 226.7 kB / 439.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.193e-05/0.2327, allocations: 102.8 kB / 439.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005166/0.2332, allocations: 457.6 kB / 440.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.771e-05/0.2332, allocations: 37.64 kB / 440.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001363/0.2333, allocations: 172 kB / 440.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.209e-05/0.2334, allocations: 39.69 kB / 440.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.472e-05/0.2335, allocations: 41.7 kB / 440.5 MB, free: 14.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.2336, allocations: 346.8 kB / 440.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001104/0.2337, allocations: 43.97 kB / 440.9 MB, free: 13.67 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00015/0.2339, allocations: 104.7 kB / 441 MB, free: 13.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002127/0.2341, allocations: 116.3 kB / 441.1 MB, free: 13.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.2341, allocations: 0 / 441.1 MB, free: 13.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003155/0.2344, allocations: 179.9 kB / 441.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.2344, allocations: 8 kB / 441.3 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.2344, allocations: 3.984 kB / 441.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.2344, allocations: 0 / 441.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.2346, allocations: 27.94 kB / 441.3 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.2346, allocations: 3.938 kB / 441.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.619e-05/0.2347, allocations: 19.94 kB / 441.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.357e-05/0.2347, allocations: 12 kB / 441.3 MB, free: 13.17 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.0001649/0.2348, allocations: 167.6 kB / 441.5 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.822e-05/0.2349, allocations: 31.75 kB / 441.5 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003658/0.2353, allocations: 192.4 kB / 441.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.2353, allocations: 0 / 441.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.2353, allocations: 3.984 kB / 441.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.2353, allocations: 0 / 441.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002789/0.2355, allocations: 280.5 kB / 442 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.2355, allocations: 0 / 442 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.049e-05/0.2356, allocations: 15.92 kB / 442 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.2356, allocations: 0 / 442 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.545e-05/0.2356, allocations: 4 kB / 442 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.2356, allocations: 4 kB / 442 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.2356, allocations: 3.938 kB / 442 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003384/0.2359, allocations: 200.8 kB / 442.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.084e-05/0.236, allocations: 35.7 kB / 442.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.462e-05/0.236, allocations: 12 kB / 442.3 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.244e-05/0.2361, allocations: 7.984 kB / 442.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.977e-05/0.2362, allocations: 15.97 kB / 442.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.587e-05/0.2362, allocations: 4 kB / 442.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003572/0.2366, allocations: 331.1 kB / 442.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2366, allocations: 0 / 442.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002949/0.2369, allocations: 55.94 kB / 442.7 MB, free: 11.77 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 (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.001971/0.2388, allocations: 1.076 MB / 443.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002938/0.2391, allocations: 119.4 kB / 443.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2391, allocations: 0 / 443.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001251/0.2392, allocations: 60.05 kB / 443.9 MB, free: 10.65 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004108/0.2397, allocations: 76.91 kB / 444 MB, free: 10.58 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003489/0.2431, allocations: 2.87 MB / 446.9 MB, free: 7.609 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003788/0.2435, allocations: 0.7752 MB / 447.6 MB, free: 6.809 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001187/0.2436, allocations: 46.25 kB / 447.7 MB, free: 6.766 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001517/0.2438, allocations: 103.4 kB / 447.8 MB, free: 6.664 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2438, allocations: 0 / 447.8 MB, free: 6.664 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02834/0.2721, allocations: 7.614 MB / 455.4 MB, free: 15.14 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.78/11.06, allocations: 3.984 kB / 455.4 MB, free: 15.14 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00199601 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.372911610989831] Failed to read output from testmodel.py, exit status != 0: ['time', 'Pre1.u', 'table1.y', 'table2.y'] 11.267623166029807 11.283112446 11.051082451 Calling exit ...