Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.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.UpSample1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.00128/0.00128, allocations: 96.33 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001481/0.001481, allocations: 207.3 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 227.3 MB / 245.9 MB, free: 12.04 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003271/0.0003272, allocations: 4 kB / 306.7 MB, free: 1.477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1567/0.157, allocations: 51.49 MB / 358.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1): time 0.002697/0.1598, allocations: 1.443 MB / 359.6 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001132/0.161, allocations: 0.5458 MB / 360.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001317/0.1611, allocations: 7.938 kB / 360.2 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.931e-05/0.1612, allocations: 3.938 kB / 360.2 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001893/0.1614, allocations: 15.97 kB / 360.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005009/0.1619, allocations: 83.72 kB / 360.3 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001564/0.162, allocations: 59.88 kB / 360.4 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.1622, allocations: 32.83 kB / 360.4 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001429/0.1623, allocations: 31.8 kB / 360.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.512e-05/0.1624, allocations: 47.77 kB / 360.5 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.592e-05/0.1625, allocations: 4 kB / 360.5 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.699e-05/0.1625, allocations: 8 kB / 360.5 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.946e-05/0.1626, allocations: 15.92 kB / 360.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.239e-05/0.1626, allocations: 45.64 kB / 360.5 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001676/0.1628, allocations: 71.83 kB / 360.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1628, allocations: 0 / 360.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.1628, allocations: 0 / 360.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.227e-06/0.1629, allocations: 0 / 360.6 MB, free: 11.55 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0006797/0.1635, allocations: 415.1 kB / 361 MB, free: 11.1 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.259e-05/0.1636, allocations: 8.031 kB / 361 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.999e-05/0.1637, allocations: 46.5 kB / 361.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001898/0.1639, allocations: 35.73 kB / 361.1 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002885/0.1642, allocations: 200.1 kB / 361.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.326e-05/0.1642, allocations: 11.94 kB / 361.3 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.489e-05/0.1642, allocations: 15.95 kB / 361.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005726/0.1648, allocations: 274.6 kB / 361.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.1648, allocations: 0 / 361.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.679e-05/0.1649, allocations: 4 kB / 361.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.1649, allocations: 0 / 361.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001493/0.165, allocations: 55.97 kB / 361.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000493/0.1655, allocations: 306.5 kB / 361.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002701/0.1658, allocations: 131.9 kB / 362.1 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.936e-05/0.1659, allocations: 8.062 kB / 362.1 MB, free: 9.879 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.255e-05/0.1659, allocations: 34.56 kB / 362.1 MB, free: 9.836 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.493e-06/0.1659, allocations: 3.938 kB / 362.1 MB, free: 9.832 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004511/0.1664, allocations: 177.5 kB / 362.3 MB, free: 9.652 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/0.1665, allocations: 122.9 kB / 362.4 MB, free: 9.508 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001722/0.1667, allocations: 150.2 kB / 362.6 MB, free: 9.352 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.229e-05/0.1667, allocations: 25.7 kB / 362.6 MB, free: 9.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.1668, allocations: 104 kB / 362.7 MB, free: 9.215 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.031e-05/0.1669, allocations: 15.89 kB / 362.7 MB, free: 9.199 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.434e-06/0.1669, allocations: 4 kB / 362.7 MB, free: 9.195 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.1671, allocations: 322.8 kB / 363 MB, free: 8.871 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.592e-05/0.1671, allocations: 32.36 kB / 363.1 MB, free: 8.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001672/0.1673, allocations: 134.9 kB / 363.2 MB, free: 8.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001048/0.1674, allocations: 51.88 kB / 363.2 MB, free: 8.609 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.471e-06/0.1674, allocations: 4 kB / 363.2 MB, free: 8.605 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000309/0.1678, allocations: 181.1 kB / 363.4 MB, free: 8.422 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/0.1678, allocations: 8.375 kB / 363.4 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.301e-05/0.1678, allocations: 7.984 kB / 363.4 MB, free: 8.406 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.075e-05/0.1678, allocations: 7.984 kB / 363.4 MB, free: 8.398 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001404/0.168, allocations: 36.45 kB / 363.5 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.257e-05/0.168, allocations: 7.938 kB / 363.5 MB, free: 8.355 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.051e-05/0.1681, allocations: 12 kB / 363.5 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.179e-05/0.1681, allocations: 12 kB / 363.5 MB, free: 8.332 MB / 302.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.000166/0.1683, allocations: 141.7 kB / 363.6 MB, free: 8.184 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002185/0.1685, allocations: 121.4 kB / 363.8 MB, free: 8.059 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.611e-05/0.1686, allocations: 16.72 kB / 363.8 MB, free: 8.039 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.165e-06/0.1686, allocations: 4 kB / 363.8 MB, free: 8.035 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.1686, allocations: 0 / 363.8 MB, free: 8.035 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.1686, allocations: 0 / 363.8 MB, free: 8.035 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002594/0.1689, allocations: 205.5 kB / 364 MB, free: 7.785 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.1689, allocations: 4 kB / 364 MB, free: 7.781 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001203/0.169, allocations: 23.98 kB / 364 MB, free: 7.758 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.169, allocations: 0 / 364 MB, free: 7.758 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.785e-05/0.1691, allocations: 8 kB / 364 MB, free: 7.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1691, allocations: 0 / 364 MB, free: 7.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.1691, allocations: 3.984 kB / 364 MB, free: 7.746 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003561/0.1694, allocations: 282.8 kB / 364.3 MB, free: 7.438 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.168e-05/0.1695, allocations: 101 kB / 364.4 MB, free: 7.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.012e-05/0.1696, allocations: 12 kB / 364.4 MB, free: 7.309 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.246e-05/0.1697, allocations: 0 / 364.4 MB, free: 7.309 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.823e-05/0.1697, allocations: 8 kB / 364.4 MB, free: 7.301 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.231e-05/0.1697, allocations: 8 kB / 364.4 MB, free: 7.293 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001037/0.1699, allocations: 114.5 kB / 364.5 MB, free: 7.184 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1699, allocations: 0 / 364.5 MB, free: 7.184 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002881/0.1702, allocations: 20 kB / 364.6 MB, free: 7.164 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: 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.0009866/0.1712, allocations: 1.012 MB / 365.6 MB, free: 6.113 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000266/0.1714, allocations: 111.9 kB / 365.7 MB, free: 6.004 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1714, allocations: 0 / 365.7 MB, free: 6.004 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.199e-05/0.1715, allocations: 15.92 kB / 365.7 MB, free: 5.988 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004613/0.172, allocations: 92.86 kB / 365.8 MB, free: 5.898 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002463/0.1744, allocations: 3.221 MB / 369 MB, free: 2.547 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004039/0.1749, allocations: 0.7283 MB / 369.7 MB, free: 1.793 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.172e-05/0.1749, allocations: 9.422 kB / 369.7 MB, free: 1.781 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.172e-05/0.175, allocations: 35.42 kB / 369.8 MB, free: 1.75 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.175, allocations: 0 / 369.8 MB, free: 1.75 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2474/0.4224, allocations: 2.373 MB / 372.2 MB, free: 19.3 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001752/0.4226, allocations: 195.3 kB / 372.3 MB, free: 19.06 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.816/2.239, allocations: 2.25 kB / 372.3 MB, free: 19.06 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.mat does not exist to compare? outputFormat=mat