Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001466/0.001467, allocations: 98.8 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001344/0.001344, allocations: 198.9 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.537/1.537, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003526/0.0003526, allocations: 4 kB / 306.7 MB, free: 1.293 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1741/0.1745, allocations: 51.5 MB / 358.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2): time 0.002438/0.1771, allocations: 1.445 MB / 359.6 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001293/0.1784, allocations: 0.6159 MB / 360.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001672/0.1786, allocations: 3.938 kB / 360.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001616/0.1787, allocations: 11.92 kB / 360.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002615/0.179, allocations: 31.83 kB / 360.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000482/0.1795, allocations: 115.3 kB / 360.4 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002175/0.1797, allocations: 99.75 kB / 360.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001243/0.1799, allocations: 25.53 kB / 360.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002049/0.1801, allocations: 59.75 kB / 360.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000219/0.1803, allocations: 95.66 kB / 360.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.109e-05/0.1804, allocations: 8 kB / 360.7 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.503e-05/0.1804, allocations: 8 kB / 360.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.13e-05/0.1805, allocations: 63.8 kB / 360.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.666e-05/0.1806, allocations: 57.62 kB / 360.8 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000231/0.1809, allocations: 143.9 kB / 361 MB, free: 11.01 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.1809, allocations: 0 / 361 MB, free: 11.01 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1809, allocations: 0 / 361 MB, free: 11.01 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.1809, allocations: 4 kB / 361 MB, free: 11 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0009111/0.1818, allocations: 486.4 kB / 361.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.351e-05/0.1819, allocations: 12.03 kB / 361.5 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.479e-05/0.182, allocations: 50.55 kB / 361.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002086/0.1822, allocations: 35.7 kB / 361.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000356/0.1826, allocations: 242.6 kB / 361.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.503e-05/0.1826, allocations: 16 kB / 361.8 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.228e-05/0.1826, allocations: 19.95 kB / 361.8 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001147/0.1838, allocations: 0.6296 MB / 362.4 MB, free: 9.406 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.1838, allocations: 4 kB / 362.4 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.514e-05/0.1839, allocations: 11.94 kB / 362.5 MB, free: 9.391 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.248e-05/0.1839, allocations: 8 kB / 362.5 MB, free: 9.383 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004103/0.1843, allocations: 183.8 kB / 362.6 MB, free: 9.203 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000546/0.1849, allocations: 374.3 kB / 363 MB, free: 8.781 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005155/0.1854, allocations: 243.6 kB / 363.3 MB, free: 8.516 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.112e-05/0.1854, allocations: 4.062 kB / 363.3 MB, free: 8.512 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.112e-05/0.1855, allocations: 46.61 kB / 363.3 MB, free: 8.457 MB / 302.1 MB Notification: Performance of pre-optimization done (n=39): time 2.615e-06/0.1855, allocations: 0 / 363.3 MB, free: 8.457 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.00102/0.1865, allocations: 421.8 kB / 363.7 MB, free: 8.039 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001824/0.1867, allocations: 139.7 kB / 363.8 MB, free: 7.879 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002237/0.187, allocations: 178.5 kB / 364 MB, free: 7.691 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.488e-05/0.187, allocations: 33.7 kB / 364.1 MB, free: 7.652 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.617e-05/0.1871, allocations: 101.1 kB / 364.2 MB, free: 7.551 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.933e-05/0.1872, allocations: 47.53 kB / 364.2 MB, free: 7.504 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.389e-05/0.1872, allocations: 11.94 kB / 364.2 MB, free: 7.492 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.1873, allocations: 334.8 kB / 364.5 MB, free: 7.156 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001478/0.1875, allocations: 76.81 kB / 364.6 MB, free: 7.082 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003475/0.1878, allocations: 326.7 kB / 364.9 MB, free: 6.641 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002511/0.1881, allocations: 139.8 kB / 365.1 MB, free: 6.504 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/0.1881, allocations: 4 kB / 365.1 MB, free: 6.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006347/0.1888, allocations: 404.8 kB / 365.5 MB, free: 6.098 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.674e-05/0.1888, allocations: 8 kB / 365.5 MB, free: 6.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.9e-05/0.1888, allocations: 8.875 kB / 365.5 MB, free: 6.082 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.063e-05/0.1889, allocations: 19.94 kB / 365.5 MB, free: 6.062 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002728/0.1891, allocations: 83.84 kB / 365.6 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.252e-05/0.1892, allocations: 19.92 kB / 365.6 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001901/0.1894, allocations: 35.75 kB / 365.6 MB, free: 5.926 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.962e-05/0.1894, allocations: 24 kB / 365.7 MB, free: 5.902 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 13 (superSampleIpo.ticks,$CLKPRE.superSampleIpo.ticks,superSampleIpo.usedFactor,FIR1.first,$CLKPRE.FIR1.first,FIR2.first,$CLKPRE.FIR2.first,upSample.b_super,$CLKPRE.upSample.b_super,superSampleIpo.first,$CLKPRE.superSampleIpo.first,upSample.b,$CLKPRE.upSample.b) * Number of discrete states: 0 () * Number of clocked states: 13 (superSampleIpo.ticks,FIR1.first,FIR1.u_buffer[2],FIR1.u_buffer[1],FIR2.first,FIR2.u_buffer[4],FIR2.u_buffer[3],FIR2.u_buffer[2],FIR2.u_buffer[1],upSample.b_super,superSampleIpo.first,superSampleIpo.uu,upSample.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 52 * 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.0002114/0.1896, allocations: 182.4 kB / 365.8 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000538/0.1902, allocations: 285.3 kB / 366.1 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.921e-05/0.1903, allocations: 42.64 kB / 366.2 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.1903, allocations: 8 kB / 366.2 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.1903, allocations: 0 / 366.2 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.1903, allocations: 0 / 366.2 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002978/0.1906, allocations: 249.2 kB / 366.4 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/0.1907, allocations: 0 / 366.4 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002731/0.1909, allocations: 63.91 kB / 366.5 MB, free: 5.023 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.191, allocations: 4 kB / 366.5 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.577e-05/0.191, allocations: 11.98 kB / 366.5 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.191, allocations: 0 / 366.5 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.222e-06/0.191, allocations: 7.938 kB / 366.5 MB, free: 5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000657/0.1917, allocations: 463.1 kB / 367 MB, free: 4.516 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001537/0.1918, allocations: 128.8 kB / 367.1 MB, free: 4.371 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.319e-05/0.1919, allocations: 16 kB / 367.1 MB, free: 4.355 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001513/0.1921, allocations: 19.98 kB / 367.1 MB, free: 4.336 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.067e-05/0.1921, allocations: 0 / 367.1 MB, free: 4.336 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.499e-05/0.1921, allocations: 11.98 kB / 367.1 MB, free: 4.324 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001185/0.1923, allocations: 132.5 kB / 367.3 MB, free: 4.195 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1923, allocations: 0 / 367.3 MB, free: 4.195 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004273/0.1927, allocations: 48 kB / 367.3 MB, free: 4.148 MB / 302.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: 7 (upSample.b_super,FIR2.first,FIR1.first,superSampleIpo.usedFactor,superSampleIpo.ticks,upSample.b,superSampleIpo.first) * Number of discrete states: 0 () * Number of clocked states: 13 (upSample.b_super,FIR2.u_buffer[1],FIR2.u_buffer[2],FIR2.u_buffer[3],FIR2.u_buffer[4],FIR2.first,FIR1.u_buffer[1],FIR1.u_buffer[2],FIR1.first,superSampleIpo.ticks,upSample.b,superSampleIpo.uu,superSampleIpo.first) * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 39 * 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.001349/0.1941, allocations: 1.339 MB / 368.6 MB, free: 2.773 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005894/0.1947, allocations: 298.1 kB / 368.9 MB, free: 2.484 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1947, allocations: 0 / 368.9 MB, free: 2.484 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.941e-05/0.1947, allocations: 8 kB / 368.9 MB, free: 2.477 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006039/0.1953, allocations: 211.7 kB / 369.1 MB, free: 2.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1976/0.3929, allocations: 7.258 MB / 376.4 MB, free: 14.4 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004677/0.3935, allocations: 0.7818 MB / 377.2 MB, free: 13.7 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001456/0.3937, allocations: 23.55 kB / 377.2 MB, free: 13.7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002093/0.3939, allocations: 74.19 kB / 377.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of SimCode: time 9.41e-07/0.3939, allocations: 0 / 377.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0235/0.4174, allocations: 4.631 MB / 381.9 MB, free: 13.42 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001871/0.4176, allocations: 186.2 kB / 382.1 MB, free: 13.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.954/2.371, allocations: 8.781 kB / 382.1 MB, free: 13.18 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2_fmu --startTime=0 --stopTime=0.06 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2_res.mat does not exist to compare? outputFormat=mat