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.001034/0.001034, allocations: 172.5 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.423/1.423, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.000843/0.000843, allocations: 90.69 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.55e-05/3.552e-05, allocations: 4 kB / 322.5 MB, free: 17.28 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09021/0.09027, allocations: 47.57 MB / 370.1 MB, free: 1.637 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2988/0.3891, allocations: 78.92 MB / 449 MB, free: 14.38 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001802/0.3894, allocations: 68.22 kB / 449.1 MB, free: 14.35 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02349/0.4129, allocations: 9.003 MB / 458.1 MB, free: 6.77 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.4129, allocations: 4 kB / 458.1 MB, free: 6.766 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.268e-05/0.4129, allocations: 11.94 kB / 458.1 MB, free: 6.754 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.0006563/0.4136, allocations: 0.5676 MB / 458.7 MB, free: 6.145 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.4136, allocations: 8.031 kB / 458.7 MB, free: 6.137 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.375e-05/0.4137, allocations: 46.3 kB / 458.7 MB, free: 6.09 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.458e-05/0.4138, allocations: 31.62 kB / 458.8 MB, free: 6.059 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005152/0.4143, allocations: 349.5 kB / 459.1 MB, free: 5.715 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.997e-05/0.4143, allocations: 11.81 kB / 459.1 MB, free: 5.707 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.622e-05/0.4144, allocations: 11.95 kB / 459.1 MB, free: 5.695 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002278/0.4146, allocations: 145 kB / 459.3 MB, free: 5.57 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.4146, allocations: 0 / 459.3 MB, free: 5.57 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.56e-05/0.4146, allocations: 4 kB / 459.3 MB, free: 5.566 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.4146, allocations: 4 kB / 459.3 MB, free: 5.562 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001314/0.4148, allocations: 71.97 kB / 459.3 MB, free: 5.492 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006594/0.4154, allocations: 0.5043 MB / 459.8 MB, free: 4.938 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002303/0.4157, allocations: 130.7 kB / 460 MB, free: 4.801 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.67e-05/0.4158, allocations: 52.84 kB / 460 MB, free: 4.746 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.674e-05/0.4158, allocations: 3.984 kB / 460 MB, free: 4.742 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001629/0.416, allocations: 108.7 kB / 460.1 MB, free: 4.625 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 2.625e-06/0.416, allocations: 3.984 kB / 460.1 MB, free: 4.621 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003005/0.4163, allocations: 173.9 kB / 460.3 MB, free: 4.445 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.463e-05/0.4164, allocations: 110.8 kB / 460.4 MB, free: 4.312 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004305/0.4168, allocations: 394.6 kB / 460.8 MB, free: 3.918 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.149e-05/0.4168, allocations: 29.7 kB / 460.8 MB, free: 3.883 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.901e-05/0.4169, allocations: 160 kB / 461 MB, free: 3.723 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.432e-05/0.417, allocations: 43.53 kB / 461 MB, free: 3.68 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.963e-06/0.417, allocations: 0 / 461 MB, free: 3.68 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.4171, allocations: 346.8 kB / 461.4 MB, free: 3.332 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.423e-05/0.4172, allocations: 40 kB / 461.4 MB, free: 3.293 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001197/0.4173, allocations: 106.8 kB / 461.5 MB, free: 3.168 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.997e-05/0.4174, allocations: 52 kB / 461.6 MB, free: 3.117 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.4174, allocations: 0 / 461.6 MB, free: 3.117 MB / 330.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002464/0.4177, allocations: 177.2 kB / 461.7 MB, free: 2.938 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.4177, allocations: 8 kB / 461.7 MB, free: 2.93 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.315e-06/0.4177, allocations: 3.953 kB / 461.8 MB, free: 2.926 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.4177, allocations: 0 / 461.8 MB, free: 2.926 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001178/0.4179, allocations: 23.98 kB / 461.8 MB, free: 2.902 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.154e-06/0.4179, allocations: 3.938 kB / 461.8 MB, free: 2.898 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001059/0.418, allocations: 19.91 kB / 461.8 MB, free: 2.879 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.554e-05/0.418, allocations: 4 kB / 461.8 MB, free: 2.875 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 9.65e-05/0.4181, allocations: 134.6 kB / 461.9 MB, free: 2.734 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.194e-05/0.4182, allocations: 27.62 kB / 462 MB, free: 2.707 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003096/0.4185, allocations: 188.6 kB / 462.1 MB, free: 2.512 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.4185, allocations: 7.891 kB / 462.2 MB, free: 2.504 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.706e-06/0.4185, allocations: 4 kB / 462.2 MB, free: 2.5 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.4185, allocations: 3.984 kB / 462.2 MB, free: 2.496 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002535/0.4188, allocations: 317.5 kB / 462.5 MB, free: 2.137 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.4188, allocations: 0 / 462.5 MB, free: 2.137 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.783e-05/0.4188, allocations: 8 kB / 462.5 MB, free: 2.129 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.4188, allocations: 4 kB / 462.5 MB, free: 2.125 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.4e-05/0.4189, allocations: 7.984 kB / 462.5 MB, free: 2.117 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.4189, allocations: 0 / 462.5 MB, free: 2.117 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.4189, allocations: 7.938 kB / 462.5 MB, free: 2.109 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002622/0.4191, allocations: 211.7 kB / 462.7 MB, free: 1.887 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001108/0.4193, allocations: 124.7 kB / 462.8 MB, free: 1.746 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.972e-05/0.4193, allocations: 8 kB / 462.8 MB, free: 1.738 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.643e-05/0.4194, allocations: 23.92 kB / 462.9 MB, free: 1.715 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.325e-05/0.4195, allocations: 15.94 kB / 462.9 MB, free: 1.699 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.331e-05/0.4195, allocations: 8 kB / 462.9 MB, free: 1.691 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003103/0.4198, allocations: 310.1 kB / 463.2 MB, free: 1.387 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.4198, allocations: 0 / 463.2 MB, free: 1.387 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002637/0.4201, allocations: 64.19 kB / 463.2 MB, free: 1.324 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.001173/0.4213, allocations: 1.031 MB / 464.3 MB, free: 280 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002393/0.4215, allocations: 123.9 kB / 464.4 MB, free: 156 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.4215, allocations: 0 / 464.4 MB, free: 156 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.719e-05/0.4216, allocations: 71.83 kB / 464.5 MB, free: 84 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003249/0.422, allocations: 66.41 kB / 464.5 MB, free: 20 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007883/0.4228, allocations: 493.2 kB / 465 MB, free: 15.5 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002935/0.4231, allocations: 0.7794 MB / 465.8 MB, free: 14.7 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001182/0.4232, allocations: 46.05 kB / 465.8 MB, free: 14.65 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000141/0.4233, allocations: 99.41 kB / 465.9 MB, free: 14.55 MB / 346.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4233, allocations: 0 / 465.9 MB, free: 14.55 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02006/0.4434, allocations: 6.653 MB / 472.6 MB, free: 7.887 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003361/0.4438, allocations: 190.5 kB / 472.8 MB, free: 7.652 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.858/2.302, allocations: 0 / 472.8 MB, free: 7.652 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