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.001549/0.001549, allocations: 188.4 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.071/2.071, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.00114/0.001139, allocations: 92.42 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000559/0.0005589, allocations: 16 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3336/0.3342, allocations: 47.56 MB / 374.6 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1365/0.4708, allocations: 79.37 MB / 454 MB, free: 1.266 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002674/0.4711, allocations: 75.97 kB / 454.1 MB, free: 1.191 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02646/0.4976, allocations: 5.714 MB / 459.8 MB, free: 11.48 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4976, allocations: 4 kB / 459.8 MB, free: 11.47 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.953e-05/0.4977, allocations: 4 kB / 459.8 MB, free: 11.47 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.001063/0.4987, allocations: 0.5196 MB / 460.3 MB, free: 10.89 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/0.4988, allocations: 8.031 kB / 460.3 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.555e-05/0.4989, allocations: 42.55 kB / 460.4 MB, free: 10.84 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.153e-05/0.499, allocations: 19.81 kB / 460.4 MB, free: 10.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005275/0.4995, allocations: 257.7 kB / 460.6 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.227e-05/0.4995, allocations: 4 kB / 460.6 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.304e-05/0.4996, allocations: 11.95 kB / 460.6 MB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003364/0.4999, allocations: 125.9 kB / 460.8 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.5, allocations: 4 kB / 460.8 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.172e-05/0.5, allocations: 8 kB / 460.8 MB, free: 10.35 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.5, allocations: 3.984 kB / 460.8 MB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002391/0.5003, allocations: 51.91 kB / 460.8 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009517/0.5012, allocations: 0.6222 MB / 461.5 MB, free: 9.609 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004008/0.5017, allocations: 123.9 kB / 461.6 MB, free: 9.461 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.563e-05/0.5017, allocations: 8 kB / 461.6 MB, free: 9.453 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003234/0.502, allocations: 131.9 kB / 461.7 MB, free: 9.305 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 2.585e-06/0.5021, allocations: 0 / 461.7 MB, free: 9.305 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0007156/0.5028, allocations: 181.3 kB / 461.9 MB, free: 9.121 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.359e-05/0.5029, allocations: 128.5 kB / 462 MB, free: 8.965 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004792/0.5034, allocations: 264.1 kB / 462.3 MB, free: 8.699 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.015e-05/0.5034, allocations: 29.7 kB / 462.3 MB, free: 8.664 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001237/0.5036, allocations: 174.8 kB / 462.5 MB, free: 8.488 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.192e-05/0.5036, allocations: 27.72 kB / 462.5 MB, free: 8.461 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.509e-05/0.5037, allocations: 4 kB / 462.5 MB, free: 8.457 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.5038, allocations: 323 kB / 462.8 MB, free: 8.133 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001631/0.504, allocations: 31.98 kB / 462.9 MB, free: 8.102 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002126/0.5042, allocations: 81.92 kB / 462.9 MB, free: 8 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001738/0.5044, allocations: 47.97 kB / 463 MB, free: 7.953 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.5044, allocations: 0 / 463 MB, free: 7.953 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000478/0.5049, allocations: 137.4 kB / 463.1 MB, free: 7.812 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.251e-05/0.505, allocations: 8 kB / 463.1 MB, free: 7.805 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.505, allocations: 0 / 463.1 MB, free: 7.805 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.505, allocations: 4 kB / 463.1 MB, free: 7.801 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001409/0.5051, allocations: 12.09 kB / 463.1 MB, free: 7.789 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.839e-06/0.5052, allocations: 4 kB / 463.1 MB, free: 7.785 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002169/0.5054, allocations: 19.92 kB / 463.2 MB, free: 7.766 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.989e-05/0.5054, allocations: 8.625 kB / 463.2 MB, free: 7.758 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.0002192/0.5057, allocations: 145.6 kB / 463.3 MB, free: 7.605 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.252e-05/0.5057, allocations: 23.72 kB / 463.3 MB, free: 7.582 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003831/0.5061, allocations: 127.3 kB / 463.5 MB, free: 7.453 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.5062, allocations: 4 kB / 463.5 MB, free: 7.449 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.5062, allocations: 0 / 463.5 MB, free: 7.449 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.5062, allocations: 4 kB / 463.5 MB, free: 7.445 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003607/0.5066, allocations: 249.5 kB / 463.7 MB, free: 7.152 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.832e-06/0.5066, allocations: 3.953 kB / 463.7 MB, free: 7.148 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.939e-05/0.5066, allocations: 8 kB / 463.7 MB, free: 7.141 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.026e-05/0.5067, allocations: 4 kB / 463.7 MB, free: 7.137 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.595e-05/0.5067, allocations: 3.938 kB / 463.7 MB, free: 7.133 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.5067, allocations: 4 kB / 463.7 MB, free: 7.129 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.5067, allocations: 0 / 463.7 MB, free: 7.129 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005207/0.5072, allocations: 213.8 kB / 463.9 MB, free: 6.883 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001166/0.5074, allocations: 104.9 kB / 464 MB, free: 6.762 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.356e-05/0.5074, allocations: 4 kB / 464 MB, free: 6.758 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001811/0.5076, allocations: 19.98 kB / 464.1 MB, free: 6.738 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.199e-05/0.5077, allocations: 11.98 kB / 464.1 MB, free: 6.727 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.606e-05/0.5078, allocations: 4 kB / 464.1 MB, free: 6.723 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000351/0.5081, allocations: 212.4 kB / 464.3 MB, free: 6.52 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.5081, allocations: 4 kB / 464.3 MB, free: 6.516 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004186/0.5086, allocations: 40 kB / 464.3 MB, free: 6.477 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.002085/0.5107, allocations: 1.218 MB / 465.6 MB, free: 5.246 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005105/0.5112, allocations: 99.89 kB / 465.6 MB, free: 5.148 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.5112, allocations: 0 / 465.6 MB, free: 5.148 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002443/0.5115, allocations: 63.91 kB / 465.7 MB, free: 5.086 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004864/0.512, allocations: 42.55 kB / 465.8 MB, free: 5.043 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003118/0.5151, allocations: 1.769 MB / 467.5 MB, free: 3.195 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004362/0.5156, allocations: 0.74 MB / 468.3 MB, free: 2.43 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000182/0.5158, allocations: 59.36 kB / 468.3 MB, free: 2.375 MB / 346.7 MB Notification: Performance of SimCode: time 1.202e-06/0.5158, allocations: 0 / 468.3 MB, free: 2.375 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.77/3.285, allocations: 3.827 MB / 472.1 MB, free: 14.55 MB / 362.7 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