Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.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.UpSample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1",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.0008397/0.0008398, allocations: 88.39 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.0009316/0.0009317, allocations: 183.1 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.514/1.514, allocations: 223.2 MB / 241.2 MB, free: 5.18 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002816/0.0002819, allocations: 7.516 kB / 300.9 MB, free: 5.469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1327, allocations: 50.43 MB / 351.3 MB, free: 11.22 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1): time 0.002853/0.1356, allocations: 1.428 MB / 352.8 MB, free: 9.781 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001081/0.1367, allocations: 0.5264 MB / 353.3 MB, free: 9.25 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001204/0.1369, allocations: 3.938 kB / 353.3 MB, free: 9.246 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.028e-05/0.1369, allocations: 11.92 kB / 353.3 MB, free: 9.234 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000161/0.1371, allocations: 7.938 kB / 353.3 MB, free: 9.227 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004471/0.1376, allocations: 79.84 kB / 353.4 MB, free: 9.148 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001497/0.1377, allocations: 83.7 kB / 353.5 MB, free: 9.066 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001244/0.1378, allocations: 29.05 kB / 353.5 MB, free: 9.039 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.358e-05/0.1379, allocations: 35.84 kB / 353.5 MB, free: 9.004 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.264e-05/0.138, allocations: 35.78 kB / 353.6 MB, free: 8.969 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.28e-05/0.1381, allocations: 4 kB / 353.6 MB, free: 8.965 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.002e-05/0.1381, allocations: 4 kB / 353.6 MB, free: 8.961 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.439e-05/0.1381, allocations: 19.91 kB / 353.6 MB, free: 8.941 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.395e-05/0.1382, allocations: 45.64 kB / 353.6 MB, free: 8.891 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001136/0.1383, allocations: 67.84 kB / 353.7 MB, free: 8.824 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.012e-06/0.1384, allocations: 4 kB / 353.7 MB, free: 8.82 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1384, allocations: 0 / 353.7 MB, free: 8.82 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.1384, allocations: 0 / 353.7 MB, free: 8.82 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0005928/0.139, allocations: 398.9 kB / 354.1 MB, free: 8.383 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.543e-05/0.139, allocations: 8.031 kB / 354.1 MB, free: 8.375 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.643e-05/0.1391, allocations: 50.48 kB / 354.2 MB, free: 8.316 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.019e-05/0.1391, allocations: 19.77 kB / 354.2 MB, free: 8.297 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002518/0.1394, allocations: 206.8 kB / 354.4 MB, free: 8.055 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.485e-05/0.1394, allocations: 12 kB / 354.4 MB, free: 8.043 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.349e-05/0.1394, allocations: 15.98 kB / 354.4 MB, free: 8.027 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005233/0.14, allocations: 268.3 kB / 354.7 MB, free: 7.746 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.14, allocations: 4 kB / 354.7 MB, free: 7.742 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.51e-05/0.14, allocations: 11.89 kB / 354.7 MB, free: 7.73 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.161e-06/0.14, allocations: 0 / 354.7 MB, free: 7.73 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001399/0.1402, allocations: 51.97 kB / 354.7 MB, free: 7.68 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004556/0.1406, allocations: 298.6 kB / 355 MB, free: 7.332 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002519/0.1409, allocations: 139.9 kB / 355.2 MB, free: 7.168 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001296/0.141, allocations: 74.56 kB / 355.2 MB, free: 7.086 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.084e-05/0.1411, allocations: 8.125 kB / 355.3 MB, free: 7.078 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.168e-05/0.1411, allocations: 46.45 kB / 355.3 MB, free: 7.023 MB / 286.1 MB Notification: Performance of pre-optimization done (n=17): time 3.406e-06/0.1411, allocations: 4 kB / 355.3 MB, free: 7.02 MB / 286.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004618/0.1416, allocations: 173.4 kB / 355.5 MB, free: 6.844 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000124/0.1417, allocations: 118.8 kB / 355.6 MB, free: 6.703 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000178/0.1419, allocations: 146.2 kB / 355.7 MB, free: 6.551 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.957e-05/0.142, allocations: 29.7 kB / 355.8 MB, free: 6.516 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.763e-05/0.1421, allocations: 100.2 kB / 355.9 MB, free: 6.414 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.826e-05/0.1421, allocations: 15.89 kB / 355.9 MB, free: 6.398 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.175e-06/0.1421, allocations: 4 kB / 355.9 MB, free: 6.395 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002165/0.1424, allocations: 322.8 kB / 356.2 MB, free: 6.07 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.396e-05/0.1425, allocations: 32.34 kB / 356.2 MB, free: 6.039 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001746/0.1426, allocations: 141.5 kB / 356.4 MB, free: 5.852 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.782e-05/0.1427, allocations: 40 kB / 356.4 MB, free: 5.812 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.1428, allocations: 4 kB / 356.4 MB, free: 5.809 MB / 286.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003219/0.1431, allocations: 189.6 kB / 356.6 MB, free: 5.617 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.291e-05/0.1431, allocations: 11.95 kB / 356.6 MB, free: 5.605 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.1431, allocations: 7.938 kB / 356.6 MB, free: 5.598 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.277e-05/0.1432, allocations: 4 kB / 356.6 MB, free: 5.594 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001437/0.1433, allocations: 31.92 kB / 356.6 MB, free: 5.562 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.976e-05/0.1433, allocations: 7.984 kB / 356.6 MB, free: 5.555 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.302e-05/0.1434, allocations: 19.88 kB / 356.7 MB, free: 5.535 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.763e-05/0.1435, allocations: 8 kB / 356.7 MB, free: 5.527 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 8 (upSample2.b_super,$CLKPRE.upSample2.b_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample2.b,$CLKPRE.upSample2.b,upSample1.b,$CLKPRE.upSample1.b) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001467/0.1436, allocations: 133.8 kB / 356.8 MB, free: 5.387 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001886/0.1438, allocations: 122 kB / 356.9 MB, free: 5.262 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.145e-05/0.1439, allocations: 24.75 kB / 357 MB, free: 5.234 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.1439, allocations: 7.938 kB / 357 MB, free: 5.227 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.1439, allocations: 0 / 357 MB, free: 5.227 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.1439, allocations: 0 / 357 MB, free: 5.227 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002255/0.1441, allocations: 193.6 kB / 357.1 MB, free: 4.988 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.1442, allocations: 0 / 357.1 MB, free: 4.988 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001055/0.1443, allocations: 23.98 kB / 357.2 MB, free: 4.965 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.1443, allocations: 4 kB / 357.2 MB, free: 4.961 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.442e-05/0.1443, allocations: 8 kB / 357.2 MB, free: 4.953 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.12e-06/0.1443, allocations: 7.953 kB / 357.2 MB, free: 4.945 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.1443, allocations: 3.984 kB / 357.2 MB, free: 4.941 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003313/0.1447, allocations: 263.3 kB / 357.5 MB, free: 4.664 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.462e-05/0.1448, allocations: 101 kB / 357.6 MB, free: 4.547 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.412e-05/0.1448, allocations: 4 kB / 357.6 MB, free: 4.543 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.087e-05/0.1449, allocations: 7.984 kB / 357.6 MB, free: 4.535 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.668e-05/0.1449, allocations: 7.953 kB / 357.6 MB, free: 4.527 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.168e-05/0.145, allocations: 8 kB / 357.6 MB, free: 4.52 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.058e-05/0.145, allocations: 113.5 kB / 357.7 MB, free: 4.41 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1451, allocations: 0 / 357.7 MB, free: 4.41 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002827/0.1453, allocations: 23.94 kB / 357.7 MB, free: 4.387 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: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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.0007754/0.1461, allocations: 0.8431 MB / 358.6 MB, free: 3.512 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002317/0.1464, allocations: 111.8 kB / 358.7 MB, free: 3.402 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1464, allocations: 0 / 358.7 MB, free: 3.402 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.208e-05/0.1464, allocations: 16.98 kB / 358.7 MB, free: 3.387 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005066/0.1469, allocations: 83.89 kB / 358.8 MB, free: 3.305 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001342/0.1483, allocations: 0.8358 MB / 359.6 MB, free: 2.359 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003228/0.1486, allocations: 0.7205 MB / 360.3 MB, free: 1.613 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.741e-05/0.1487, allocations: 13.7 kB / 360.3 MB, free: 1.602 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.787e-05/0.1488, allocations: 35.42 kB / 360.4 MB, free: 1.566 MB / 286.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1488, allocations: 0 / 360.4 MB, free: 1.566 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01436/0.1631, allocations: 2.398 MB / 362.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001807/0.1634, allocations: 201.1 kB / 363 MB, free: 15.08 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.904/2.068, allocations: 0 / 363 MB, free: 15.08 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.mat does not exist to compare? outputFormat=mat