Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.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.ShowLogicalSources,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources",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.001533/0.001533, allocations: 179.9 kB / 16.38 MB, free: 5.766 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.61/1.61, 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.0008637/0.0008637, allocations: 98.48 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002545/0.0002545, allocations: 8 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2356/0.2358, allocations: 50.41 MB / 401.6 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1202/0.356, allocations: 80.6 MB / 482.2 MB, free: 15.85 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002471/0.3563, allocations: 71.97 kB / 482.2 MB, free: 15.78 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01766/0.374, allocations: 5.876 MB / 488.1 MB, free: 9.906 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.3741, allocations: 0 / 488.1 MB, free: 9.906 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.357e-05/0.3741, allocations: 4 kB / 488.1 MB, free: 9.902 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0009157/0.375, allocations: 0.5313 MB / 488.7 MB, free: 9.316 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.3751, allocations: 8.031 kB / 488.7 MB, free: 9.309 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.017e-05/0.3752, allocations: 38.56 kB / 488.7 MB, free: 9.262 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.233e-05/0.3752, allocations: 23.67 kB / 488.7 MB, free: 9.238 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004775/0.3757, allocations: 253.8 kB / 489 MB, free: 8.949 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.082e-05/0.3758, allocations: 7.938 kB / 489 MB, free: 8.941 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.313e-05/0.3758, allocations: 8 kB / 489 MB, free: 8.934 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002779/0.3761, allocations: 118.6 kB / 489.1 MB, free: 8.797 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.3761, allocations: 0 / 489.1 MB, free: 8.797 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.914e-05/0.3761, allocations: 8 kB / 489.1 MB, free: 8.789 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.134e-06/0.3761, allocations: 3.953 kB / 489.1 MB, free: 8.785 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001734/0.3763, allocations: 51.91 kB / 489.2 MB, free: 8.734 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008572/0.3772, allocations: 0.6233 MB / 489.8 MB, free: 8.051 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002672/0.3775, allocations: 123.9 kB / 489.9 MB, free: 7.902 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.719e-05/0.3775, allocations: 7.984 kB / 489.9 MB, free: 7.895 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002416/0.3777, allocations: 126 kB / 490 MB, free: 7.75 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.693e-06/0.3778, allocations: 4 kB / 490 MB, free: 7.746 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0005309/0.3783, allocations: 177.8 kB / 490.2 MB, free: 7.566 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.612e-05/0.3784, allocations: 132.5 kB / 490.3 MB, free: 7.406 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003445/0.3788, allocations: 260.1 kB / 490.6 MB, free: 7.145 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.607e-05/0.3788, allocations: 37.83 kB / 490.6 MB, free: 7.102 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.978e-05/0.3789, allocations: 120.4 kB / 490.8 MB, free: 6.977 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.487e-05/0.379, allocations: 31.7 kB / 490.8 MB, free: 6.945 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.163e-06/0.379, allocations: 0 / 490.8 MB, free: 6.945 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.3792, allocations: 338.8 kB / 491.1 MB, free: 6.605 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.96e-05/0.3793, allocations: 31.92 kB / 491.1 MB, free: 6.574 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001381/0.3794, allocations: 93.64 kB / 491.2 MB, free: 6.465 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001046/0.3796, allocations: 31.98 kB / 491.3 MB, free: 6.434 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.3796, allocations: 4 kB / 491.3 MB, free: 6.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003203/0.3799, allocations: 145.4 kB / 491.4 MB, free: 6.281 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.458e-05/0.3799, allocations: 8.938 kB / 491.4 MB, free: 6.273 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.38, allocations: 3.953 kB / 491.4 MB, free: 6.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.929e-05/0.38, allocations: 0 / 491.4 MB, free: 6.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.989e-05/0.3801, allocations: 19.92 kB / 491.4 MB, free: 6.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.318e-05/0.3801, allocations: 7.938 kB / 491.5 MB, free: 6.242 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001277/0.3802, allocations: 19.98 kB / 491.5 MB, free: 6.223 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.243e-05/0.3802, allocations: 4 kB / 491.5 MB, free: 6.219 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition2,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,$PRE.pulse.pulseStart,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001642/0.3804, allocations: 141.9 kB / 491.6 MB, free: 6.07 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.473e-05/0.3805, allocations: 23.72 kB / 491.6 MB, free: 6.047 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000266/0.3807, allocations: 119.2 kB / 491.8 MB, free: 5.926 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.245e-06/0.3808, allocations: 11.94 kB / 491.8 MB, free: 5.914 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.3808, allocations: 0 / 491.8 MB, free: 5.914 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.243e-06/0.3808, allocations: 7.922 kB / 491.8 MB, free: 5.906 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002754/0.3811, allocations: 245.5 kB / 492 MB, free: 5.617 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.3811, allocations: 4 kB / 492 MB, free: 5.613 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.547e-05/0.3811, allocations: 11.98 kB / 492 MB, free: 5.602 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.3811, allocations: 0 / 492 MB, free: 5.602 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.45e-05/0.3812, allocations: 4.188 kB / 492 MB, free: 5.598 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.3812, allocations: 4 kB / 492 MB, free: 5.594 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.3812, allocations: 7.953 kB / 492 MB, free: 5.586 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003703/0.3816, allocations: 217.6 kB / 492.3 MB, free: 5.34 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001154/0.3817, allocations: 104.9 kB / 492.4 MB, free: 5.219 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.956e-05/0.3817, allocations: 7.984 kB / 492.4 MB, free: 5.211 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001152/0.3819, allocations: 15.98 kB / 492.4 MB, free: 5.195 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.617e-05/0.3819, allocations: 11.98 kB / 492.4 MB, free: 5.184 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.238e-05/0.3819, allocations: 4 kB / 492.4 MB, free: 5.18 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002511/0.3822, allocations: 216.4 kB / 492.6 MB, free: 4.969 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3822, allocations: 0 / 492.6 MB, free: 4.969 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002904/0.3825, allocations: 44 kB / 492.7 MB, free: 4.926 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.001773/0.3843, allocations: 1.206 MB / 493.9 MB, free: 3.836 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003004/0.3846, allocations: 99.89 kB / 494 MB, free: 3.738 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.3846, allocations: 0 / 494 MB, free: 3.738 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001479/0.3848, allocations: 64.09 kB / 494 MB, free: 3.676 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003216/0.3851, allocations: 44.34 kB / 494.1 MB, free: 3.629 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002349/0.3875, allocations: 1.746 MB / 495.8 MB, free: 1.809 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003973/0.3879, allocations: 0.7322 MB / 496.5 MB, free: 1.051 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001086/0.388, allocations: 25.55 kB / 496.6 MB, free: 1.027 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000118/0.3881, allocations: 59.41 kB / 496.6 MB, free: 0.9727 MB / 362.7 MB Notification: Performance of SimCode: time 5.11e-07/0.3881, allocations: 0 / 496.6 MB, free: 0.9727 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01761/0.4057, allocations: 4.614 MB / 0.4895 GB, free: 12.5 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001834/0.406, allocations: 210.8 kB / 0.4897 GB, free: 12.26 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.799/2.205, allocations: 0 / 0.4897 GB, free: 12.26 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat does not exist to compare? outputFormat=mat