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/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_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_3_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.001488/0.001489, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.392/1.392, allocations: 205.3 MB / 214.4 MB, free: 1.727 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008135/0.0008135, allocations: 87.95 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.57e-05/1.572e-05, allocations: 4 kB / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07986/0.07989, allocations: 47.59 MB / 363.2 MB, free: 6.984 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2966/0.3765, allocations: 78.51 MB / 441.7 MB, free: 0.8555 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001825/0.3767, allocations: 68.34 kB / 441.7 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02352/0.4003, allocations: 8.941 MB / 450.7 MB, free: 9.438 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.4003, allocations: 0 / 450.7 MB, free: 9.438 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.615e-05/0.4003, allocations: 7.938 kB / 450.7 MB, free: 9.43 MB / 330.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.000681/0.401, allocations: 0.5725 MB / 451.3 MB, free: 8.816 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.4011, allocations: 12.03 kB / 451.3 MB, free: 8.805 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.014e-05/0.4012, allocations: 31.62 kB / 451.3 MB, free: 8.773 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004997/0.4017, allocations: 343.2 kB / 451.6 MB, free: 8.438 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.016e-05/0.4017, allocations: 4 kB / 451.6 MB, free: 8.434 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.67e-05/0.4017, allocations: 4 kB / 451.6 MB, free: 8.43 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001481/0.4019, allocations: 69.17 kB / 451.7 MB, free: 8.383 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002288/0.4021, allocations: 139.8 kB / 451.9 MB, free: 8.258 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.4021, allocations: 0 / 451.9 MB, free: 8.258 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.703e-05/0.4022, allocations: 0 / 451.9 MB, free: 8.258 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.4022, allocations: 4 kB / 451.9 MB, free: 8.254 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007161/0.4029, allocations: 488.9 kB / 452.3 MB, free: 7.82 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001974/0.4031, allocations: 119 kB / 452.4 MB, free: 7.73 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.268e-05/0.4032, allocations: 42.42 kB / 452.5 MB, free: 7.703 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.184e-05/0.4032, allocations: 8 kB / 452.5 MB, free: 7.695 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000184/0.4034, allocations: 100.4 kB / 452.6 MB, free: 7.602 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 1.703e-06/0.4034, allocations: 0 / 452.6 MB, free: 7.602 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003327/0.4038, allocations: 162.8 kB / 452.8 MB, free: 7.465 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.071e-05/0.4038, allocations: 110.8 kB / 452.9 MB, free: 7.332 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004418/0.4043, allocations: 375.7 kB / 453.2 MB, free: 7.047 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.314e-05/0.4043, allocations: 25.7 kB / 453.3 MB, free: 7.016 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.4044, allocations: 169.4 kB / 453.4 MB, free: 6.898 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.21e-05/0.4045, allocations: 39.03 kB / 453.5 MB, free: 6.863 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.893e-06/0.4045, allocations: 0 / 453.5 MB, free: 6.863 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.4046, allocations: 344.6 kB / 453.8 MB, free: 6.531 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.386e-05/0.4047, allocations: 34.94 kB / 453.8 MB, free: 6.512 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001081/0.4048, allocations: 99.97 kB / 453.9 MB, free: 6.414 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.603e-05/0.4049, allocations: 46.61 kB / 454 MB, free: 6.383 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.4049, allocations: 4 kB / 454 MB, free: 6.379 MB / 330.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002408/0.4052, allocations: 158.2 kB / 454.1 MB, free: 6.246 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.4052, allocations: 4 kB / 454.1 MB, free: 6.242 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.4052, allocations: 0 / 454.1 MB, free: 6.242 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.4052, allocations: 4 kB / 454.1 MB, free: 6.238 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001258/0.4054, allocations: 23.92 kB / 454.2 MB, free: 6.215 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.4054, allocations: 12.02 kB / 454.2 MB, free: 6.203 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001063/0.4055, allocations: 15.89 kB / 454.2 MB, free: 6.188 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.519e-05/0.4055, allocations: 11.19 kB / 454.2 MB, free: 6.18 MB / 330.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 () * 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.0001089/0.4056, allocations: 122.9 kB / 454.3 MB, free: 6.051 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002313/0.4059, allocations: 160.2 kB / 454.5 MB, free: 5.918 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.033e-05/0.4059, allocations: 27.62 kB / 454.5 MB, free: 5.891 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003345/0.4063, allocations: 192.4 kB / 454.7 MB, free: 5.73 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.4063, allocations: 3.953 kB / 454.7 MB, free: 5.727 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.4063, allocations: 0 / 454.7 MB, free: 5.727 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.4063, allocations: 3.984 kB / 454.7 MB, free: 5.723 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002652/0.4066, allocations: 285.7 kB / 455 MB, free: 5.453 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.4066, allocations: 0 / 455 MB, free: 5.453 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.166e-05/0.4066, allocations: 11.98 kB / 455 MB, free: 5.441 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.225e-06/0.4067, allocations: 0 / 455 MB, free: 5.441 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.4067, allocations: 4 kB / 455 MB, free: 5.438 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.4067, allocations: 0 / 455 MB, free: 5.438 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.4067, allocations: 4 kB / 455 MB, free: 5.434 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002712/0.407, allocations: 214.2 kB / 455.2 MB, free: 5.242 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001124/0.4071, allocations: 119.2 kB / 455.3 MB, free: 5.113 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.59e-05/0.4071, allocations: 7.812 kB / 455.3 MB, free: 5.109 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.45e-05/0.4072, allocations: 7.984 kB / 455.3 MB, free: 5.102 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.909e-05/0.4073, allocations: 15.17 kB / 455.4 MB, free: 5.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.509e-05/0.4073, allocations: 7.984 kB / 455.4 MB, free: 5.082 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002871/0.4076, allocations: 300.4 kB / 455.7 MB, free: 4.855 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4076, allocations: 0 / 455.7 MB, free: 4.855 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003057/0.4079, allocations: 63.8 kB / 455.7 MB, free: 4.797 MB / 330.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) * 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.001236/0.4092, allocations: 0.9898 MB / 456.7 MB, free: 3.82 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002399/0.4094, allocations: 118.7 kB / 456.8 MB, free: 3.738 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.4095, allocations: 0 / 456.8 MB, free: 3.738 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.021e-05/0.4096, allocations: 67.14 kB / 456.9 MB, free: 3.691 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003764/0.4099, allocations: 59.72 kB / 456.9 MB, free: 3.645 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008142/0.4108, allocations: 471.9 kB / 457.4 MB, free: 3.203 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003333/0.4111, allocations: 0.7888 MB / 458.2 MB, free: 2.395 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001314/0.4112, allocations: 46.05 kB / 458.2 MB, free: 2.348 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001294/0.4114, allocations: 91.34 kB / 458.3 MB, free: 2.316 MB / 330.7 MB Notification: Performance of SimCode: time 3.21e-07/0.4114, allocations: 4 kB / 458.3 MB, free: 2.312 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02476/0.4362, allocations: 6.076 MB / 464.4 MB, free: 12.25 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001723/0.4364, allocations: 155.1 kB / 464.6 MB, free: 12.05 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.93/2.366, allocations: 3.938 kB / 464.6 MB, free: 12.05 MB / 346.7 MB (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/linux/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 --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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat does not exist to compare? outputFormat=mat