Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001207/0.001207, allocations: 102.8 kB / 21.96 MB, free: 5.211 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.001236/0.001236, allocations: 214.5 kB / 25.26 MB, free: 3.129 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.306/1.306, allocations: 207.7 MB / 236.1 MB, free: 9.789 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001633/0.001633, allocations: 55.09 kB / 348 MB, free: 9.906 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.23/0.2316, allocations: 49.16 MB / 397.1 MB, free: 9.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002817/0.2345, allocations: 1.922 MB / 399 MB, free: 7.762 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001405/0.2359, allocations: 1.026 MB / 400.1 MB, free: 7.082 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.889e-05/0.236, allocations: 6.125 kB / 400.1 MB, free: 7.078 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007636/0.2367, allocations: 309 kB / 400.4 MB, free: 6.996 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003937/0.2371, allocations: 212.6 kB / 400.6 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000524/0.2376, allocations: 271.7 kB / 400.9 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00031/0.2379, allocations: 340 kB / 401.2 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001162/0.2381, allocations: 47.86 kB / 401.2 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001473/0.2382, allocations: 143.4 kB / 401.4 MB, free: 6.523 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001789/0.2384, allocations: 162 kB / 401.5 MB, free: 6.461 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.756e-05/0.2384, allocations: 18.88 kB / 401.5 MB, free: 6.461 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001731/0.2386, allocations: 87.3 kB / 401.6 MB, free: 6.441 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001079/0.2387, allocations: 93.14 kB / 401.7 MB, free: 6.395 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.263e-05/0.2388, allocations: 93.34 kB / 401.8 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003665/0.2392, allocations: 351.1 kB / 402.2 MB, free: 6.195 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.2392, allocations: 4 kB / 402.2 MB, free: 6.191 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2392, allocations: 3.938 kB / 402.2 MB, free: 6.188 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.69e-06/0.2392, allocations: 5.188 kB / 402.2 MB, free: 6.184 MB / 318.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.0007332/0.2399, allocations: 0.5904 MB / 402.8 MB, free: 5.68 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.253e-05/0.2399, allocations: 18.02 kB / 402.8 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.587e-05/0.24, allocations: 2.594 kB / 402.8 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.842e-05/0.24, allocations: 41.11 kB / 402.8 MB, free: 5.629 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.082e-05/0.2401, allocations: 36.64 kB / 402.9 MB, free: 5.609 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003184/0.2404, allocations: 269.7 kB / 403.1 MB, free: 5.398 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.803e-05/0.2404, allocations: 12.91 kB / 403.1 MB, free: 5.391 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.137e-05/0.2404, allocations: 17.73 kB / 403.1 MB, free: 5.383 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000272/0.2407, allocations: 204.5 kB / 403.3 MB, free: 5.227 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.2407, allocations: 0 / 403.3 MB, free: 5.227 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.533e-05/0.2407, allocations: 5.438 kB / 403.4 MB, free: 5.223 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.2407, allocations: 2.625 kB / 403.4 MB, free: 5.223 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001616/0.2409, allocations: 70.62 kB / 403.4 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005313/0.2414, allocations: 453.8 kB / 403.9 MB, free: 4.863 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002822/0.2417, allocations: 125.8 kB / 404 MB, free: 4.805 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001002/0.2418, allocations: 54.17 kB / 404 MB, free: 4.777 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.658e-05/0.2418, allocations: 1.125 kB / 404 MB, free: 4.777 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002093/0.242, allocations: 114.7 kB / 404.2 MB, free: 4.707 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.242, allocations: 1.062 kB / 404.2 MB, free: 4.707 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004563/0.2425, allocations: 225.8 kB / 404.4 MB, free: 4.605 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.739e-05/0.2425, allocations: 110.3 kB / 404.5 MB, free: 4.477 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004341/0.2429, allocations: 433.9 kB / 404.9 MB, free: 4.273 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.757e-05/0.243, allocations: 33.06 kB / 404.9 MB, free: 4.238 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.886e-05/0.2431, allocations: 176.4 kB / 405.1 MB, free: 4.086 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.202e-05/0.2431, allocations: 37.42 kB / 405.2 MB, free: 4.059 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.987e-05/0.2431, allocations: 47 kB / 405.2 MB, free: 4.027 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.153e-05/0.2432, allocations: 341.5 kB / 405.5 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000103/0.2433, allocations: 46.02 kB / 405.6 MB, free: 3.688 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001404/0.2435, allocations: 210.4 kB / 405.8 MB, free: 3.484 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001722/0.2436, allocations: 115.6 kB / 405.9 MB, free: 3.418 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2436, allocations: 4 kB / 405.9 MB, free: 3.414 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002774/0.2439, allocations: 184.6 kB / 406.1 MB, free: 3.32 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.2439, allocations: 5.688 kB / 406.1 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.2439, allocations: 1.156 kB / 406.1 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.2439, allocations: 1.219 kB / 406.1 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001148/0.2441, allocations: 30.7 kB / 406.1 MB, free: 3.312 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.2441, allocations: 5.156 kB / 406.1 MB, free: 3.309 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.603e-05/0.2442, allocations: 13.08 kB / 406.1 MB, free: 3.305 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.363e-05/0.2442, allocations: 13.34 kB / 406.1 MB, free: 3.297 MB / 318.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.0001177/0.2443, allocations: 164.1 kB / 406.3 MB, free: 3.16 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.225e-05/0.2443, allocations: 34.48 kB / 406.3 MB, free: 3.141 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003505/0.2447, allocations: 204.8 kB / 406.5 MB, free: 3.035 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.2447, allocations: 3.547 kB / 406.5 MB, free: 3.035 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.2447, allocations: 0 / 406.5 MB, free: 3.035 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.2447, allocations: 0.5156 kB / 406.5 MB, free: 3.035 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001929/0.2449, allocations: 254 kB / 406.8 MB, free: 2.832 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.2449, allocations: 0 / 406.8 MB, free: 2.832 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.741e-05/0.2449, allocations: 18.97 kB / 406.8 MB, free: 2.824 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.2449, allocations: 5.375 kB / 406.8 MB, free: 2.82 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.297e-05/0.2449, allocations: 6.688 kB / 406.8 MB, free: 2.816 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.2449, allocations: 6.156 kB / 406.8 MB, free: 2.812 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.2449, allocations: 0 / 406.8 MB, free: 2.812 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003017/0.2452, allocations: 213.9 kB / 407 MB, free: 2.691 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.379e-05/0.2453, allocations: 43.42 kB / 407.1 MB, free: 2.66 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.199e-05/0.2453, allocations: 3.422 kB / 407.1 MB, free: 2.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.408e-05/0.2454, allocations: 14.89 kB / 407.1 MB, free: 2.652 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.357e-05/0.2455, allocations: 25.48 kB / 407.1 MB, free: 2.641 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.755e-05/0.2455, allocations: 5.281 kB / 407.1 MB, free: 2.641 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002913/0.2458, allocations: 317.6 kB / 407.4 MB, free: 2.496 MB / 318.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2458, allocations: 0 / 407.4 MB, free: 2.496 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002715/0.2461, allocations: 58.92 kB / 407.5 MB, free: 2.48 MB / 318.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.001823/0.2479, allocations: 1.088 MB / 408.6 MB, free: 1.539 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003062/0.2482, allocations: 136.3 kB / 408.7 MB, free: 1.488 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.2482, allocations: 3.938 kB / 408.7 MB, free: 1.484 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001292/0.2483, allocations: 64.14 kB / 408.8 MB, free: 1.465 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004227/0.2487, allocations: 71.52 kB / 408.9 MB, free: 1.441 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003277/0.252, allocations: 2.841 MB / 411.7 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001869/0.2522, allocations: 172 kB / 411.9 MB, free: 15.61 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001369/0.2523, allocations: 45.61 kB / 411.9 MB, free: 15.6 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001507/0.2525, allocations: 95.03 kB / 412 MB, free: 15.54 MB / 334.1 MB Notification: Performance of SimCode: time 3.6e-07/0.2525, allocations: 1.031 kB / 412 MB, free: 15.54 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03067/0.2832, allocations: 7.824 MB / 419.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/11.27, allocations: 6.797 kB / 419.8 MB, free: 11.39 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00199601 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.55506217002403] Failed to read output from testmodel.py, exit status != 0: ['time', 'Pre1.u', 'table1.y', 'table2.y'] 11.489656075951643 11.51614467 11.272086031 Calling exit ...