Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.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.UpSample2,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_UpSample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_UpSample2",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.001786/0.001785, allocations: 179.7 kB / 15.8 MB, free: 6.34 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.003/2.003, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001118/0.001118, allocations: 98.86 kB / 270.3 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09362/0.09362, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000554/0.0005541, allocations: 17.5 kB / 392.1 MB, free: 54.82 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1138, allocations: 50.37 MB / 442.5 MB, free: 10.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1413/0.2551, allocations: 79.23 MB / 0.5095 GB, free: 11.49 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003142/0.2555, allocations: 75.95 kB / 0.5096 GB, free: 11.42 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02556/0.2811, allocations: 5.224 MB / 0.5147 GB, free: 6.176 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.2811, allocations: 0 / 0.5147 GB, free: 6.176 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.88e-05/0.2811, allocations: 4 kB / 0.5147 GB, free: 6.172 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.0009667/0.2821, allocations: 498.4 kB / 0.5151 GB, free: 5.637 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.2822, allocations: 8.031 kB / 0.5151 GB, free: 5.629 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.714e-05/0.2823, allocations: 58.48 kB / 0.5152 GB, free: 5.562 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.736e-05/0.2824, allocations: 23.72 kB / 0.5152 GB, free: 5.539 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004555/0.2828, allocations: 238.6 kB / 0.5155 GB, free: 5.266 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.172e-05/0.2829, allocations: 19.98 kB / 0.5155 GB, free: 5.246 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.81e-05/0.283, allocations: 20 kB / 0.5155 GB, free: 5.227 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001702/0.2847, allocations: 0.6181 MB / 0.5161 GB, free: 4.586 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.2847, allocations: 4 kB / 0.5161 GB, free: 4.582 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.307e-05/0.2847, allocations: 8 kB / 0.5161 GB, free: 4.574 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-05/0.2848, allocations: 8 kB / 0.5161 GB, free: 4.566 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007094/0.2855, allocations: 187.8 kB / 0.5163 GB, free: 4.383 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007175/0.2862, allocations: 382.2 kB / 0.5167 GB, free: 3.953 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007673/0.287, allocations: 247.6 kB / 0.5169 GB, free: 3.684 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.711e-05/0.2871, allocations: 11.98 kB / 0.5169 GB, free: 3.672 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.08e-05/0.2872, allocations: 38.56 kB / 0.5169 GB, free: 3.625 MB / 362.7 MB Notification: Performance of pre-optimization done (n=39): time 3.076e-06/0.2872, allocations: 4 kB / 0.5169 GB, free: 3.621 MB / 362.7 MB Notification: Performance of matching and sorting (n=39): time 0.00147/0.2887, allocations: 418.2 kB / 0.5173 GB, free: 3.207 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001566/0.2888, allocations: 138.9 kB / 0.5175 GB, free: 3.047 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002334/0.2891, allocations: 158.6 kB / 0.5176 GB, free: 2.887 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.064e-05/0.2892, allocations: 37.7 kB / 0.5177 GB, free: 2.844 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.344e-05/0.2892, allocations: 97.05 kB / 0.5178 GB, free: 2.746 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.926e-05/0.2893, allocations: 43.83 kB / 0.5178 GB, free: 2.703 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.123e-05/0.2894, allocations: 4 kB / 0.5178 GB, free: 2.699 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.2895, allocations: 342.8 kB / 0.5181 GB, free: 2.355 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002346/0.2898, allocations: 72.83 kB / 0.5182 GB, free: 2.285 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004592/0.2903, allocations: 326.7 kB / 0.5185 GB, free: 1.844 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003664/0.2906, allocations: 131.8 kB / 0.5186 GB, free: 1.715 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.947e-06/0.2907, allocations: 4 kB / 0.5186 GB, free: 1.711 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009754/0.2917, allocations: 404.7 kB / 0.519 GB, free: 1.309 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.71e-05/0.2917, allocations: 9 kB / 0.519 GB, free: 1.301 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.66e-05/0.2917, allocations: 8 kB / 0.519 GB, free: 1.293 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.307e-05/0.2918, allocations: 20 kB / 0.5191 GB, free: 1.273 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004662/0.2922, allocations: 87.83 kB / 0.5191 GB, free: 1.188 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.647e-05/0.2923, allocations: 15.92 kB / 0.5192 GB, free: 1.172 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002485/0.2925, allocations: 39.69 kB / 0.5192 GB, free: 1.133 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.879e-05/0.2926, allocations: 27.98 kB / 0.5192 GB, free: 1.105 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.0002875/0.2929, allocations: 181.6 kB / 0.5194 GB, free: 0.918 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008523/0.2938, allocations: 294.2 kB / 0.5197 GB, free: 0.625 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001049/0.2939, allocations: 34.66 kB / 0.5197 GB, free: 0.5898 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.797e-06/0.2939, allocations: 4 kB / 0.5197 GB, free: 0.5859 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.2939, allocations: 3.984 kB / 0.5197 GB, free: 0.582 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.2939, allocations: 0 / 0.5197 GB, free: 0.582 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003384/0.2943, allocations: 245.3 kB / 0.52 GB, free: 300 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.2943, allocations: 3.984 kB / 0.52 GB, free: 296 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005222/0.2948, allocations: 63.91 kB / 0.52 GB, free: 232 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.2949, allocations: 0 / 0.52 GB, free: 232 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.144e-05/0.2949, allocations: 15.98 kB / 0.52 GB, free: 216 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.2949, allocations: 3.938 kB / 0.52 GB, free: 212 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.2949, allocations: 8 kB / 0.52 GB, free: 204 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2735/0.5684, allocations: 461.7 kB / 0.5205 GB, free: 85.54 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001739/0.5687, allocations: 132.6 kB / 0.5206 GB, free: 85.45 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.478e-05/0.5688, allocations: 15.48 kB / 0.5206 GB, free: 85.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002446/0.569, allocations: 19.47 kB / 0.5206 GB, free: 85.45 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.7e-05/0.5691, allocations: 0 / 0.5206 GB, free: 85.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.426e-05/0.5691, allocations: 15.69 kB / 0.5207 GB, free: 85.45 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001445/0.5693, allocations: 133.1 kB / 0.5208 GB, free: 85.38 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5693, allocations: 0 / 0.5208 GB, free: 85.38 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006733/0.57, allocations: 49.84 kB / 0.5208 GB, free: 85.38 MB / 362.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.001797/0.5718, allocations: 1.333 MB / 0.5221 GB, free: 84.53 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008623/0.5727, allocations: 288.7 kB / 0.5224 GB, free: 84.53 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/0.5727, allocations: 0 / 0.5224 GB, free: 84.53 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.164e-05/0.5728, allocations: 13.66 kB / 0.5224 GB, free: 84.53 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008883/0.5737, allocations: 207.8 kB / 0.5226 GB, free: 84.52 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004529/0.5782, allocations: 7.241 MB / 0.5297 GB, free: 77.99 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003475/0.5786, allocations: 0.7873 MB / 0.5305 GB, free: 77.3 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001318/0.5788, allocations: 24.95 kB / 0.5305 GB, free: 77.29 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001924/0.579, allocations: 70.91 kB / 0.5306 GB, free: 77.29 MB / 362.7 MB Notification: Performance of SimCode: time 9.11e-07/0.579, allocations: 0 / 0.5306 GB, free: 77.29 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03104/0.6101, allocations: 4.654 MB / 0.5351 GB, free: 76.8 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002456/0.6104, allocations: 207.2 kB / 0.5353 GB, free: 76.55 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.53/3.141, allocations: 1.25 kB / 0.5353 GB, free: 76.55 MB / 362.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_UpSample2_fmu --startTime=0 --stopTime=0.06 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_UpSample2.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2_res.mat does not exist to compare? outputFormat=mat