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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009915/0.0009914, allocations: 94.11 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009623/0.0009624, allocations: 182.8 kB / 17.2 MB, free: 5.914 MB / 14.72 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 / 241.1 MB, free: 5.441 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000269/0.000269, allocations: 9.375 kB / 300.8 MB, free: 6.012 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1313, allocations: 50.41 MB / 351.2 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2): time 0.002357/0.1338, allocations: 1.431 MB / 352.7 MB, free: 10.2 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001116/0.1349, allocations: 0.5809 MB / 353.2 MB, free: 9.613 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001411/0.1351, allocations: 3.938 kB / 353.2 MB, free: 9.609 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001664/0.1353, allocations: 11.88 kB / 353.3 MB, free: 9.598 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002176/0.1355, allocations: 31.94 kB / 353.3 MB, free: 9.566 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004001/0.1359, allocations: 115.6 kB / 353.4 MB, free: 9.453 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001652/0.1361, allocations: 91.77 kB / 353.5 MB, free: 9.363 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001283/0.1362, allocations: 29.48 kB / 353.5 MB, free: 9.332 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001237/0.1363, allocations: 55.83 kB / 353.6 MB, free: 9.277 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001948/0.1366, allocations: 91.64 kB / 353.7 MB, free: 9.188 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.981e-05/0.1366, allocations: 8 kB / 353.7 MB, free: 9.18 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.418e-05/0.1366, allocations: 7.938 kB / 353.7 MB, free: 9.172 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.258e-05/0.1367, allocations: 59.81 kB / 353.7 MB, free: 9.113 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.512e-05/0.1368, allocations: 65.56 kB / 353.8 MB, free: 9.043 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001743/0.137, allocations: 135.7 kB / 353.9 MB, free: 8.91 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.137, allocations: 0 / 353.9 MB, free: 8.91 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.137, allocations: 0 / 353.9 MB, free: 8.91 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.137, allocations: 0 / 353.9 MB, free: 8.91 MB / 286.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.0008495/0.1379, allocations: 486.5 kB / 354.4 MB, free: 8.387 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.1379, allocations: 8.031 kB / 354.4 MB, free: 8.379 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.669e-05/0.138, allocations: 58.5 kB / 354.5 MB, free: 8.312 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.291e-05/0.138, allocations: 23.72 kB / 354.5 MB, free: 8.289 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002799/0.1383, allocations: 234.7 kB / 354.7 MB, free: 8.02 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.218e-05/0.1384, allocations: 16 kB / 354.7 MB, free: 8.004 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.022e-05/0.1384, allocations: 19.94 kB / 354.8 MB, free: 7.984 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001112/0.1395, allocations: 0.6299 MB / 355.4 MB, free: 7.332 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.1395, allocations: 4 kB / 355.4 MB, free: 7.328 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.328e-05/0.1396, allocations: 4 kB / 355.4 MB, free: 7.324 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.064e-05/0.1396, allocations: 11.98 kB / 355.4 MB, free: 7.312 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003921/0.14, allocations: 187.8 kB / 355.6 MB, free: 7.129 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000513/0.1405, allocations: 362.3 kB / 355.9 MB, free: 6.719 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004567/0.141, allocations: 255.5 kB / 356.2 MB, free: 6.441 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.685e-05/0.1411, allocations: 8.203 kB / 356.2 MB, free: 6.434 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.642e-05/0.1411, allocations: 38.62 kB / 356.2 MB, free: 6.387 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 1.633e-06/0.1411, allocations: 0 / 356.2 MB, free: 6.387 MB / 286.1 MB Notification: Performance of matching and sorting (n=39): time 0.0008773/0.142, allocations: 426.3 kB / 356.7 MB, free: 5.965 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000147/0.1421, allocations: 142.9 kB / 356.8 MB, free: 5.801 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001805/0.1423, allocations: 162.4 kB / 357 MB, free: 5.633 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.288e-05/0.1424, allocations: 33.7 kB / 357 MB, free: 5.594 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.202e-05/0.1425, allocations: 97.12 kB / 357.1 MB, free: 5.496 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.351e-05/0.1425, allocations: 43.72 kB / 357.1 MB, free: 5.453 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.508e-05/0.1425, allocations: 16 kB / 357.1 MB, free: 5.438 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.1427, allocations: 330.8 kB / 357.5 MB, free: 5.105 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001304/0.1428, allocations: 76.83 kB / 357.5 MB, free: 5.031 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003065/0.1432, allocations: 318.7 kB / 357.8 MB, free: 4.598 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002129/0.1434, allocations: 135.8 kB / 358 MB, free: 4.465 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.1434, allocations: 4 kB / 358 MB, free: 4.461 MB / 286.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005908/0.144, allocations: 413.2 kB / 358.4 MB, free: 4.051 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.651e-05/0.144, allocations: 12 kB / 358.4 MB, free: 4.039 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.1441, allocations: 8 kB / 358.4 MB, free: 4.031 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.528e-05/0.1441, allocations: 12 kB / 358.4 MB, free: 4.02 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002597/0.1443, allocations: 87.83 kB / 358.5 MB, free: 3.934 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.835e-05/0.1444, allocations: 15.94 kB / 358.5 MB, free: 3.918 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001598/0.1445, allocations: 36.12 kB / 358.6 MB, free: 3.883 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.533e-05/0.1446, allocations: 24 kB / 358.6 MB, free: 3.859 MB / 286.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.00021/0.1448, allocations: 185.5 kB / 358.8 MB, free: 3.668 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005045/0.1453, allocations: 297.2 kB / 359.1 MB, free: 3.371 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.463e-05/0.1454, allocations: 30.66 kB / 359.1 MB, free: 3.34 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.321e-06/0.1454, allocations: 4 kB / 359.1 MB, free: 3.336 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.1454, allocations: 0 / 359.1 MB, free: 3.336 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.1454, allocations: 7.984 kB / 359.1 MB, free: 3.328 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002648/0.1457, allocations: 249.3 kB / 359.3 MB, free: 3.035 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.1457, allocations: 0 / 359.3 MB, free: 3.035 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002716/0.146, allocations: 71.88 kB / 359.4 MB, free: 2.965 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.553e-06/0.146, allocations: 0 / 359.4 MB, free: 2.965 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.268e-05/0.1461, allocations: 15.89 kB / 359.4 MB, free: 2.949 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.903e-06/0.1461, allocations: 8 kB / 359.4 MB, free: 2.941 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.1461, allocations: 0 / 359.4 MB, free: 2.941 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006535/0.1467, allocations: 468.8 kB / 359.9 MB, free: 2.453 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000142/0.1469, allocations: 132.7 kB / 360 MB, free: 2.305 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.659e-05/0.147, allocations: 19.98 kB / 360 MB, free: 2.285 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001408/0.1471, allocations: 12 kB / 360 MB, free: 2.273 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.604e-05/0.1472, allocations: 7.984 kB / 360.1 MB, free: 2.266 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.111e-05/0.1472, allocations: 12 kB / 360.1 MB, free: 2.254 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001019/0.1473, allocations: 131.2 kB / 360.2 MB, free: 2.125 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1473, allocations: 0 / 360.2 MB, free: 2.125 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003903/0.1477, allocations: 48 kB / 360.2 MB, free: 2.078 MB / 286.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.0014/0.1491, allocations: 1.336 MB / 361.6 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005444/0.1497, allocations: 282.2 kB / 361.9 MB, free: 436 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1497, allocations: 3.938 kB / 361.9 MB, free: 432 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.369e-05/0.1497, allocations: 16.36 kB / 361.9 MB, free: 416 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006078/0.1503, allocations: 211.8 kB / 362.1 MB, free: 204 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005416/0.1558, allocations: 7.265 MB / 369.3 MB, free: 8.703 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000413/0.1562, allocations: 0.7881 MB / 370.1 MB, free: 7.887 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.5e-05/0.1563, allocations: 22.3 kB / 370.2 MB, free: 7.867 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001431/0.1565, allocations: 67.41 kB / 370.2 MB, free: 7.801 MB / 302.1 MB Notification: Performance of SimCode: time 1.102e-06/0.1565, allocations: 0 / 370.2 MB, free: 7.801 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01756/0.174, allocations: 4.635 MB / 374.9 MB, free: 3.344 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002312/0.1744, allocations: 189.2 kB / 375 MB, free: 3.105 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.028/2.203, allocations: 7.016 kB / 375.1 MB, free: 3.102 MB / 302.1 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