Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.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.SampleWithADeffects,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001013/0.001013, 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.209/1.209, allocations: 227.2 MB / 245 MB, free: 5.938 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008738/0.0008738, allocations: 97.84 kB / 297.3 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002176/0.0002176, allocations: 8 kB / 358 MB, free: 9.223 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1812/0.1815, allocations: 51.49 MB / 409.5 MB, free: 26.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.088/0.2695, allocations: 79.55 MB / 489.1 MB, free: 11.02 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002058/0.2698, allocations: 83.95 kB / 489.1 MB, free: 10.94 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01278/0.2826, allocations: 4.901 MB / 494 MB, free: 6.047 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2826, allocations: 0 / 494 MB, free: 6.047 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.134e-05/0.2826, allocations: 0 / 494 MB, free: 6.047 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.0005502/0.2832, allocations: 474.8 kB / 494.5 MB, free: 5.531 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.2832, allocations: 8.031 kB / 494.5 MB, free: 5.523 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.661e-05/0.2833, allocations: 46.55 kB / 494.6 MB, free: 5.469 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000133/0.2834, allocations: 31.66 kB / 494.6 MB, free: 5.438 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002948/0.2837, allocations: 251 kB / 494.8 MB, free: 5.152 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.549e-05/0.2837, allocations: 12.14 kB / 494.8 MB, free: 5.141 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.827e-05/0.2838, allocations: 8 kB / 494.8 MB, free: 5.133 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000612/0.2844, allocations: 329.5 kB / 495.2 MB, free: 4.797 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.2844, allocations: 4 kB / 495.2 MB, free: 4.793 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.748e-05/0.2844, allocations: 11.98 kB / 495.2 MB, free: 4.781 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.2844, allocations: 0 / 495.2 MB, free: 4.781 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002261/0.2847, allocations: 98.98 kB / 495.3 MB, free: 4.688 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004457/0.2851, allocations: 357.9 kB / 495.6 MB, free: 4.285 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004515/0.2856, allocations: 278.2 kB / 495.9 MB, free: 3.977 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005201/0.2861, allocations: 0.574 MB / 496.5 MB, free: 3.273 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.644e-05/0.2862, allocations: 46.59 kB / 496.5 MB, free: 3.219 MB / 362.7 MB Notification: Performance of pre-optimization done (n=19): time 1.523e-06/0.2862, allocations: 0 / 496.5 MB, free: 3.219 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.0006168/0.2868, allocations: 334.8 kB / 496.9 MB, free: 2.867 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.674e-05/0.2869, allocations: 122.7 kB / 497 MB, free: 2.723 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001681/0.287, allocations: 178.3 kB / 497.1 MB, free: 2.539 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.033e-05/0.2871, allocations: 29.7 kB / 497.2 MB, free: 2.504 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.8e-05/0.2871, allocations: 100.6 kB / 497.3 MB, free: 2.402 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.056e-05/0.2872, allocations: 15.89 kB / 497.3 MB, free: 2.387 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.232e-06/0.2872, allocations: 4 kB / 497.3 MB, free: 2.383 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.2873, allocations: 330.9 kB / 497.6 MB, free: 2.051 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.212e-05/0.2874, allocations: 40.34 kB / 497.7 MB, free: 2.012 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001569/0.2875, allocations: 161.9 kB / 497.8 MB, free: 1.793 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001172/0.2877, allocations: 67.94 kB / 497.9 MB, free: 1.727 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.2877, allocations: 8 kB / 497.9 MB, free: 1.719 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003234/0.288, allocations: 217.5 kB / 498.1 MB, free: 1.5 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.288, allocations: 10.34 kB / 498.1 MB, free: 1.492 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.288, allocations: 4 kB / 498.1 MB, free: 1.488 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.2881, allocations: 4 kB / 498.1 MB, free: 1.484 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/0.2882, allocations: 47.88 kB / 498.2 MB, free: 1.438 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.2882, allocations: 7.984 kB / 498.2 MB, free: 1.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001124/0.2883, allocations: 23.84 kB / 498.2 MB, free: 1.406 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.254e-05/0.2884, allocations: 8 kB / 498.2 MB, free: 1.398 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 6 (sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[1],$CLKPRE.sample1.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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.0001314/0.2885, allocations: 151.9 kB / 498.3 MB, free: 1.242 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002936/0.2888, allocations: 169.3 kB / 498.5 MB, free: 1.07 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003535/0.2892, allocations: 195.3 kB / 498.7 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.2892, allocations: 0 / 498.7 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.2892, allocations: 7.953 kB / 498.7 MB, free: 0.8633 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.052e-06/0.2892, allocations: 7.969 kB / 498.7 MB, free: 0.8555 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002186/0.2894, allocations: 217.6 kB / 498.9 MB, free: 0.5938 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.195e-06/0.2894, allocations: 3.984 kB / 498.9 MB, free: 0.5898 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001432/0.2896, allocations: 39.86 kB / 499 MB, free: 0.5508 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.2896, allocations: 4 kB / 499 MB, free: 0.5469 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.684e-05/0.2896, allocations: 8 kB / 499 MB, free: 0.5391 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.2896, allocations: 4 kB / 499 MB, free: 0.5352 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.2896, allocations: 0 / 499 MB, free: 0.5352 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004026/0.29, allocations: 313.7 kB / 499.3 MB, free: 208 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.904e-05/0.2902, allocations: 116.8 kB / 499.4 MB, free: 72 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.267e-05/0.2902, allocations: 8 kB / 499.4 MB, free: 64 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001316/0.2903, allocations: 15.92 kB / 499.4 MB, free: 48 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.011e-05/0.2904, allocations: 4 kB / 499.4 MB, free: 44 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.735e-05/0.2904, allocations: 8 kB / 499.4 MB, free: 36 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001332/0.2905, allocations: 144.5 kB / 499.6 MB, free: 15.89 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.527e-06/0.2906, allocations: 0 / 499.6 MB, free: 15.89 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003018/0.2909, allocations: 39.94 kB / 499.6 MB, free: 15.85 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.000978/0.2918, allocations: 1.023 MB / 0.4889 GB, free: 14.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003106/0.2922, allocations: 148.7 kB / 0.4891 GB, free: 14.65 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2922, allocations: 192 / 0.4891 GB, free: 14.65 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.057e-05/0.2922, allocations: 15.98 kB / 0.4891 GB, free: 14.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004647/0.2927, allocations: 144.4 kB / 0.4892 GB, free: 14.49 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002272/0.295, allocations: 3.748 MB / 0.4929 GB, free: 10.61 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000265/0.2953, allocations: 0.7402 MB / 0.4936 GB, free: 9.848 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.379e-05/0.2953, allocations: 17.55 kB / 0.4936 GB, free: 9.832 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.775e-05/0.2954, allocations: 43.36 kB / 0.4937 GB, free: 9.789 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.2954, allocations: 0 / 0.4937 GB, free: 9.789 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01454/0.31, allocations: 3.793 MB / 0.4974 GB, free: 6.184 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001508/0.3101, allocations: 213.7 kB / 0.4976 GB, free: 5.93 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.576/1.886, allocations: 0 / 0.4976 GB, free: 5.93 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat does not exist to compare? outputFormat=mat