Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001268/0.001268, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.001393/0.001393, allocations: 213.7 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.417/1.417, allocations: 230.6 MB / 258.3 MB, free: 8.043 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-beta.om/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_4_1_0-beta_om_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001934/0.001934, allocations: 64.77 kB / 378.5 MB, free: 3.195 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2466/0.2485, allocations: 53.37 MB / 431.9 MB, free: 6.902 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003509/0.252, allocations: 2.061 MB / 434 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002157/0.2542, allocations: 1.306 MB / 435.3 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001025/0.2543, allocations: 7.938 kB / 435.3 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008344/0.2551, allocations: 315.1 kB / 435.6 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005321/0.2557, allocations: 259.1 kB / 435.8 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005054/0.2562, allocations: 230 kB / 436.1 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004111/0.2566, allocations: 363.1 kB / 436.4 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001376/0.2567, allocations: 40.91 kB / 436.5 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001988/0.2569, allocations: 151.4 kB / 436.6 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002101/0.2571, allocations: 163.3 kB / 436.8 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.326e-05/0.2572, allocations: 16 kB / 436.8 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001831/0.2574, allocations: 99.86 kB / 436.9 MB, free: 1.914 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001126/0.2575, allocations: 87.69 kB / 437 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001288/0.2576, allocations: 131.2 kB / 437.1 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000444/0.258, allocations: 363.3 kB / 437.4 MB, free: 1.352 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.258, allocations: 3.938 kB / 437.5 MB, free: 1.348 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.258, allocations: 4 kB / 437.5 MB, free: 1.344 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.2581, allocations: 0 / 437.5 MB, free: 1.344 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.0009644/0.259, allocations: 0.6088 MB / 438.1 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.2591, allocations: 8.031 kB / 438.1 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.022e-05/0.2591, allocations: 38.75 kB / 438.1 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.325e-05/0.2592, allocations: 40.69 kB / 438.2 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004275/0.2596, allocations: 284.7 kB / 438.4 MB, free: 300 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.918e-05/0.2596, allocations: 12.38 kB / 438.4 MB, free: 288 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.038e-05/0.2597, allocations: 15.94 kB / 438.5 MB, free: 272 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002907/0.2599, allocations: 152 kB / 438.6 MB, free: 104 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.916e-06/0.26, allocations: 0 / 438.6 MB, free: 104 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.548e-05/0.26, allocations: 4 kB / 438.6 MB, free: 100 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.26, allocations: 4 kB / 438.6 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001757/0.2601, allocations: 67.95 kB / 438.7 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007115/0.2609, allocations: 467.5 kB / 439.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003183/0.2612, allocations: 126.7 kB / 439.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001181/0.2613, allocations: 44.84 kB / 439.3 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.222e-05/0.2613, allocations: 4 kB / 439.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002275/0.2615, allocations: 111.3 kB / 439.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.412e-06/0.2615, allocations: 4 kB / 439.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005041/0.2621, allocations: 220.8 kB / 439.6 MB, free: 15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.91e-05/0.2621, allocations: 106.8 kB / 439.7 MB, free: 14.87 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005298/0.2627, allocations: 461.6 kB / 440.2 MB, free: 14.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.75e-05/0.2627, allocations: 29.7 kB / 440.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001418/0.2628, allocations: 172 kB / 440.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.316e-05/0.2629, allocations: 43.67 kB / 440.4 MB, free: 14.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.172e-05/0.2629, allocations: 41.7 kB / 440.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.2631, allocations: 342.8 kB / 440.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001129/0.2632, allocations: 47.97 kB / 440.9 MB, free: 13.72 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001514/0.2634, allocations: 102 kB / 441 MB, free: 13.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002066/0.2636, allocations: 106.5 kB / 441.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2636, allocations: 0 / 441.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003144/0.2639, allocations: 181.3 kB / 441.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.2639, allocations: 11.92 kB / 441.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.087e-06/0.2639, allocations: 0 / 441.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.2639, allocations: 4 kB / 441.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.264, allocations: 19.94 kB / 441.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.927e-06/0.264, allocations: 11.92 kB / 441.3 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.285e-05/0.2641, allocations: 19.89 kB / 441.3 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.155e-05/0.2641, allocations: 4 kB / 441.3 MB, free: 13.23 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.0001672/0.2643, allocations: 175.6 kB / 441.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.432e-05/0.2644, allocations: 35.75 kB / 441.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003713/0.2647, allocations: 188.4 kB / 441.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.2647, allocations: 7.984 kB / 441.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.2647, allocations: 0 / 441.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.2647, allocations: 0 / 441.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003231/0.2651, allocations: 276.5 kB / 442 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.2651, allocations: 0 / 442 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.871e-05/0.2651, allocations: 7.984 kB / 442 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.581e-06/0.2651, allocations: 11.94 kB / 442 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.197e-05/0.2651, allocations: 4 kB / 442 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.2651, allocations: 0 / 442 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2651, allocations: 48 / 442 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003421/0.2655, allocations: 212 kB / 442.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.655e-05/0.2655, allocations: 35.7 kB / 442.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.978e-05/0.2656, allocations: 7.984 kB / 442.2 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.056e-05/0.2656, allocations: 16 kB / 442.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.228e-05/0.2657, allocations: 11.97 kB / 442.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.8e-05/0.2657, allocations: 8 kB / 442.3 MB, free: 12.19 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003682/0.2661, allocations: 331.1 kB / 442.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2661, allocations: 0 / 442.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002641/0.2664, allocations: 47.94 kB / 442.6 MB, free: 11.82 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.001989/0.2683, allocations: 1.074 MB / 443.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000297/0.2686, allocations: 115.9 kB / 443.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2686, allocations: 0 / 443.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001253/0.2688, allocations: 51.92 kB / 443.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003866/0.2692, allocations: 79.39 kB / 444 MB, free: 10.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003538/0.2727, allocations: 2.867 MB / 446.8 MB, free: 7.676 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003929/0.2731, allocations: 0.7791 MB / 447.6 MB, free: 6.871 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000119/0.2732, allocations: 50.25 kB / 447.7 MB, free: 6.824 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000145/0.2733, allocations: 99.39 kB / 447.8 MB, free: 6.727 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2733, allocations: 0 / 447.8 MB, free: 6.727 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.036/0.3093, allocations: 7.498 MB / 455.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.263/8.572, allocations: 3.938 kB / 455.3 MB, free: 15.28 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00199601 Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.011689059901983] Failed to read output from testmodel.py, exit status != 0: ['time', 'Pre1.u', 'table1.y', 'table2.y'] 8.71461647702381 8.731802238 8.470400917 Calling exit ...