Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001504/0.001504, allocations: 180.1 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.314/1.314, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008852/0.0008851, allocations: 90.52 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000285/0.000285, allocations: 8 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2517/0.252, allocations: 50.4 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.104/0.3561, allocations: 80.33 MB / 481.9 MB, free: 152 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002273/0.3564, allocations: 82.64 kB / 482 MB, free: 72 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02497/0.3814, allocations: 9.254 MB / 491.2 MB, free: 6.812 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3814, allocations: 0 / 491.2 MB, free: 6.812 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.243e-05/0.3815, allocations: 15.92 kB / 491.3 MB, free: 6.797 MB / 362.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.0009481/0.3824, allocations: 0.631 MB / 491.9 MB, free: 6.105 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.3825, allocations: 8.031 kB / 491.9 MB, free: 6.098 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.049e-05/0.3825, allocations: 46.5 kB / 491.9 MB, free: 6.043 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.661e-05/0.3826, allocations: 31.62 kB / 492 MB, free: 6.012 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005944/0.3832, allocations: 346.8 kB / 492.3 MB, free: 5.633 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.029e-05/0.3833, allocations: 8 kB / 492.3 MB, free: 5.625 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.852e-05/0.3833, allocations: 15.98 kB / 492.3 MB, free: 5.609 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000288/0.3836, allocations: 149.1 kB / 492.5 MB, free: 5.449 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.3836, allocations: 0 / 492.5 MB, free: 5.449 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.915e-05/0.3837, allocations: 8 kB / 492.5 MB, free: 5.441 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.583e-06/0.3837, allocations: 3.953 kB / 492.5 MB, free: 5.438 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001742/0.3838, allocations: 81.31 kB / 492.6 MB, free: 5.359 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008075/0.3847, allocations: 0.5043 MB / 493.1 MB, free: 4.805 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003201/0.385, allocations: 138.7 kB / 493.2 MB, free: 4.66 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.633e-05/0.385, allocations: 0 / 493.2 MB, free: 4.66 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002167/0.3852, allocations: 119.3 kB / 493.3 MB, free: 4.531 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.3853, allocations: 0 / 493.3 MB, free: 4.531 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005/0.3858, allocations: 221.2 kB / 493.5 MB, free: 4.309 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.59e-05/0.3858, allocations: 106.8 kB / 493.6 MB, free: 4.18 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004659/0.3863, allocations: 391.6 kB / 494 MB, free: 3.793 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.977e-05/0.3864, allocations: 33.7 kB / 494.1 MB, free: 3.754 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.3865, allocations: 171.9 kB / 494.2 MB, free: 3.582 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.64e-05/0.3865, allocations: 43.5 kB / 494.3 MB, free: 3.539 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.502e-06/0.3865, allocations: 0 / 494.3 MB, free: 3.539 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.3867, allocations: 342.8 kB / 494.6 MB, free: 3.195 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001121/0.3868, allocations: 51.91 kB / 494.7 MB, free: 3.145 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001444/0.3869, allocations: 116.5 kB / 494.8 MB, free: 3.012 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001069/0.3871, allocations: 45.09 kB / 494.8 MB, free: 2.969 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3871, allocations: 0 / 494.8 MB, free: 2.969 MB / 362.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003207/0.3874, allocations: 184.5 kB / 495 MB, free: 2.785 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.3874, allocations: 12.06 kB / 495 MB, free: 2.773 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.3874, allocations: 0 / 495 MB, free: 2.773 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.3875, allocations: 0 / 495 MB, free: 2.773 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001169/0.3876, allocations: 27.92 kB / 495 MB, free: 2.746 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.3876, allocations: 0 / 495 MB, free: 2.746 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001125/0.3877, allocations: 15.94 kB / 495 MB, free: 2.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.686e-05/0.3877, allocations: 11.95 kB / 495.1 MB, free: 2.719 MB / 362.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.0001736/0.3879, allocations: 175.5 kB / 495.2 MB, free: 2.539 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.115e-05/0.388, allocations: 31.62 kB / 495.3 MB, free: 2.508 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003983/0.3884, allocations: 195.3 kB / 495.4 MB, free: 2.305 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.3884, allocations: 4 kB / 495.5 MB, free: 2.301 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.3884, allocations: 0 / 495.5 MB, free: 2.301 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.3884, allocations: 3.984 kB / 495.5 MB, free: 2.297 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003315/0.3888, allocations: 325.4 kB / 495.8 MB, free: 1.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.3888, allocations: 3.938 kB / 495.8 MB, free: 1.926 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.855e-05/0.3888, allocations: 15.94 kB / 495.8 MB, free: 1.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.3888, allocations: 4 kB / 495.8 MB, free: 1.906 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.542e-05/0.3889, allocations: 3.984 kB / 495.8 MB, free: 1.902 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.3889, allocations: 0 / 495.8 MB, free: 1.902 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3889, allocations: 7.938 kB / 495.8 MB, free: 1.895 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003658/0.3893, allocations: 212.6 kB / 496 MB, free: 1.668 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001347/0.3894, allocations: 120.7 kB / 496.1 MB, free: 1.531 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.911e-05/0.3895, allocations: 11.98 kB / 496.1 MB, free: 1.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.332e-05/0.3896, allocations: 16 kB / 496.2 MB, free: 1.504 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.801e-05/0.3896, allocations: 11.97 kB / 496.2 MB, free: 1.492 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.764e-05/0.3897, allocations: 12 kB / 496.2 MB, free: 1.48 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003852/0.3901, allocations: 307 kB / 496.5 MB, free: 1.184 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3901, allocations: 4 kB / 496.5 MB, free: 1.18 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003342/0.3904, allocations: 68.17 kB / 496.6 MB, free: 1.113 MB / 362.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.001648/0.3921, allocations: 1.073 MB / 497.6 MB, free: 172 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003328/0.3924, allocations: 135.8 kB / 497.8 MB, free: 36 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3924, allocations: 4 kB / 497.8 MB, free: 32 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001544/0.3926, allocations: 70.86 kB / 497.8 MB, free: 15.96 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003859/0.393, allocations: 65.52 kB / 497.9 MB, free: 15.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002645/0.3956, allocations: 1.952 MB / 499.9 MB, free: 13.88 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003932/0.396, allocations: 0.7833 MB / 0.4889 GB, free: 13.07 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001535/0.3962, allocations: 58.23 kB / 0.489 GB, free: 13.02 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001471/0.3964, allocations: 91.41 kB / 0.489 GB, free: 12.93 MB / 378.7 MB Notification: Performance of SimCode: time 5.01e-07/0.3964, allocations: 0 / 0.489 GB, free: 12.93 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01894/0.4153, allocations: 6.722 MB / 0.4956 GB, free: 6.359 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001808/0.4155, allocations: 217.2 kB / 0.4958 GB, free: 6.109 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.983/2.399, allocations: 3.938 kB / 0.4958 GB, free: 6.105 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat does not exist to compare? outputFormat=mat