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.00236/0.002359, allocations: 188.4 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.034/2.034, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00121/0.001209, allocations: 98.34 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005967/0.0005967, allocations: 15.98 kB / 327.1 MB, free: 124 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.335/0.3357, allocations: 47.56 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1278/0.4636, allocations: 79.02 MB / 453.6 MB, free: 1.629 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002751/0.4639, allocations: 71.97 kB / 453.7 MB, free: 1.559 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04194/0.5059, allocations: 9.039 MB / 462.7 MB, free: 8.512 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.5059, allocations: 0 / 462.7 MB, free: 8.512 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.822e-05/0.506, allocations: 4 kB / 462.8 MB, free: 8.508 MB / 346.7 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.001271/0.5073, allocations: 0.6309 MB / 463.4 MB, free: 7.816 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.625e-05/0.5073, allocations: 11.97 kB / 463.4 MB, free: 7.805 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.339e-05/0.5074, allocations: 46.55 kB / 463.4 MB, free: 7.75 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001113/0.5076, allocations: 31.62 kB / 463.5 MB, free: 7.719 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008418/0.5084, allocations: 342.9 kB / 463.8 MB, free: 7.348 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.511e-05/0.5085, allocations: 4 kB / 463.8 MB, free: 7.344 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.395e-05/0.5085, allocations: 23.88 kB / 463.8 MB, free: 7.32 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004285/0.509, allocations: 142.6 kB / 464 MB, free: 7.168 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.509, allocations: 4 kB / 464 MB, free: 7.164 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.799e-05/0.509, allocations: 11.98 kB / 464 MB, free: 7.152 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.726e-06/0.509, allocations: 4 kB / 464 MB, free: 7.148 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002866/0.5093, allocations: 83.75 kB / 464.1 MB, free: 7.066 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001139/0.5105, allocations: 0.5004 MB / 464.6 MB, free: 6.516 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005168/0.511, allocations: 134.7 kB / 464.7 MB, free: 6.375 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.214e-05/0.5111, allocations: 4 kB / 464.7 MB, free: 6.371 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003527/0.5114, allocations: 115.3 kB / 464.8 MB, free: 6.246 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 2.555e-06/0.5115, allocations: 0 / 464.8 MB, free: 6.246 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0008285/0.5123, allocations: 225.1 kB / 465 MB, free: 6.02 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.9e-05/0.5124, allocations: 110.8 kB / 465.2 MB, free: 5.887 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008029/0.5132, allocations: 391.6 kB / 465.5 MB, free: 5.5 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.402e-05/0.5133, allocations: 29.7 kB / 465.6 MB, free: 5.465 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001633/0.5134, allocations: 210.4 kB / 465.8 MB, free: 5.258 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.386e-05/0.5135, allocations: 39.47 kB / 465.8 MB, free: 5.219 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.485e-05/0.5136, allocations: 8 kB / 465.8 MB, free: 5.211 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.5137, allocations: 314.8 kB / 466.1 MB, free: 4.895 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001976/0.5139, allocations: 47.97 kB / 466.2 MB, free: 4.848 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002735/0.5142, allocations: 108.4 kB / 466.3 MB, free: 4.723 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001986/0.5144, allocations: 60.72 kB / 466.3 MB, free: 4.668 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.5144, allocations: 0 / 466.3 MB, free: 4.668 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005143/0.515, allocations: 157.5 kB / 466.5 MB, free: 4.508 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.61e-05/0.515, allocations: 7.281 kB / 466.5 MB, free: 4.504 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.515, allocations: 0 / 466.5 MB, free: 4.504 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.063e-05/0.515, allocations: 7.953 kB / 466.5 MB, free: 4.496 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00021/0.5153, allocations: 19.98 kB / 466.5 MB, free: 4.477 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.814e-06/0.5153, allocations: 12 kB / 466.5 MB, free: 4.465 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002743/0.5156, allocations: 15.91 kB / 466.6 MB, free: 4.449 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.168e-05/0.5156, allocations: 4 kB / 466.6 MB, free: 4.445 MB / 346.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002976/0.5159, allocations: 175.5 kB / 466.7 MB, free: 4.262 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.845e-05/0.516, allocations: 27.62 kB / 466.8 MB, free: 4.234 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006558/0.5167, allocations: 200.4 kB / 466.9 MB, free: 4.023 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.528e-06/0.5167, allocations: 11.95 kB / 467 MB, free: 4.012 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.5167, allocations: 0 / 467 MB, free: 4.012 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.5167, allocations: 3.984 kB / 467 MB, free: 4.008 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004434/0.5172, allocations: 321.4 kB / 467.3 MB, free: 3.645 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.5172, allocations: 0 / 467.3 MB, free: 3.645 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.276e-05/0.5173, allocations: 8 kB / 467.3 MB, free: 3.637 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.735e-06/0.5173, allocations: 4 kB / 467.3 MB, free: 3.633 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.062e-05/0.5173, allocations: 3.984 kB / 467.3 MB, free: 3.629 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.5174, allocations: 0 / 467.3 MB, free: 3.629 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.5174, allocations: 3.953 kB / 467.3 MB, free: 3.625 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005933/0.518, allocations: 224.5 kB / 467.5 MB, free: 3.387 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001689/0.5182, allocations: 124.7 kB / 467.6 MB, free: 3.246 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.376e-05/0.5182, allocations: 11.98 kB / 467.6 MB, free: 3.234 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00017/0.5184, allocations: 12 kB / 467.7 MB, free: 3.223 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.973e-05/0.5185, allocations: 12.02 kB / 467.7 MB, free: 3.211 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.851e-05/0.5186, allocations: 15.94 kB / 467.7 MB, free: 3.195 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005982/0.5192, allocations: 315 kB / 468 MB, free: 2.891 MB / 346.7 MB Notification: Performance of sort global known variables: time 4e-07/0.5192, allocations: 0 / 468 MB, free: 2.891 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004953/0.5197, allocations: 68.17 kB / 468.1 MB, free: 2.824 MB / 346.7 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) * 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 (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.002114/0.5218, allocations: 1.076 MB / 469.1 MB, free: 1.746 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005514/0.5224, allocations: 135.7 kB / 469.3 MB, free: 1.613 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.5224, allocations: 3.938 kB / 469.3 MB, free: 1.609 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002342/0.5226, allocations: 71.91 kB / 469.3 MB, free: 1.539 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005977/0.5233, allocations: 62.25 kB / 469.4 MB, free: 1.477 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004177/0.5275, allocations: 2 MB / 471.4 MB, free: 15.41 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004592/0.528, allocations: 0.7794 MB / 472.2 MB, free: 14.6 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002745/0.5283, allocations: 99.39 kB / 472.3 MB, free: 14.5 MB / 362.7 MB Notification: Performance of SimCode: time 1.012e-06/0.5283, allocations: 0 / 472.3 MB, free: 14.5 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.647/3.176, allocations: 5.696 MB / 478 MB, free: 8.805 MB / 362.7 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