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.0008886/0.0008885, allocations: 86.22 kB / 16.31 MB, free: 6.449 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.0008865/0.0008866, allocations: 183.8 kB / 17.21 MB, free: 6.316 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.557/1.557, allocations: 223.3 MB / 241.2 MB, free: 5.262 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003183/0.0003184, allocations: 10.5 kB / 300.9 MB, free: 5.531 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.135, allocations: 50.43 MB / 351.3 MB, free: 11.3 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2): time 0.002131/0.1371, allocations: 1.434 MB / 352.8 MB, free: 9.855 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001162/0.1383, allocations: 0.5925 MB / 353.4 MB, free: 9.258 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001413/0.1385, allocations: 7.938 kB / 353.4 MB, free: 9.25 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001825/0.1387, allocations: 11.86 kB / 353.4 MB, free: 9.238 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002415/0.139, allocations: 39.84 kB / 353.4 MB, free: 9.199 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003867/0.1393, allocations: 107.2 kB / 353.5 MB, free: 9.098 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001858/0.1395, allocations: 131.7 kB / 353.7 MB, free: 8.969 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000122/0.1397, allocations: 29.52 kB / 353.7 MB, free: 8.938 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001158/0.1398, allocations: 55.77 kB / 353.7 MB, free: 8.883 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001997/0.14, allocations: 91.66 kB / 353.8 MB, free: 8.793 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.44e-05/0.14, allocations: 8 kB / 353.8 MB, free: 8.785 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.236e-05/0.1401, allocations: 4 kB / 353.8 MB, free: 8.781 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.512e-05/0.1402, allocations: 63.8 kB / 353.9 MB, free: 8.719 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.913e-05/0.1402, allocations: 57.58 kB / 354 MB, free: 8.656 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001644/0.1404, allocations: 135.7 kB / 354.1 MB, free: 8.523 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.1404, allocations: 0 / 354.1 MB, free: 8.523 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.1404, allocations: 0 / 354.1 MB, free: 8.523 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.1404, allocations: 4 kB / 354.1 MB, free: 8.52 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.0007795/0.1412, allocations: 478.5 kB / 354.6 MB, free: 8.004 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/0.1413, allocations: 12.03 kB / 354.6 MB, free: 7.992 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.962e-05/0.1414, allocations: 58.48 kB / 354.6 MB, free: 7.926 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.145e-05/0.1414, allocations: 27.7 kB / 354.7 MB, free: 7.898 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002703/0.1417, allocations: 230.7 kB / 354.9 MB, free: 7.633 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.057e-05/0.1417, allocations: 16 kB / 354.9 MB, free: 7.617 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.534e-05/0.1418, allocations: 20 kB / 354.9 MB, free: 7.598 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001116/0.1429, allocations: 0.6338 MB / 355.6 MB, free: 6.941 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.1429, allocations: 4 kB / 355.6 MB, free: 6.938 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.887e-05/0.1429, allocations: 7.938 kB / 355.6 MB, free: 6.93 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.078e-05/0.143, allocations: 12 kB / 355.6 MB, free: 6.918 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003958/0.1434, allocations: 187.8 kB / 355.8 MB, free: 6.734 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004592/0.1439, allocations: 366.2 kB / 356.1 MB, free: 6.32 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004405/0.1443, allocations: 247.5 kB / 356.4 MB, free: 6.051 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000275/0.1446, allocations: 158.6 kB / 356.5 MB, free: 5.887 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.171e-05/0.1446, allocations: 16.08 kB / 356.5 MB, free: 5.871 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.955e-05/0.1447, allocations: 38.56 kB / 356.6 MB, free: 5.824 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 1.653e-06/0.1447, allocations: 0 / 356.6 MB, free: 5.824 MB / 286.1 MB Notification: Performance of matching and sorting (n=39): time 0.0008481/0.1456, allocations: 426.5 kB / 357 MB, free: 5.402 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/0.1457, allocations: 139 kB / 357.1 MB, free: 5.242 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002001/0.1459, allocations: 166.4 kB / 357.3 MB, free: 5.07 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.753e-05/0.1459, allocations: 29.7 kB / 357.3 MB, free: 5.035 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.011e-05/0.146, allocations: 97.14 kB / 357.4 MB, free: 4.938 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.364e-05/0.1461, allocations: 47.59 kB / 357.5 MB, free: 4.891 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.182e-05/0.1461, allocations: 4 kB / 357.5 MB, free: 4.887 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.1463, allocations: 338.8 kB / 357.8 MB, free: 4.547 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001361/0.1464, allocations: 80.81 kB / 357.9 MB, free: 4.469 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003362/0.1468, allocations: 326.7 kB / 358.2 MB, free: 4.027 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002629/0.147, allocations: 131.8 kB / 358.3 MB, free: 3.898 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.1471, allocations: 4 kB / 358.3 MB, free: 3.895 MB / 286.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006359/0.1477, allocations: 405.6 kB / 358.7 MB, free: 3.492 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/0.1477, allocations: 12 kB / 358.7 MB, free: 3.48 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/0.1478, allocations: 8 kB / 358.7 MB, free: 3.473 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.821e-05/0.1478, allocations: 19.98 kB / 358.8 MB, free: 3.453 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002685/0.1481, allocations: 91.78 kB / 358.8 MB, free: 3.363 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.311e-05/0.1481, allocations: 11.94 kB / 358.9 MB, free: 3.352 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001792/0.1483, allocations: 39.7 kB / 358.9 MB, free: 3.312 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.246e-05/0.1483, allocations: 24 kB / 358.9 MB, free: 3.289 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.0002282/0.1486, allocations: 185.6 kB / 359.1 MB, free: 3.098 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000535/0.1491, allocations: 302.2 kB / 359.4 MB, free: 2.797 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001082/0.1492, allocations: 34.64 kB / 359.4 MB, free: 2.762 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.287e-06/0.1493, allocations: 4 kB / 359.4 MB, free: 2.758 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.1493, allocations: 3.938 kB / 359.4 MB, free: 2.754 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.1493, allocations: 0 / 359.4 MB, free: 2.754 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003252/0.1496, allocations: 249.3 kB / 359.7 MB, free: 2.461 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1496, allocations: 0 / 359.7 MB, free: 2.461 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002614/0.1499, allocations: 63.91 kB / 359.7 MB, free: 2.398 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.1499, allocations: 4 kB / 359.8 MB, free: 2.395 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.913e-05/0.1499, allocations: 19.94 kB / 359.8 MB, free: 2.375 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.15, allocations: 0 / 359.8 MB, free: 2.375 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.15, allocations: 4 kB / 359.8 MB, free: 2.371 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006432/0.1506, allocations: 435.8 kB / 360.2 MB, free: 1.926 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001578/0.1508, allocations: 132.7 kB / 360.3 MB, free: 1.777 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.02e-05/0.1509, allocations: 16 kB / 360.3 MB, free: 1.762 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001464/0.151, allocations: 19.94 kB / 360.4 MB, free: 1.742 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.016e-05/0.1511, allocations: 3.938 kB / 360.4 MB, free: 1.738 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.454e-05/0.1511, allocations: 15.98 kB / 360.4 MB, free: 1.723 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001094/0.1512, allocations: 131.4 kB / 360.5 MB, free: 1.594 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1512, allocations: 0 / 360.5 MB, free: 1.594 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004008/0.1516, allocations: 48 kB / 360.6 MB, free: 1.547 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.001283/0.1529, allocations: 1.174 MB / 361.7 MB, free: 344 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005411/0.1535, allocations: 290.5 kB / 362 MB, free: 56 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1535, allocations: 0 / 362 MB, free: 56 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 3.668e-05/0.1535, allocations: 11.94 kB / 362 MB, free: 44 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006932/0.1542, allocations: 221.9 kB / 362.2 MB, free: 15.83 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002814/0.157, allocations: 1.612 MB / 363.9 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004559/0.1575, allocations: 0.7842 MB / 364.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.727e-05/0.1576, allocations: 22.28 kB / 364.7 MB, free: 13.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001316/0.1578, allocations: 71.41 kB / 364.7 MB, free: 13.14 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1578, allocations: 4 kB / 364.7 MB, free: 13.13 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01675/0.1745, allocations: 4.608 MB / 369.3 MB, free: 8.707 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002259/0.1748, allocations: 194.5 kB / 369.5 MB, free: 8.469 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.954/2.129, allocations: 3.938 kB / 369.5 MB, free: 8.465 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