Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001361/0.001362, allocations: 180.2 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.471/1.471, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009786/0.0009786, allocations: 94.55 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003089/0.0003089, allocations: 8 kB / 351.2 MB, free: 14.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3271/0.3275, allocations: 50.41 MB / 401.6 MB, free: 32.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09977/0.4273, allocations: 78.31 MB / 479.9 MB, free: 2.117 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002534/0.4276, allocations: 86.55 kB / 480 MB, free: 2.035 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01623/0.4438, allocations: 5.611 MB / 485.6 MB, free: 12.42 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.4439, allocations: 0 / 485.6 MB, free: 12.42 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.748e-05/0.4439, allocations: 4 kB / 485.6 MB, free: 12.41 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.0006832/0.4446, allocations: 490.5 kB / 486.1 MB, free: 11.89 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.4446, allocations: 12.02 kB / 486.1 MB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.981e-05/0.4447, allocations: 58.53 kB / 486.1 MB, free: 11.81 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.781e-05/0.4448, allocations: 27.62 kB / 486.2 MB, free: 11.78 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003075/0.4451, allocations: 246.5 kB / 486.4 MB, free: 11.5 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.214e-05/0.4452, allocations: 12 kB / 486.4 MB, free: 11.49 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.999e-05/0.4452, allocations: 16 kB / 486.4 MB, free: 11.47 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001079/0.4463, allocations: 0.6299 MB / 487.1 MB, free: 10.82 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.4463, allocations: 4 kB / 487.1 MB, free: 10.81 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.979e-05/0.4463, allocations: 4 kB / 487.1 MB, free: 10.81 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.321e-05/0.4464, allocations: 19.98 kB / 487.1 MB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003925/0.4468, allocations: 187.8 kB / 487.3 MB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004834/0.4473, allocations: 366.3 kB / 487.6 MB, free: 10.19 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004123/0.4477, allocations: 253.3 kB / 487.9 MB, free: 9.918 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.897e-05/0.4477, allocations: 4.219 kB / 487.9 MB, free: 9.914 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.71e-05/0.4478, allocations: 46.55 kB / 487.9 MB, free: 9.859 MB / 362.7 MB Notification: Performance of pre-optimization done (n=39): time 1.674e-06/0.4478, allocations: 4 kB / 487.9 MB, free: 9.855 MB / 362.7 MB Notification: Performance of matching and sorting (n=39): time 0.0008039/0.4486, allocations: 427.4 kB / 488.4 MB, free: 9.434 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.813e-05/0.4487, allocations: 138.9 kB / 488.5 MB, free: 9.273 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001222/0.4488, allocations: 149.5 kB / 488.6 MB, free: 9.121 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.623e-05/0.4488, allocations: 33.83 kB / 488.7 MB, free: 9.082 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.948e-05/0.4489, allocations: 101.1 kB / 488.8 MB, free: 8.98 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.062e-05/0.4489, allocations: 43.59 kB / 488.8 MB, free: 8.938 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.391e-05/0.449, allocations: 12 kB / 488.8 MB, free: 8.926 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.4491, allocations: 330.8 kB / 489.1 MB, free: 8.594 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001324/0.4492, allocations: 76.83 kB / 489.2 MB, free: 8.52 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002583/0.4495, allocations: 322.7 kB / 489.5 MB, free: 8.082 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002048/0.4497, allocations: 135.8 kB / 489.7 MB, free: 7.949 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.453e-06/0.4497, allocations: 4 kB / 489.7 MB, free: 7.945 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000546/0.4503, allocations: 408.9 kB / 490.1 MB, free: 7.539 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.4503, allocations: 8 kB / 490.1 MB, free: 7.531 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.4503, allocations: 12 kB / 490.1 MB, free: 7.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.097e-05/0.4503, allocations: 12.72 kB / 490.1 MB, free: 7.508 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002343/0.4506, allocations: 87.78 kB / 490.2 MB, free: 7.422 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.848e-05/0.4506, allocations: 23.92 kB / 490.2 MB, free: 7.398 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001586/0.4508, allocations: 31.78 kB / 490.2 MB, free: 7.367 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.444e-05/0.4508, allocations: 23.94 kB / 490.3 MB, free: 7.344 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.0001606/0.451, allocations: 176.1 kB / 490.4 MB, free: 7.164 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004693/0.4515, allocations: 305.5 kB / 490.7 MB, free: 6.859 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.298e-05/0.4515, allocations: 34.64 kB / 490.8 MB, free: 6.824 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.4515, allocations: 4 kB / 490.8 MB, free: 6.82 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.4516, allocations: 4 kB / 490.8 MB, free: 6.816 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.4516, allocations: 4 kB / 490.8 MB, free: 6.812 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002245/0.4518, allocations: 241.4 kB / 491 MB, free: 6.527 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.4518, allocations: 4 kB / 491 MB, free: 6.523 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002599/0.4521, allocations: 59.91 kB / 491.1 MB, free: 6.465 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.4521, allocations: 3.938 kB / 491.1 MB, free: 6.461 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.661e-05/0.4521, allocations: 19.94 kB / 491.1 MB, free: 6.441 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.67e-06/0.4521, allocations: 8 kB / 491.1 MB, free: 6.434 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.4521, allocations: 0 / 491.1 MB, free: 6.434 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005733/0.4527, allocations: 464.4 kB / 491.6 MB, free: 5.949 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001334/0.4529, allocations: 132.7 kB / 491.7 MB, free: 5.801 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.656e-05/0.4529, allocations: 19.94 kB / 491.7 MB, free: 5.781 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001426/0.4531, allocations: 19.98 kB / 491.7 MB, free: 5.762 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.974e-05/0.4531, allocations: 4 kB / 491.7 MB, free: 5.758 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.196e-05/0.4531, allocations: 11.98 kB / 491.8 MB, free: 5.746 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.599e-05/0.4532, allocations: 131.2 kB / 491.9 MB, free: 5.617 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4532, allocations: 0 / 491.9 MB, free: 5.617 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003661/0.4536, allocations: 51.94 kB / 491.9 MB, free: 5.566 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.001268/0.4549, allocations: 1.34 MB / 493.3 MB, free: 4.184 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000478/0.4554, allocations: 290 kB / 493.6 MB, free: 3.902 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.4554, allocations: 8.188 kB / 493.6 MB, free: 3.895 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.818e-05/0.4554, allocations: 11.92 kB / 493.6 MB, free: 3.883 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005528/0.456, allocations: 202.8 kB / 493.8 MB, free: 3.688 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004137/0.4601, allocations: 7.243 MB / 0.4893 GB, free: 12.22 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003522/0.4605, allocations: 0.7803 MB / 0.49 GB, free: 11.41 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.056e-05/0.4606, allocations: 26.28 kB / 0.4901 GB, free: 11.38 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001279/0.4607, allocations: 71.41 kB / 0.4901 GB, free: 11.32 MB / 378.7 MB Notification: Performance of SimCode: time 4e-07/0.4607, allocations: 0 / 0.4901 GB, free: 11.32 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01557/0.4763, allocations: 4.61 MB / 0.4946 GB, free: 6.871 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002145/0.4766, allocations: 196.5 kB / 0.4948 GB, free: 6.629 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.94/2.416, allocations: 0 / 0.4948 GB, free: 6.629 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2_fmu --startTime=0 --stopTime=0.06 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2_res.mat does not exist to compare? outputFormat=mat