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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0009742/0.0009795, allocations: 100.6 kB / 17 MB, free: 6.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001115/0.001115, allocations: 192 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.536/1.536, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002637/0.0002639, allocations: 11.98 kB / 306.8 MB, free: 1.242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1259, allocations: 51.49 MB / 358.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2): time 0.002088/0.128, allocations: 1.441 MB / 359.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001145/0.1291, allocations: 0.6432 MB / 360.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.1293, allocations: 3.938 kB / 360.4 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001379/0.1294, allocations: 11.92 kB / 360.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001865/0.1296, allocations: 31.84 kB / 360.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003778/0.13, allocations: 111.7 kB / 360.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001903/0.1302, allocations: 135.6 kB / 360.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001064/0.1303, allocations: 33.52 kB / 360.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001499/0.1305, allocations: 67.69 kB / 360.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001852/0.1307, allocations: 91.66 kB / 360.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.38e-05/0.1307, allocations: 4 kB / 360.9 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.81e-05/0.1308, allocations: 8 kB / 360.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.215e-05/0.1309, allocations: 63.81 kB / 360.9 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.568e-05/0.1309, allocations: 49.64 kB / 361 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001815/0.1311, allocations: 151.9 kB / 361.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1311, allocations: 0 / 361.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1311, allocations: 0 / 361.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.1311, allocations: 0 / 361.1 MB, free: 10.9 MB / 302.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.0007038/0.1318, allocations: 494.4 kB / 361.6 MB, free: 10.37 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.1319, allocations: 8.031 kB / 361.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.142e-05/0.132, allocations: 58.55 kB / 361.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001517/0.1321, allocations: 35.7 kB / 361.7 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002721/0.1324, allocations: 234.6 kB / 361.9 MB, free: 9.988 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.983e-05/0.1324, allocations: 19.98 kB / 362 MB, free: 9.969 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.923e-05/0.1325, allocations: 19.95 kB / 362 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001062/0.1335, allocations: 0.6335 MB / 362.6 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.1336, allocations: 3.938 kB / 362.6 MB, free: 9.285 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.008e-05/0.1336, allocations: 8 kB / 362.6 MB, free: 9.277 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.697e-05/0.1336, allocations: 12 kB / 362.6 MB, free: 9.266 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003791/0.134, allocations: 183.8 kB / 362.8 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000441/0.1345, allocations: 374.2 kB / 363.2 MB, free: 8.664 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004455/0.1349, allocations: 247.6 kB / 363.4 MB, free: 8.395 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002682/0.1352, allocations: 162.6 kB / 363.6 MB, free: 8.227 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.582e-05/0.1352, allocations: 8 kB / 363.6 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.65e-05/0.1353, allocations: 42.55 kB / 363.6 MB, free: 8.168 MB / 302.1 MB Notification: Performance of pre-optimization done (n=39): time 1.493e-06/0.1353, allocations: 0 / 363.6 MB, free: 8.168 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.0008397/0.1361, allocations: 425.6 kB / 364.1 MB, free: 7.746 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/0.1362, allocations: 131.7 kB / 364.2 MB, free: 7.594 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001607/0.1364, allocations: 178.5 kB / 364.4 MB, free: 7.406 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.706e-05/0.1365, allocations: 33.7 kB / 364.4 MB, free: 7.367 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.985e-05/0.1365, allocations: 101.3 kB / 364.5 MB, free: 7.266 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.711e-05/0.1366, allocations: 51.52 kB / 364.5 MB, free: 7.215 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.106e-05/0.1366, allocations: 4 kB / 364.5 MB, free: 7.211 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.1367, allocations: 338.8 kB / 364.9 MB, free: 6.871 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001389/0.1369, allocations: 76.81 kB / 364.9 MB, free: 6.797 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002862/0.1372, allocations: 322.7 kB / 365.3 MB, free: 6.359 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002083/0.1374, allocations: 143.8 kB / 365.4 MB, free: 6.219 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.1374, allocations: 0 / 365.4 MB, free: 6.219 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005844/0.138, allocations: 408.7 kB / 365.8 MB, free: 5.812 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.138, allocations: 8.969 kB / 365.8 MB, free: 5.805 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.138, allocations: 11.94 kB / 365.8 MB, free: 5.793 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.515e-05/0.1381, allocations: 16 kB / 365.8 MB, free: 5.777 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002504/0.1383, allocations: 87.78 kB / 365.9 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.019e-05/0.1384, allocations: 19.92 kB / 365.9 MB, free: 5.672 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001536/0.1385, allocations: 27.75 kB / 366 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.219e-05/0.1386, allocations: 28 kB / 366 MB, free: 5.617 MB / 302.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.0002017/0.1388, allocations: 179.4 kB / 366.2 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004717/0.1392, allocations: 289.4 kB / 366.5 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.125e-05/0.1393, allocations: 38.64 kB / 366.5 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.1394, allocations: 4 kB / 366.5 MB, free: 5.102 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.1394, allocations: 4 kB / 366.5 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.1394, allocations: 0 / 366.5 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000262/0.1396, allocations: 249.2 kB / 366.7 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.1397, allocations: 0 / 366.7 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002787/0.1399, allocations: 63.91 kB / 366.8 MB, free: 4.742 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.956e-06/0.14, allocations: 8 kB / 366.8 MB, free: 4.734 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.113e-05/0.14, allocations: 11.92 kB / 366.8 MB, free: 4.723 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.14, allocations: 4 kB / 366.8 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.14, allocations: 4 kB / 366.8 MB, free: 4.715 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005927/0.1406, allocations: 435.7 kB / 367.3 MB, free: 4.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001221/0.1407, allocations: 132.8 kB / 367.4 MB, free: 4.121 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.86e-05/0.1408, allocations: 12 kB / 367.4 MB, free: 4.109 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001315/0.1409, allocations: 19.98 kB / 367.4 MB, free: 4.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.436e-05/0.141, allocations: 4 kB / 367.4 MB, free: 4.086 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.025e-05/0.141, allocations: 11.98 kB / 367.4 MB, free: 4.074 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.7e-05/0.1411, allocations: 128.5 kB / 367.6 MB, free: 3.949 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1411, allocations: 0 / 367.6 MB, free: 3.949 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003848/0.1415, allocations: 52 kB / 367.6 MB, free: 3.898 MB / 302.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.0012/0.1427, allocations: 1.182 MB / 368.8 MB, free: 2.691 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005503/0.1433, allocations: 297.7 kB / 369.1 MB, free: 2.402 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1433, allocations: 0 / 369.1 MB, free: 2.402 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.983e-05/0.1433, allocations: 12.5 kB / 369.1 MB, free: 2.391 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006798/0.144, allocations: 210.6 kB / 369.3 MB, free: 2.188 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002629/0.1467, allocations: 1.616 MB / 370.9 MB, free: 408 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2359/0.3826, allocations: 0.7722 MB / 371.7 MB, free: 19.3 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001377/0.3827, allocations: 24.55 kB / 371.7 MB, free: 19.3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001952/0.3829, allocations: 73.28 kB / 371.8 MB, free: 19.3 MB / 302.1 MB Notification: Performance of SimCode: time 1.233e-06/0.383, allocations: 0 / 371.8 MB, free: 19.3 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02142/0.4044, allocations: 4.612 MB / 376.4 MB, free: 19.03 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002344/0.4047, allocations: 202.6 kB / 376.6 MB, free: 18.79 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.112/2.516, allocations: 0 / 376.6 MB, free: 18.79 MB / 302.1 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