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.001462/0.001462, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001419/0.001419, allocations: 211.9 kB / 24.51 MB, free: 3.941 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.33/1.33, allocations: 230.6 MB / 258.3 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 179] 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.001405/0.001405, allocations: 51.92 kB / 378.5 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.236/0.2374, allocations: 53.37 MB / 431.9 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003577/0.241, allocations: 1.966 MB / 433.8 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002324/0.2433, allocations: 1.224 MB / 435 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001195/0.2434, allocations: 7.875 kB / 435 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009637/0.2444, allocations: 318.4 kB / 435.4 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006092/0.245, allocations: 259.1 kB / 435.6 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005853/0.2456, allocations: 238.3 kB / 435.8 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004656/0.2461, allocations: 363.1 kB / 436.2 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001528/0.2462, allocations: 36.72 kB / 436.2 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001835/0.2464, allocations: 155.4 kB / 436.4 MB, free: 2.086 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002333/0.2466, allocations: 167.3 kB / 436.6 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.221e-05/0.2467, allocations: 24 kB / 436.6 MB, free: 1.898 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001804/0.2468, allocations: 83.94 kB / 436.7 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000131/0.247, allocations: 99.66 kB / 436.8 MB, free: 1.719 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001195/0.2471, allocations: 91.41 kB / 436.8 MB, free: 1.629 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004668/0.2476, allocations: 372.7 kB / 437.2 MB, free: 1.266 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.2476, allocations: 0 / 437.2 MB, free: 1.266 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2476, allocations: 3.938 kB / 437.2 MB, free: 1.262 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.2476, allocations: 0 / 437.2 MB, free: 1.262 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.0009463/0.2485, allocations: 0.605 MB / 437.8 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.2486, allocations: 8.031 kB / 437.8 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.534e-05/0.2486, allocations: 16.12 kB / 437.8 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.87e-05/0.2486, allocations: 38.75 kB / 437.9 MB, free: 0.543 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.088e-05/0.2487, allocations: 36.7 kB / 437.9 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004262/0.2491, allocations: 272.8 kB / 438.2 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.2492, allocations: 16.12 kB / 438.2 MB, free: 204 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.779e-05/0.2492, allocations: 15.98 kB / 438.2 MB, free: 188 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003522/0.2495, allocations: 205 kB / 438.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.829e-06/0.2495, allocations: 0 / 438.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.543e-05/0.2496, allocations: 0 / 438.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.2496, allocations: 4 kB / 438.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001905/0.2498, allocations: 83.95 kB / 438.5 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006805/0.2504, allocations: 439.6 kB / 438.9 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003182/0.2508, allocations: 126.7 kB / 439 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001114/0.2509, allocations: 52.83 kB / 439.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.545e-05/0.2509, allocations: 0 / 439.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002423/0.2511, allocations: 123.2 kB / 439.2 MB, free: 15.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.303e-06/0.2511, allocations: 0 / 439.2 MB, free: 15.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005188/0.2516, allocations: 232.5 kB / 439.4 MB, free: 14.85 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.727e-05/0.2517, allocations: 110.8 kB / 439.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005123/0.2522, allocations: 457.6 kB / 440 MB, free: 14.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.96e-05/0.2523, allocations: 33.7 kB / 440 MB, free: 14.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001406/0.2524, allocations: 175.9 kB / 440.2 MB, free: 14.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.262e-05/0.2525, allocations: 39.69 kB / 440.2 MB, free: 14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.688e-05/0.2525, allocations: 45.7 kB / 440.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.2527, allocations: 342.8 kB / 440.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001193/0.2528, allocations: 51.97 kB / 440.7 MB, free: 13.56 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000208/0.253, allocations: 207.5 kB / 440.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002104/0.2532, allocations: 110.5 kB / 441 MB, free: 13.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.2532, allocations: 0 / 441 MB, free: 13.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003378/0.2536, allocations: 193.2 kB / 441.2 MB, free: 13 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.2536, allocations: 4 kB / 441.2 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.2536, allocations: 4.062 kB / 441.2 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.2536, allocations: 4 kB / 441.2 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.2537, allocations: 23.92 kB / 441.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.458e-06/0.2537, allocations: 7.938 kB / 441.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.819e-05/0.2538, allocations: 19.88 kB / 441.2 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.387e-05/0.2538, allocations: 8 kB / 441.2 MB, free: 12.93 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.0001664/0.254, allocations: 167.6 kB / 441.4 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.1e-05/0.254, allocations: 35.75 kB / 441.4 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004002/0.2544, allocations: 204.4 kB / 441.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.082e-06/0.2545, allocations: 4 kB / 441.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.2545, allocations: 0 / 441.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.2545, allocations: 4.031 kB / 441.7 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002768/0.2547, allocations: 256.6 kB / 441.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.2547, allocations: 0 / 441.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.601e-05/0.2548, allocations: 23.92 kB / 441.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.2548, allocations: 0 / 441.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.336e-05/0.2548, allocations: 4 kB / 441.9 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.2548, allocations: 4 kB / 441.9 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.2548, allocations: 3.938 kB / 441.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003706/0.2552, allocations: 222.9 kB / 442.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.579e-05/0.2552, allocations: 39.67 kB / 442.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.517e-05/0.2553, allocations: 8 kB / 442.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.391e-05/0.2554, allocations: 7.984 kB / 442.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.667e-05/0.2554, allocations: 15.98 kB / 442.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.88e-05/0.2554, allocations: 7.984 kB / 442.2 MB, free: 11.87 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003581/0.2558, allocations: 335.1 kB / 442.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2558, allocations: 0 / 442.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002817/0.2561, allocations: 51.94 kB / 442.6 MB, free: 11.5 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.002105/0.2582, allocations: 1.114 MB / 443.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002868/0.2585, allocations: 127.7 kB / 443.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.2585, allocations: 0 / 443.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001306/0.2586, allocations: 59.91 kB / 443.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004203/0.259, allocations: 87.14 kB / 444 MB, free: 10.28 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003571/0.2626, allocations: 2.9 MB / 446.9 MB, free: 7.281 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001616/0.2628, allocations: 174.1 kB / 447.1 MB, free: 7.094 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001198/0.2629, allocations: 42.25 kB / 447.1 MB, free: 7.051 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000161/0.263, allocations: 107.4 kB / 447.2 MB, free: 6.945 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.263, allocations: 0 / 447.2 MB, free: 6.945 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03864/0.3017, allocations: 7.972 MB / 455.2 MB, free: 15.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.4, allocations: 11.91 kB / 455.2 MB, free: 15.08 MB / 366.1 MB " [Timeout remaining time 648] (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.718136501964182] Failed to read output from testmodel.py, exit status != 0: ['time', 'Pre1.u', 'table1.y', 'table2.y'] 11.618072350043803 11.634113816 11.38348625 Calling exit ...