Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) 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_Synchronous.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked",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.002266/0.002272, allocations: 181.1 kB / 13.23 MB, free: 2.086 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.264/2.264, allocations: 205.2 MB / 219 MB, free: 9.199 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.001783/0.001783, allocations: 97 kB / 267.1 MB, free: 9.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1119/0.1119, allocations: 12.59 MB / 327.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.729e-05/4.756e-05, allocations: 7.984 kB / 386.1 MB, free: 69.49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09738/0.09748, allocations: 50.36 MB / 436.5 MB, free: 19.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4372/0.5348, allocations: 78.15 MB / 0.5026 GB, free: 11.59 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002803/0.5351, allocations: 77.28 kB / 0.5026 GB, free: 11.59 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004906/0.54, allocations: 1.339 MB / 0.5039 GB, free: 11.22 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.896e-06/0.5401, allocations: 0 / 0.5039 GB, free: 11.22 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.016e-05/0.5401, allocations: 3.938 kB / 0.5039 GB, free: 11.21 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003433/0.5405, allocations: 349.3 kB / 0.5043 GB, free: 10.86 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.5405, allocations: 7.656 kB / 0.5043 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.008e-05/0.5406, allocations: 36.67 kB / 0.5043 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.377e-05/0.5406, allocations: 7.75 kB / 0.5043 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001754/0.5408, allocations: 191.6 kB / 0.5045 GB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.5408, allocations: 7.859 kB / 0.5045 GB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.186e-05/0.5408, allocations: 0 / 0.5045 GB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002075/0.5411, allocations: 88.28 kB / 0.5046 GB, free: 10.54 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.5411, allocations: 3.984 kB / 0.5046 GB, free: 10.53 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.017e-05/0.5411, allocations: 3.812 kB / 0.5046 GB, free: 10.53 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.5411, allocations: 4 kB / 0.5046 GB, free: 10.53 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.435e-05/0.5412, allocations: 11.31 kB / 0.5046 GB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003801/0.5416, allocations: 263.2 kB / 0.5049 GB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.97e-05/0.5416, allocations: 40.66 kB / 0.5049 GB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.433e-05/0.5417, allocations: 25.77 kB / 0.5049 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/0.5417, allocations: 3.828 kB / 0.5049 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.012e-05/0.5418, allocations: 37.81 kB / 0.505 GB, free: 10.14 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 2.375e-06/0.5418, allocations: 0 / 0.505 GB, free: 10.14 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001768/0.542, allocations: 51.58 kB / 0.505 GB, free: 10.1 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.937e-05/0.542, allocations: 81.17 kB / 0.5051 GB, free: 10 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001185/0.5421, allocations: 128.1 kB / 0.5052 GB, free: 9.906 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.112e-05/0.5422, allocations: 25.7 kB / 0.5053 GB, free: 9.875 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.075e-05/0.5422, allocations: 87.3 kB / 0.5053 GB, free: 9.793 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.548e-05/0.5422, allocations: 6.531 kB / 0.5053 GB, free: 9.789 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.168e-06/0.5422, allocations: 0 / 0.5053 GB, free: 9.789 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.931e-05/0.5423, allocations: 318.7 kB / 0.5056 GB, free: 9.473 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.044e-05/0.5423, allocations: 3.844 kB / 0.5057 GB, free: 9.473 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.53e-05/0.5424, allocations: 17.56 kB / 0.5057 GB, free: 9.453 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.773e-05/0.5424, allocations: 9.781 kB / 0.5057 GB, free: 9.453 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.5424, allocations: 0 / 0.5057 GB, free: 9.453 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.871e-05/0.5425, allocations: 46.73 kB / 0.5057 GB, free: 9.418 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.5425, allocations: 3.844 kB / 0.5057 GB, free: 9.418 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.5426, allocations: 0 / 0.5057 GB, free: 9.418 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.5426, allocations: 3.844 kB / 0.5057 GB, free: 9.418 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.895e-05/0.5427, allocations: 10.03 kB / 0.5057 GB, free: 9.414 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.5427, allocations: 0 / 0.5057 GB, free: 9.414 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.687e-05/0.5428, allocations: 6.672 kB / 0.5057 GB, free: 9.414 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.678e-06/0.5428, allocations: 0 / 0.5057 GB, free: 9.414 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 5.327e-05/0.5429, allocations: 116.5 kB / 0.5059 GB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.345e-05/0.5429, allocations: 40.7 kB / 0.5059 GB, free: 9.258 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.521e-05/0.543, allocations: 10.59 kB / 0.5059 GB, free: 9.258 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.543, allocations: 0 / 0.5059 GB, free: 9.258 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.543, allocations: 7.875 kB / 0.5059 GB, free: 9.254 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.543, allocations: 0 / 0.5059 GB, free: 9.254 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001591/0.5432, allocations: 170.7 kB / 0.5061 GB, free: 9.059 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.5432, allocations: 0 / 0.5061 GB, free: 9.059 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.801e-05/0.5433, allocations: 10.64 kB / 0.5061 GB, free: 9.059 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.5433, allocations: 0 / 0.5061 GB, free: 9.059 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.747e-06/0.5433, allocations: 0 / 0.5061 GB, free: 9.059 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.5433, allocations: 0 / 0.5061 GB, free: 9.059 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.5433, allocations: 3.844 kB / 0.5061 GB, free: 9.059 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001233/0.5435, allocations: 171.2 kB / 0.5063 GB, free: 8.891 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.519e-05/0.5435, allocations: 88.05 kB / 0.5063 GB, free: 8.793 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.058e-05/0.5436, allocations: 3.094 kB / 0.5063 GB, free: 8.793 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.448e-05/0.5437, allocations: 3.844 kB / 0.5063 GB, free: 8.793 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.554e-05/0.5437, allocations: 3.75 kB / 0.5063 GB, free: 8.793 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.969e-06/0.5437, allocations: 3.844 kB / 0.5063 GB, free: 8.793 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.005e-05/0.5438, allocations: 104.9 kB / 0.5064 GB, free: 8.715 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5438, allocations: 3.938 kB / 0.5065 GB, free: 8.711 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002704/0.5441, allocations: 10.58 kB / 0.5065 GB, free: 8.711 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0002988/0.5444, allocations: 0.7612 MB / 0.5072 GB, free: 7.949 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 8.376e-05/0.5445, allocations: 11.19 kB / 0.5072 GB, free: 7.949 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.5445, allocations: 0 / 0.5072 GB, free: 7.949 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.387e-05/0.5445, allocations: 7.094 kB / 0.5072 GB, free: 7.949 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002768/0.5448, allocations: 16.5 kB / 0.5072 GB, free: 7.945 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004156/0.5453, allocations: 124.5 kB / 0.5074 GB, free: 7.824 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001653/0.5454, allocations: 0.7017 MB / 0.508 GB, free: 7.121 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.777e-05/0.5455, allocations: 4 kB / 0.508 GB, free: 7.117 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.535e-05/0.5455, allocations: 14.84 kB / 0.5081 GB, free: 7.109 MB / 330.7 MB Notification: Performance of SimCode: time 6.61e-07/0.5456, allocations: 0 / 0.5081 GB, free: 7.109 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01928/0.5648, allocations: 1.227 MB / 0.5093 GB, free: 6.805 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003902/0.5653, allocations: 179.1 kB / 0.5094 GB, free: 6.578 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.487/3.053, allocations: 0 / 0.5094 GB, free: 6.578 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked_res.mat does not exist to compare? outputFormat=mat