Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_3_2_3_cpp_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.001415, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.107/2.107, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001102/0.001102, allocations: 100.5 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.688e-05/1.685e-05, allocations: 0 / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3369/0.3369, allocations: 47.55 MB / 362.4 MB, free: 45.71 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.126/0.463, allocations: 78.63 MB / 441 MB, free: 7.598 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002557/0.4633, allocations: 68.62 kB / 441.1 MB, free: 7.531 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02568/0.489, allocations: 5.657 MB / 446.8 MB, free: 1.93 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.489, allocations: 0 / 446.8 MB, free: 1.93 MB / 331.1 MB Notification: Performance of Transformations before backend: time 3.107e-05/0.4891, allocations: 4 kB / 446.8 MB, free: 1.926 MB / 331.1 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.0009123/0.49, allocations: 494.2 kB / 447.3 MB, free: 1.395 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/0.49, allocations: 8.031 kB / 447.3 MB, free: 1.387 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.747e-05/0.4901, allocations: 19.81 kB / 447.3 MB, free: 1.367 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005553/0.4907, allocations: 261.7 kB / 447.5 MB, free: 1.066 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.586e-05/0.4908, allocations: 4 kB / 447.5 MB, free: 1.062 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.126e-05/0.4908, allocations: 4 kB / 447.5 MB, free: 1.059 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000171/0.491, allocations: 43.94 kB / 447.6 MB, free: 1.016 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002477/0.4912, allocations: 106.2 kB / 447.7 MB, free: 0.8906 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.4913, allocations: 4 kB / 447.7 MB, free: 0.8867 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.358e-05/0.4913, allocations: 4 kB / 447.7 MB, free: 0.8828 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.4913, allocations: 0 / 447.7 MB, free: 0.8828 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008965/0.4922, allocations: 0.5959 MB / 448.3 MB, free: 244 kB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002631/0.4925, allocations: 115.9 kB / 448.4 MB, free: 100 kB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001075/0.4927, allocations: 42.7 kB / 448.4 MB, free: 48 kB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.877e-05/0.4927, allocations: 1.031 kB / 448.4 MB, free: 48 kB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002771/0.493, allocations: 119.4 kB / 448.6 MB, free: 15.91 MB / 347.1 MB Notification: Performance of pre-optimization done (n=12): time 1.914e-06/0.493, allocations: 0 / 448.6 MB, free: 15.91 MB / 347.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004315/0.4934, allocations: 125.3 kB / 448.7 MB, free: 15.78 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.581e-05/0.4935, allocations: 132.5 kB / 448.8 MB, free: 15.62 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004439/0.494, allocations: 256.5 kB / 449.1 MB, free: 15.36 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 3.16e-05/0.494, allocations: 25.7 kB / 449.1 MB, free: 15.33 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.4942, allocations: 174.6 kB / 449.3 MB, free: 15.16 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.935e-05/0.4942, allocations: 23.62 kB / 449.3 MB, free: 15.14 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.799e-06/0.4943, allocations: 0 / 449.3 MB, free: 15.14 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.4944, allocations: 322.8 kB / 449.6 MB, free: 14.81 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.084e-05/0.4945, allocations: 25.34 kB / 449.6 MB, free: 14.79 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001374/0.4946, allocations: 78 kB / 449.7 MB, free: 14.69 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001081/0.4948, allocations: 32.8 kB / 449.7 MB, free: 14.66 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.4948, allocations: 3.938 kB / 449.7 MB, free: 14.66 MB / 347.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002977/0.4951, allocations: 110.8 kB / 449.8 MB, free: 14.54 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.4951, allocations: 4 kB / 449.9 MB, free: 14.54 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.4951, allocations: 4.125 kB / 449.9 MB, free: 14.54 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.4952, allocations: 4 kB / 449.9 MB, free: 14.53 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001928/0.4954, allocations: 19.98 kB / 449.9 MB, free: 14.51 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.4954, allocations: 3.938 kB / 449.9 MB, free: 14.51 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000228/0.4956, allocations: 15.91 kB / 449.9 MB, free: 14.49 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.608e-05/0.4957, allocations: 7.984 kB / 449.9 MB, free: 14.48 MB / 347.1 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 0.0001452/0.4958, allocations: 109.5 kB / 450 MB, free: 14.37 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003523/0.4962, allocations: 137.3 kB / 450.1 MB, free: 14.23 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.643e-05/0.4963, allocations: 23.72 kB / 450.2 MB, free: 14.21 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003287/0.4966, allocations: 114.5 kB / 450.3 MB, free: 14.1 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.4966, allocations: 0 / 450.3 MB, free: 14.1 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.325e-05/0.4967, allocations: 4 kB / 450.3 MB, free: 14.09 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.4967, allocations: 0 / 450.3 MB, free: 14.09 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003438/0.497, allocations: 222.1 kB / 450.5 MB, free: 13.84 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.67e-06/0.497, allocations: 3.953 kB / 450.5 MB, free: 13.84 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.116e-05/0.4971, allocations: 8 kB / 450.5 MB, free: 13.83 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.661e-06/0.4971, allocations: 0 / 450.5 MB, free: 13.83 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.924e-05/0.4972, allocations: 8.031 kB / 450.5 MB, free: 13.82 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.4972, allocations: 0 / 450.5 MB, free: 13.82 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.4972, allocations: 0 / 450.5 MB, free: 13.82 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003648/0.4976, allocations: 191.1 kB / 450.7 MB, free: 13.6 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001226/0.4977, allocations: 116.8 kB / 450.8 MB, free: 13.46 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.844e-05/0.4978, allocations: 0 / 450.8 MB, free: 13.46 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001929/0.498, allocations: 15.98 kB / 450.8 MB, free: 13.45 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.133e-05/0.4981, allocations: 11.98 kB / 450.8 MB, free: 13.44 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.057e-05/0.4981, allocations: 4 kB / 450.9 MB, free: 13.43 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0003113/0.4984, allocations: 204.5 kB / 451.1 MB, free: 13.23 MB / 347.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4984, allocations: 0 / 451.1 MB, free: 13.23 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0004233/0.4989, allocations: 44 kB / 451.1 MB, free: 13.19 MB / 347.1 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.00179/0.5007, allocations: 1.127 MB / 452.2 MB, free: 12.08 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0003656/0.5011, allocations: 83.92 kB / 452.3 MB, free: 12 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 5.089e-06/0.5011, allocations: 0 / 452.3 MB, free: 12 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001603/0.5013, allocations: 51.92 kB / 452.4 MB, free: 11.95 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00053/0.5018, allocations: 52.5 kB / 452.4 MB, free: 11.89 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001094/0.5029, allocations: 359.1 kB / 452.8 MB, free: 11.49 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003916/0.5033, allocations: 0.7358 MB / 453.5 MB, free: 10.73 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001648/0.5035, allocations: 63.41 kB / 453.6 MB, free: 10.67 MB / 347.1 MB Notification: Performance of SimCode: time 9.01e-07/0.5035, allocations: 0 / 453.6 MB, free: 10.67 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.866/3.37, allocations: 3.741 MB / 457.3 MB, free: 6.934 MB / 347.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources_res.mat does not exist to compare? outputFormat=mat