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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001019/0.001019, allocations: 202.5 kB / 17.08 MB, free: 5.059 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.19/1.19, allocations: 227.2 MB / 245 MB, free: 7.656 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008669/0.0008669, allocations: 98.23 kB / 297.2 MB, free: 6.188 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000238/0.000238, allocations: 7.984 kB / 358 MB, free: 9.438 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1996/0.1998, allocations: 51.48 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09309/0.293, allocations: 79.13 MB / 488.6 MB, free: 11.46 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002355/0.2933, allocations: 79.95 kB / 488.7 MB, free: 11.38 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01654/0.3098, allocations: 5.72 MB / 494.4 MB, free: 5.66 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3099, allocations: 0 / 494.4 MB, free: 5.66 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.378e-05/0.3099, allocations: 4 kB / 494.4 MB, free: 5.656 MB / 362.7 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.0006642/0.3106, allocations: 498.3 kB / 494.9 MB, free: 5.121 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.3106, allocations: 8.031 kB / 494.9 MB, free: 5.113 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.923e-05/0.3107, allocations: 54.55 kB / 495 MB, free: 5.051 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001525/0.3108, allocations: 39.7 kB / 495 MB, free: 5.012 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003008/0.3111, allocations: 246.6 kB / 495.3 MB, free: 4.73 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.326e-05/0.3112, allocations: 23.94 kB / 495.3 MB, free: 4.707 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.888e-05/0.3112, allocations: 16 kB / 495.3 MB, free: 4.691 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001009/0.3122, allocations: 0.626 MB / 495.9 MB, free: 4.043 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.3123, allocations: 4 kB / 495.9 MB, free: 4.039 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.179e-05/0.3123, allocations: 4 kB / 495.9 MB, free: 4.035 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.67e-05/0.3123, allocations: 15.94 kB / 496 MB, free: 4.02 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003601/0.3127, allocations: 187.8 kB / 496.1 MB, free: 3.836 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000452/0.3132, allocations: 370.3 kB / 496.5 MB, free: 3.418 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004/0.3136, allocations: 255.2 kB / 496.7 MB, free: 3.145 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.602e-05/0.3136, allocations: 4.062 kB / 496.7 MB, free: 3.141 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.259e-05/0.3136, allocations: 43.11 kB / 496.8 MB, free: 3.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=39): time 1.423e-06/0.3137, allocations: 0 / 496.8 MB, free: 3.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=39): time 0.0008213/0.3145, allocations: 425.2 kB / 497.2 MB, free: 2.668 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001219/0.3146, allocations: 135.7 kB / 497.3 MB, free: 2.512 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001426/0.3148, allocations: 153.4 kB / 497.5 MB, free: 2.352 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.779e-05/0.3148, allocations: 37.7 kB / 497.5 MB, free: 2.309 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.138e-05/0.3149, allocations: 101.1 kB / 497.6 MB, free: 2.207 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.6e-05/0.3149, allocations: 47.73 kB / 497.7 MB, free: 2.16 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.166e-05/0.3149, allocations: 12.12 kB / 497.7 MB, free: 2.148 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.3151, allocations: 338.8 kB / 498 MB, free: 1.809 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001338/0.3152, allocations: 80.77 kB / 498.1 MB, free: 1.73 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002853/0.3155, allocations: 322.7 kB / 498.4 MB, free: 1.289 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001985/0.3157, allocations: 135.8 kB / 498.5 MB, free: 1.156 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/0.3157, allocations: 4 kB / 498.5 MB, free: 1.152 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005495/0.3163, allocations: 405.3 kB / 498.9 MB, free: 0.75 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.3163, allocations: 12 kB / 499 MB, free: 0.7383 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.3163, allocations: 8 kB / 499 MB, free: 0.7305 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.3163, allocations: 12 kB / 499 MB, free: 0.7188 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002262/0.3166, allocations: 83.84 kB / 499.1 MB, free: 0.6367 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.85e-05/0.3166, allocations: 19.92 kB / 499.1 MB, free: 0.6172 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001556/0.3168, allocations: 28.16 kB / 499.1 MB, free: 0.5898 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.547e-05/0.3168, allocations: 28 kB / 499.1 MB, free: 0.5625 MB / 362.7 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 (FIR1.first,$CLKPRE.FIR1.first,FIR2.first,$CLKPRE.FIR2.first,upSample.b_super,$CLKPRE.upSample.b_super,superSampleIpo.ticks,$CLKPRE.superSampleIpo.ticks,superSampleIpo.usedFactor,superSampleIpo.first,$CLKPRE.superSampleIpo.first,upSample.b,$CLKPRE.upSample.b) * Number of discrete states: 0 () * Number of clocked states: 13 (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.ticks,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.0001601/0.317, allocations: 186.1 kB / 499.3 MB, free: 380 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004857/0.3175, allocations: 293.2 kB / 499.6 MB, free: 80 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.596e-05/0.3175, allocations: 30.66 kB / 499.6 MB, free: 48 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.3176, allocations: 4 kB / 499.6 MB, free: 44 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3176, allocations: 0 / 499.6 MB, free: 44 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/0.3176, allocations: 11.92 kB / 499.6 MB, free: 32 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002688/0.3179, allocations: 249.2 kB / 499.9 MB, free: 15.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.3179, allocations: 4 kB / 499.9 MB, free: 15.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002643/0.3181, allocations: 63.89 kB / 500 MB, free: 15.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.3181, allocations: 0 / 500 MB, free: 15.67 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.248e-05/0.3182, allocations: 12 kB / 500 MB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.3182, allocations: 4 kB / 500 MB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3182, allocations: 0 / 500 MB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006174/0.3188, allocations: 463.1 kB / 0.4887 GB, free: 15.17 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001397/0.319, allocations: 132.7 kB / 0.4888 GB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.871e-05/0.319, allocations: 19.98 kB / 0.4888 GB, free: 15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001365/0.3192, allocations: 8 kB / 0.4888 GB, free: 15 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.46e-05/0.3192, allocations: 15.92 kB / 0.4889 GB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.014e-05/0.3192, allocations: 12 kB / 0.4889 GB, free: 14.97 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.405e-05/0.3193, allocations: 132.5 kB / 0.489 GB, free: 14.84 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3194, allocations: 0 / 0.489 GB, free: 14.84 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003683/0.3197, allocations: 52 kB / 0.489 GB, free: 14.79 MB / 378.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: 7 (superSampleIpo.usedFactor,superSampleIpo.ticks,upSample.b_super,FIR2.first,FIR1.first,upSample.b,superSampleIpo.first) * Number of discrete states: 0 () * Number of clocked states: 13 (superSampleIpo.ticks,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,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.001256/0.321, allocations: 1.34 MB / 0.4904 GB, free: 13.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004414/0.3214, allocations: 289.9 kB / 0.4906 GB, free: 13.13 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3215, allocations: 0 / 0.4906 GB, free: 13.13 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.851e-05/0.3215, allocations: 12.3 kB / 0.4906 GB, free: 13.12 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005542/0.3221, allocations: 217.8 kB / 0.4908 GB, free: 12.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00425/0.3263, allocations: 7.218 MB / 0.4979 GB, free: 5.457 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003945/0.3267, allocations: 0.792 MB / 0.4987 GB, free: 4.641 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.502e-05/0.3268, allocations: 22.3 kB / 0.4987 GB, free: 4.617 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00012/0.3269, allocations: 71.5 kB / 0.4988 GB, free: 4.547 MB / 378.7 MB Notification: Performance of SimCode: time 3.2e-07/0.327, allocations: 3.938 kB / 0.4988 GB, free: 4.543 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01605/0.343, allocations: 4.627 MB / 0.5033 GB, free: 96 kB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.1576/0.5006, allocations: 191.5 kB / 0.5035 GB, free: 102.6 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.731/2.231, allocations: 2.297 kB / 0.5035 GB, free: 102.6 MB / 378.7 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