Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002212/0.002212, allocations: 180.1 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.167/2.167, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001094/0.001094, allocations: 84.31 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.317e-05/2.328e-05, allocations: 4 kB / 314.9 MB, free: 9.082 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.332/0.3321, allocations: 47.57 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1256/0.4577, allocations: 78.26 MB / 440.7 MB, free: 7.957 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000268/0.4581, allocations: 71.12 kB / 440.8 MB, free: 7.891 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04009/0.4982, allocations: 8.93 MB / 449.7 MB, free: 15.02 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.4982, allocations: 0 / 449.7 MB, free: 15.02 MB / 347.1 MB Notification: Performance of Transformations before backend: time 3.938e-05/0.4983, allocations: 7.938 kB / 449.7 MB, free: 15.01 MB / 347.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.0009951/0.4993, allocations: 0.5737 MB / 450.3 MB, free: 14.38 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.4993, allocations: 8.031 kB / 450.3 MB, free: 14.37 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001117/0.4995, allocations: 36.56 kB / 450.3 MB, free: 14.34 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008006/0.5003, allocations: 347.7 kB / 450.7 MB, free: 13.96 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.57e-05/0.5003, allocations: 4 kB / 450.7 MB, free: 13.95 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.234e-05/0.5003, allocations: 4 kB / 450.7 MB, free: 13.95 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002277/0.5006, allocations: 67.94 kB / 450.7 MB, free: 13.88 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003063/0.5009, allocations: 132.2 kB / 450.9 MB, free: 13.74 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.5009, allocations: 0 / 450.9 MB, free: 13.74 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.226e-05/0.501, allocations: 0 / 450.9 MB, free: 13.74 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.501, allocations: 4 kB / 450.9 MB, free: 13.73 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001005/0.502, allocations: 488.8 kB / 451.3 MB, free: 13.22 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002943/0.5023, allocations: 119.9 kB / 451.5 MB, free: 13.09 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000114/0.5024, allocations: 40.86 kB / 451.5 MB, free: 13.05 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.584e-05/0.5025, allocations: 0 / 451.5 MB, free: 13.05 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00026/0.5027, allocations: 109 kB / 451.6 MB, free: 12.93 MB / 347.1 MB Notification: Performance of pre-optimization done (n=15): time 1.954e-06/0.5028, allocations: 0 / 451.6 MB, free: 12.93 MB / 347.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005063/0.5033, allocations: 165.2 kB / 451.8 MB, free: 12.77 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/0.5034, allocations: 110.8 kB / 451.9 MB, free: 12.63 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007446/0.5042, allocations: 377 kB / 452.2 MB, free: 12.26 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 3.591e-05/0.5042, allocations: 25.7 kB / 452.3 MB, free: 12.23 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001792/0.5044, allocations: 210.5 kB / 452.5 MB, free: 12.02 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.806e-05/0.5045, allocations: 41.52 kB / 452.5 MB, free: 11.98 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.06e-05/0.5045, allocations: 0 / 452.5 MB, free: 11.98 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.5047, allocations: 318.8 kB / 452.8 MB, free: 11.66 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001139/0.5048, allocations: 39.98 kB / 452.9 MB, free: 11.62 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001838/0.505, allocations: 90 kB / 452.9 MB, free: 11.52 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001379/0.5051, allocations: 47.92 kB / 453 MB, free: 11.47 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/0.5051, allocations: 0 / 453 MB, free: 11.47 MB / 347.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003584/0.5055, allocations: 141.3 kB / 453.1 MB, free: 11.33 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.5056, allocations: 4 kB / 453.1 MB, free: 11.32 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.649e-06/0.5056, allocations: 4 kB / 453.1 MB, free: 11.32 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.5056, allocations: 3.938 kB / 453.1 MB, free: 11.32 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002172/0.5058, allocations: 23.98 kB / 453.2 MB, free: 11.29 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.5059, allocations: 3.953 kB / 453.2 MB, free: 11.29 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002142/0.5061, allocations: 19.95 kB / 453.2 MB, free: 11.27 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.697e-05/0.5061, allocations: 11.94 kB / 453.2 MB, free: 11.26 MB / 347.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 ($whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,$PRE.Pre1.u,Pre1.u) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001282/0.5063, allocations: 118.6 kB / 453.3 MB, free: 11.13 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000382/0.5067, allocations: 157.3 kB / 453.5 MB, free: 10.97 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.271e-05/0.5068, allocations: 31.62 kB / 453.5 MB, free: 10.94 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004797/0.5072, allocations: 179.3 kB / 453.7 MB, free: 10.76 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.5073, allocations: 11.94 kB / 453.7 MB, free: 10.75 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.266e-06/0.5073, allocations: 4 kB / 453.7 MB, free: 10.74 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.5073, allocations: 1.078 kB / 453.7 MB, free: 10.74 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004026/0.5077, allocations: 293.9 kB / 454 MB, free: 10.42 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.5077, allocations: 0 / 454 MB, free: 10.42 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001001/0.5078, allocations: 11.98 kB / 454 MB, free: 10.41 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.076e-06/0.5079, allocations: 4 kB / 454 MB, free: 10.4 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.652e-05/0.5079, allocations: 0 / 454 MB, free: 10.4 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.5079, allocations: 0 / 454 MB, free: 10.4 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.5079, allocations: 0 / 454 MB, free: 10.4 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004343/0.5084, allocations: 212.5 kB / 454.2 MB, free: 10.18 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001621/0.5085, allocations: 120.7 kB / 454.3 MB, free: 10.04 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.67e-05/0.5086, allocations: 4 kB / 454.3 MB, free: 10.04 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001721/0.5088, allocations: 12.92 kB / 454.3 MB, free: 10.02 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.551e-05/0.5089, allocations: 11.98 kB / 454.4 MB, free: 10.01 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-05/0.5089, allocations: 7.984 kB / 454.4 MB, free: 10 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0005018/0.5094, allocations: 300.5 kB / 454.7 MB, free: 9.707 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5095, allocations: 4 kB / 454.7 MB, free: 9.703 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0004809/0.5099, allocations: 60.17 kB / 454.7 MB, free: 9.645 MB / 347.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.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,Pre1.u) * Number of discrete states: 5 (Pre1.u,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001742/0.5117, allocations: 0.9976 MB / 455.7 MB, free: 8.668 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0003811/0.5121, allocations: 119.9 kB / 455.8 MB, free: 8.551 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.5121, allocations: 3.938 kB / 455.8 MB, free: 8.547 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001589/0.5123, allocations: 59.92 kB / 455.9 MB, free: 8.488 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005804/0.5129, allocations: 58.8 kB / 456 MB, free: 8.434 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001335/0.5142, allocations: 0.4988 MB / 456.4 MB, free: 7.891 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004358/0.5147, allocations: 0.7835 MB / 457.2 MB, free: 7.078 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002355/0.5149, allocations: 99.39 kB / 457.3 MB, free: 6.98 MB / 347.1 MB Notification: Performance of SimCode: time 7.91e-07/0.515, allocations: 0 / 457.3 MB, free: 6.98 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.581/3.096, allocations: 5.619 MB / 462.9 MB, free: 1.375 MB / 347.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1_res.mat does not exist to compare? outputFormat=mat