Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.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.ShowLogicalSources,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources",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.001125/0.001125, allocations: 181.7 kB / 17.01 MB, free: 5.125 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.449/1.449, allocations: 205.4 MB / 223.1 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.0008443/0.0008443, allocations: 84.19 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002521/0.0002526, allocations: 8 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2404/0.2407, allocations: 47.57 MB / 375.9 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09353/0.3343, allocations: 79.36 MB / 455.3 MB, free: 1.273 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000264/0.3346, allocations: 71.97 kB / 455.3 MB, free: 1.203 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01613/0.3507, allocations: 5.719 MB / 461.1 MB, free: 11.48 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3508, allocations: 0 / 461.1 MB, free: 11.48 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.609e-05/0.3508, allocations: 4 kB / 461.1 MB, free: 11.48 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0008816/0.3517, allocations: 0.5157 MB / 461.6 MB, free: 10.91 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.066e-05/0.3518, allocations: 12.03 kB / 461.6 MB, free: 10.9 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.905e-05/0.3518, allocations: 42.48 kB / 461.6 MB, free: 10.85 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.218e-05/0.3519, allocations: 19.81 kB / 461.6 MB, free: 10.83 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004029/0.3523, allocations: 257.7 kB / 461.9 MB, free: 10.53 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.721e-05/0.3523, allocations: 8 kB / 461.9 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.821e-05/0.3524, allocations: 11.95 kB / 461.9 MB, free: 10.51 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000244/0.3526, allocations: 125.9 kB / 462 MB, free: 10.37 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.3526, allocations: 0 / 462 MB, free: 10.37 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.3527, allocations: 0 / 462 MB, free: 10.37 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.343e-06/0.3527, allocations: 7.938 kB / 462 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001476/0.3528, allocations: 59.91 kB / 462.1 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007473/0.3536, allocations: 0.6222 MB / 462.7 MB, free: 9.617 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002644/0.3539, allocations: 127.9 kB / 462.9 MB, free: 9.465 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.061e-05/0.3539, allocations: 0 / 462.9 MB, free: 9.465 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002143/0.3541, allocations: 133.8 kB / 463 MB, free: 9.316 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.253e-06/0.3541, allocations: 0 / 463 MB, free: 9.316 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004562/0.3546, allocations: 177.3 kB / 463.2 MB, free: 9.137 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.778e-05/0.3547, allocations: 140.6 kB / 463.3 MB, free: 8.969 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002876/0.355, allocations: 260.1 kB / 463.6 MB, free: 8.707 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.178e-05/0.355, allocations: 25.7 kB / 463.6 MB, free: 8.676 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/0.3551, allocations: 124.4 kB / 463.7 MB, free: 8.547 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.428e-05/0.3552, allocations: 27.64 kB / 463.7 MB, free: 8.52 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.334e-06/0.3552, allocations: 4 kB / 463.7 MB, free: 8.516 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.3553, allocations: 326.8 kB / 464 MB, free: 8.188 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.692e-05/0.3554, allocations: 39.97 kB / 464.1 MB, free: 8.148 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001245/0.3555, allocations: 85.92 kB / 464.2 MB, free: 8.043 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.273e-05/0.3556, allocations: 35.95 kB / 464.2 MB, free: 8.008 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.3557, allocations: 4.031 kB / 464.2 MB, free: 8.004 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000273/0.3559, allocations: 149.9 kB / 464.4 MB, free: 7.852 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.356, allocations: 4 kB / 464.4 MB, free: 7.848 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.356, allocations: 8 kB / 464.4 MB, free: 7.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.356, allocations: 0 / 464.4 MB, free: 7.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.661e-05/0.3561, allocations: 19.98 kB / 464.4 MB, free: 7.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.3561, allocations: 0 / 464.4 MB, free: 7.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000126/0.3562, allocations: 20.08 kB / 464.4 MB, free: 7.801 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.327e-05/0.3563, allocations: 4 kB / 464.4 MB, free: 7.797 MB / 346.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.0001394/0.3564, allocations: 157.6 kB / 464.6 MB, free: 7.633 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.415e-05/0.3565, allocations: 19.72 kB / 464.6 MB, free: 7.613 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002392/0.3567, allocations: 115.4 kB / 464.7 MB, free: 7.496 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.3567, allocations: 0 / 464.7 MB, free: 7.496 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.3567, allocations: 4 kB / 464.7 MB, free: 7.492 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.3567, allocations: 4 kB / 464.7 MB, free: 7.488 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002486/0.357, allocations: 257.4 kB / 465 MB, free: 7.188 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.357, allocations: 3.953 kB / 465 MB, free: 7.184 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.572e-05/0.357, allocations: 8 kB / 465 MB, free: 7.176 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.3571, allocations: 3.938 kB / 465 MB, free: 7.172 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.291e-05/0.3571, allocations: 11.98 kB / 465 MB, free: 7.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.3571, allocations: 0 / 465 MB, free: 7.16 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3571, allocations: 0 / 465 MB, free: 7.16 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003257/0.3574, allocations: 217.2 kB / 465.2 MB, free: 6.914 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.729e-05/0.3575, allocations: 100.9 kB / 465.3 MB, free: 6.797 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.503e-05/0.3576, allocations: 7.938 kB / 465.3 MB, free: 6.789 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001052/0.3577, allocations: 19.98 kB / 465.3 MB, free: 6.77 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.29e-05/0.3578, allocations: 15.97 kB / 465.3 MB, free: 6.754 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.591e-05/0.3578, allocations: 8 kB / 465.3 MB, free: 6.746 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000225/0.358, allocations: 208.5 kB / 465.5 MB, free: 6.547 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.358, allocations: 0 / 465.5 MB, free: 6.547 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002825/0.3583, allocations: 43.98 kB / 465.6 MB, free: 6.504 MB / 346.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.001481/0.3598, allocations: 1.204 MB / 466.8 MB, free: 5.289 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002818/0.3601, allocations: 111.9 kB / 466.9 MB, free: 5.18 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3601, allocations: 0 / 466.9 MB, free: 5.18 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001236/0.3602, allocations: 51.92 kB / 467 MB, free: 5.129 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002944/0.3605, allocations: 46.06 kB / 467 MB, free: 5.082 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001963/0.3625, allocations: 1.737 MB / 468.7 MB, free: 3.273 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002935/0.3628, allocations: 0.74 MB / 469.5 MB, free: 2.508 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.542e-05/0.3629, allocations: 33.69 kB / 469.5 MB, free: 2.477 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001167/0.363, allocations: 55.42 kB / 469.6 MB, free: 2.426 MB / 346.7 MB Notification: Performance of SimCode: time 3.91e-07/0.3631, allocations: 0 / 469.6 MB, free: 2.426 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01728/0.3803, allocations: 4.621 MB / 474.2 MB, free: 13.8 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002312/0.3806, allocations: 211.7 kB / 474.4 MB, free: 13.56 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.626/2.006, allocations: 0 / 474.4 MB, free: 13.56 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.mat does not exist to compare? outputFormat=mat