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.00141/0.00141, allocations: 175.8 kB / 14.1 MB, free: 1.207 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.439/1.439, 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.0008779/0.000878, allocations: 86.7 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.87e-05/2.872e-05, allocations: 4 kB / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08895/0.08899, allocations: 47.58 MB / 370.1 MB, free: 1.625 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3049/0.394, allocations: 79.27 MB / 449.4 MB, free: 14.01 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000205/0.3942, allocations: 65.22 kB / 449.4 MB, free: 13.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0156/0.4098, allocations: 5.703 MB / 455.2 MB, free: 9.176 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.4099, allocations: 0 / 455.2 MB, free: 9.176 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.757e-05/0.4099, allocations: 4 kB / 455.2 MB, free: 9.172 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006386/0.4105, allocations: 491.2 kB / 455.6 MB, free: 8.652 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.4106, allocations: 11.97 kB / 455.6 MB, free: 8.641 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.493e-05/0.4106, allocations: 42.48 kB / 455.7 MB, free: 8.594 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.777e-05/0.4107, allocations: 15.81 kB / 455.7 MB, free: 8.578 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003877/0.4111, allocations: 258.1 kB / 456 MB, free: 8.301 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.622e-05/0.4111, allocations: 3.375 kB / 456 MB, free: 8.301 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.187e-05/0.4111, allocations: 15.95 kB / 456 MB, free: 8.285 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00019/0.4113, allocations: 114.1 kB / 456.1 MB, free: 8.172 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.4114, allocations: 4 kB / 456.1 MB, free: 8.168 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.381e-05/0.4114, allocations: 0 / 456.1 MB, free: 8.168 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.4114, allocations: 0 / 456.1 MB, free: 8.168 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.988e-05/0.4115, allocations: 49.73 kB / 456.1 MB, free: 8.133 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006314/0.4121, allocations: 0.6197 MB / 456.8 MB, free: 7.504 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001747/0.4123, allocations: 122 kB / 456.9 MB, free: 7.379 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.953e-05/0.4124, allocations: 48.2 kB / 456.9 MB, free: 7.332 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.277e-05/0.4124, allocations: 3.125 kB / 456.9 MB, free: 7.332 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001697/0.4126, allocations: 118.2 kB / 457 MB, free: 7.211 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 1.392e-06/0.4126, allocations: 0 / 457 MB, free: 7.211 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002614/0.4129, allocations: 131.1 kB / 457.2 MB, free: 7.098 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.09e-05/0.413, allocations: 135.1 kB / 457.3 MB, free: 6.938 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002772/0.4132, allocations: 260.2 kB / 457.6 MB, free: 6.723 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.195e-05/0.4133, allocations: 29.08 kB / 457.6 MB, free: 6.691 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.877e-05/0.4134, allocations: 126.3 kB / 457.7 MB, free: 6.59 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.177e-05/0.4134, allocations: 35.11 kB / 457.7 MB, free: 6.559 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.746e-06/0.4134, allocations: 3.625 kB / 457.7 MB, free: 6.559 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.4135, allocations: 337.3 kB / 458.1 MB, free: 6.227 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.552e-05/0.4136, allocations: 29.94 kB / 458.1 MB, free: 6.207 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.406e-05/0.4137, allocations: 81.83 kB / 458.2 MB, free: 6.121 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.495e-05/0.4138, allocations: 33.89 kB / 458.2 MB, free: 6.098 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.4138, allocations: 0 / 458.2 MB, free: 6.098 MB / 330.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001925/0.414, allocations: 132.3 kB / 458.3 MB, free: 5.984 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.414, allocations: 8 kB / 458.4 MB, free: 5.977 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.414, allocations: 0 / 458.4 MB, free: 5.977 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.414, allocations: 3.984 kB / 458.4 MB, free: 5.973 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.337e-05/0.4141, allocations: 19.34 kB / 458.4 MB, free: 5.957 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.268e-06/0.4141, allocations: 4 kB / 458.4 MB, free: 5.953 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001127/0.4142, allocations: 19.89 kB / 458.4 MB, free: 5.934 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.174e-05/0.4143, allocations: 6.688 kB / 458.4 MB, free: 5.93 MB / 330.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 () * 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 8.604e-05/0.4144, allocations: 120.3 kB / 458.5 MB, free: 5.809 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.55e-05/0.4144, allocations: 27.8 kB / 458.6 MB, free: 5.781 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001877/0.4146, allocations: 111.4 kB / 458.7 MB, free: 5.691 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.4146, allocations: 4 kB / 458.7 MB, free: 5.688 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.4146, allocations: 0 / 458.7 MB, free: 5.688 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.4146, allocations: 3.984 kB / 458.7 MB, free: 5.684 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002107/0.4148, allocations: 256.7 kB / 458.9 MB, free: 5.418 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.4149, allocations: 0 / 458.9 MB, free: 5.418 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.415e-05/0.4149, allocations: 11.98 kB / 458.9 MB, free: 5.406 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.4149, allocations: 0 / 458.9 MB, free: 5.406 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.4149, allocations: 4 kB / 458.9 MB, free: 5.402 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.4149, allocations: 0 / 458.9 MB, free: 5.402 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.4149, allocations: 0 / 458.9 MB, free: 5.402 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002419/0.4152, allocations: 208.9 kB / 459.1 MB, free: 5.191 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.438e-05/0.4153, allocations: 104.8 kB / 459.2 MB, free: 5.074 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.142e-05/0.4153, allocations: 4 kB / 459.2 MB, free: 5.07 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001091/0.4154, allocations: 19.8 kB / 459.3 MB, free: 5.055 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.635e-05/0.4155, allocations: 11.98 kB / 459.3 MB, free: 5.043 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.317e-05/0.4155, allocations: 7.812 kB / 459.3 MB, free: 5.039 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001919/0.4157, allocations: 207.7 kB / 459.5 MB, free: 4.871 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4157, allocations: 0 / 459.5 MB, free: 4.871 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002493/0.416, allocations: 54.97 kB / 459.5 MB, free: 4.824 MB / 330.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) * 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.001256/0.4172, allocations: 1.148 MB / 460.7 MB, free: 3.676 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001952/0.4175, allocations: 87.3 kB / 460.8 MB, free: 3.613 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.4175, allocations: 4.062 kB / 460.8 MB, free: 3.609 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.229e-05/0.4176, allocations: 55.36 kB / 460.8 MB, free: 3.57 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002935/0.4179, allocations: 40.17 kB / 460.9 MB, free: 3.539 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006279/0.4185, allocations: 344.1 kB / 461.2 MB, free: 3.199 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002918/0.4188, allocations: 0.7361 MB / 461.9 MB, free: 2.441 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.639e-05/0.4189, allocations: 33.67 kB / 462 MB, free: 2.41 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.469e-05/0.419, allocations: 63.11 kB / 462 MB, free: 2.367 MB / 330.7 MB Notification: Performance of SimCode: time 2.41e-07/0.419, allocations: 0 / 462 MB, free: 2.367 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01603/0.4351, allocations: 4.579 MB / 466.6 MB, free: 13.78 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001588/0.4352, allocations: 189.8 kB / 466.8 MB, free: 13.55 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.594/2.029, allocations: 0 / 466.8 MB, free: 13.55 MB / 346.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