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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001002/0.001001, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.227/1.227, allocations: 227.2 MB / 245 MB, free: 5.945 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008529/0.0008527, allocations: 101.3 kB / 297.3 MB, free: 5.961 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002091/0.0002091, allocations: 8 kB / 358 MB, free: 9.211 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1779/0.1781, allocations: 51.48 MB / 409.5 MB, free: 26.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08486/0.263, allocations: 78.39 MB / 487.9 MB, free: 12.18 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002178/0.2633, allocations: 83.95 kB / 488 MB, free: 12.1 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01247/0.2758, allocations: 4.573 MB / 492.6 MB, free: 7.523 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2758, allocations: 4 kB / 492.6 MB, free: 7.52 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.483e-05/0.2758, allocations: 4 kB / 492.6 MB, free: 7.516 MB / 362.7 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.0005012/0.2763, allocations: 414.8 kB / 493 MB, free: 7.062 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.2764, allocations: 8.031 kB / 493 MB, free: 7.055 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.811e-05/0.2764, allocations: 46.55 kB / 493 MB, free: 7 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001515/0.2766, allocations: 27.81 kB / 493 MB, free: 6.973 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002368/0.2768, allocations: 216.4 kB / 493.3 MB, free: 6.723 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.711e-05/0.2769, allocations: 8 kB / 493.3 MB, free: 6.715 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.105e-05/0.2769, allocations: 15.95 kB / 493.3 MB, free: 6.699 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004872/0.2774, allocations: 273.3 kB / 493.5 MB, free: 6.41 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.2774, allocations: 0 / 493.5 MB, free: 6.41 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.387e-05/0.2774, allocations: 8 kB / 493.6 MB, free: 6.402 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-06/0.2774, allocations: 0 / 493.6 MB, free: 6.402 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001385/0.2776, allocations: 59.91 kB / 493.6 MB, free: 6.344 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003772/0.278, allocations: 306.4 kB / 493.9 MB, free: 5.988 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002357/0.2782, allocations: 143.7 kB / 494.1 MB, free: 5.82 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.635e-05/0.2783, allocations: 8.188 kB / 494.1 MB, free: 5.812 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.161e-05/0.2783, allocations: 34.56 kB / 494.1 MB, free: 5.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 1.443e-06/0.2783, allocations: 0 / 494.1 MB, free: 5.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003884/0.2787, allocations: 177.5 kB / 494.3 MB, free: 5.59 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.994e-05/0.2788, allocations: 118.8 kB / 494.4 MB, free: 5.449 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001304/0.2789, allocations: 137.4 kB / 494.5 MB, free: 5.309 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.912e-05/0.2789, allocations: 33.7 kB / 494.5 MB, free: 5.27 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.02e-05/0.279, allocations: 88.14 kB / 494.6 MB, free: 5.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.199e-05/0.279, allocations: 23.92 kB / 494.7 MB, free: 5.156 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.342e-06/0.279, allocations: 0 / 494.7 MB, free: 5.156 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.2791, allocations: 330.8 kB / 495 MB, free: 4.824 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.932e-05/0.2792, allocations: 24.36 kB / 495 MB, free: 4.797 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001234/0.2793, allocations: 142.5 kB / 495.1 MB, free: 4.609 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.095e-05/0.2794, allocations: 51.88 kB / 495.2 MB, free: 4.559 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2795, allocations: 0 / 495.2 MB, free: 4.559 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002801/0.2797, allocations: 181.7 kB / 495.4 MB, free: 4.375 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.2798, allocations: 8 kB / 495.4 MB, free: 4.367 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.2798, allocations: 8.031 kB / 495.4 MB, free: 4.359 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.2798, allocations: 7.938 kB / 495.4 MB, free: 4.352 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001259/0.2799, allocations: 27.98 kB / 495.4 MB, free: 4.324 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.28, allocations: 7.938 kB / 495.4 MB, free: 4.316 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.648e-05/0.28, allocations: 23.83 kB / 495.5 MB, free: 4.293 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.38e-05/0.2801, allocations: 8 kB / 495.5 MB, free: 4.285 MB / 362.7 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.0001057/0.2802, allocations: 144 kB / 495.6 MB, free: 4.137 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001704/0.2804, allocations: 117.9 kB / 495.7 MB, free: 4.016 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.281e-05/0.2804, allocations: 20.81 kB / 495.7 MB, free: 3.996 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.2804, allocations: 7.938 kB / 495.7 MB, free: 3.988 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.2804, allocations: 0 / 495.7 MB, free: 3.988 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.2804, allocations: 3.984 kB / 495.7 MB, free: 3.984 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001749/0.2806, allocations: 189.5 kB / 495.9 MB, free: 3.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.2806, allocations: 3.953 kB / 495.9 MB, free: 3.746 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001189/0.2807, allocations: 39.91 kB / 496 MB, free: 3.707 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.2808, allocations: 0 / 496 MB, free: 3.707 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.024e-05/0.2808, allocations: 0 / 496 MB, free: 3.707 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.2808, allocations: 8 kB / 496 MB, free: 3.699 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2808, allocations: 0 / 496 MB, free: 3.699 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002874/0.2811, allocations: 280.4 kB / 496.3 MB, free: 3.391 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.344e-05/0.2812, allocations: 104.9 kB / 496.4 MB, free: 3.27 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.255e-05/0.2812, allocations: 0 / 496.4 MB, free: 3.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.662e-05/0.2813, allocations: 15.94 kB / 496.4 MB, free: 3.254 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.969e-05/0.2813, allocations: 7.984 kB / 496.4 MB, free: 3.246 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.218e-06/0.2813, allocations: 4 kB / 496.4 MB, free: 3.242 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.579e-05/0.2814, allocations: 116.1 kB / 496.5 MB, free: 3.129 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2814, allocations: 0 / 496.5 MB, free: 3.129 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002645/0.2817, allocations: 23.94 kB / 496.5 MB, free: 3.105 MB / 362.7 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.0007023/0.2824, allocations: 1.017 MB / 497.5 MB, free: 2.051 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002191/0.2826, allocations: 112.8 kB / 497.7 MB, free: 1.941 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.2826, allocations: 0 / 497.7 MB, free: 1.941 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.121e-05/0.2827, allocations: 16.05 kB / 497.7 MB, free: 1.926 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000331/0.283, allocations: 75.89 kB / 497.7 MB, free: 1.852 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00206/0.2851, allocations: 3.213 MB / 0.4892 GB, free: 14.51 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002651/0.2854, allocations: 0.7205 MB / 0.4899 GB, free: 13.77 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.244e-05/0.2854, allocations: 13.7 kB / 0.4899 GB, free: 13.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.593e-05/0.2855, allocations: 31.42 kB / 0.49 GB, free: 13.72 MB / 378.7 MB Notification: Performance of SimCode: time 4e-07/0.2855, allocations: 8 kB / 0.49 GB, free: 13.71 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01286/0.2984, allocations: 2.388 MB / 0.4923 GB, free: 11.47 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002066/0.2986, allocations: 189 kB / 0.4925 GB, free: 11.23 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.604/1.903, allocations: 2.531 kB / 0.4925 GB, free: 11.23 MB / 378.7 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