Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001723/0.001723, allocations: 180.4 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.263/1.263, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009125/0.0009126, allocations: 88.58 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003041/0.0003041, allocations: 11.94 kB / 351.2 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2114/0.2117, allocations: 50.4 MB / 401.6 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09557/0.3073, allocations: 78.73 MB / 480.3 MB, free: 1.727 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002419/0.3076, allocations: 81.61 kB / 480.4 MB, free: 1.648 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01363/0.3213, allocations: 4.805 MB / 485.2 MB, free: 12.85 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3213, allocations: 0 / 485.2 MB, free: 12.85 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.387e-05/0.3213, allocations: 4 kB / 485.2 MB, free: 12.84 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.0006225/0.322, allocations: 466.7 kB / 485.7 MB, free: 12.34 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.322, allocations: 8.031 kB / 485.7 MB, free: 12.33 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.611e-05/0.3221, allocations: 42.56 kB / 485.7 MB, free: 12.28 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.477e-05/0.3221, allocations: 23.72 kB / 485.7 MB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003099/0.3224, allocations: 242.7 kB / 486 MB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.527e-05/0.3225, allocations: 8.188 kB / 486 MB, free: 11.97 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.98e-05/0.3225, allocations: 8 kB / 486 MB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000629/0.3231, allocations: 355.6 kB / 486.3 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.3231, allocations: 7.984 kB / 486.3 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.411e-05/0.3232, allocations: 0 / 486.3 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.3232, allocations: 4 kB / 486.3 MB, free: 11.58 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002237/0.3234, allocations: 91.89 kB / 486.4 MB, free: 11.49 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004381/0.3239, allocations: 353.6 kB / 486.8 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004481/0.3243, allocations: 282 kB / 487.1 MB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000537/0.3249, allocations: 0.5818 MB / 487.6 MB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.554e-05/0.3249, allocations: 34.56 kB / 487.7 MB, free: 10.03 MB / 362.7 MB Notification: Performance of pre-optimization done (n=19): time 1.392e-06/0.3249, allocations: 0 / 487.7 MB, free: 10.03 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.0006114/0.3255, allocations: 337.7 kB / 488 MB, free: 9.68 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.845e-05/0.3256, allocations: 118.8 kB / 488.1 MB, free: 9.539 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001656/0.3258, allocations: 170.7 kB / 488.3 MB, free: 9.363 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.758e-05/0.3258, allocations: 29.7 kB / 488.3 MB, free: 9.328 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.59e-05/0.3259, allocations: 100.6 kB / 488.4 MB, free: 9.227 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.402e-05/0.3259, allocations: 27.95 kB / 488.4 MB, free: 9.199 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.37e-06/0.3259, allocations: 0 / 488.4 MB, free: 9.199 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.3261, allocations: 334.8 kB / 488.8 MB, free: 8.863 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.703e-05/0.3262, allocations: 44.34 kB / 488.8 MB, free: 8.82 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001747/0.3263, allocations: 157.9 kB / 489 MB, free: 8.605 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001182/0.3265, allocations: 71.94 kB / 489 MB, free: 8.535 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.3265, allocations: 4 kB / 489 MB, free: 8.531 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003247/0.3268, allocations: 217.2 kB / 489.2 MB, free: 8.312 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.3268, allocations: 8 kB / 489.3 MB, free: 8.305 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.555e-06/0.3268, allocations: 4 kB / 489.3 MB, free: 8.301 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.3269, allocations: 8 kB / 489.3 MB, free: 8.293 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001398/0.327, allocations: 39.92 kB / 489.3 MB, free: 8.254 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.327, allocations: 7.984 kB / 489.3 MB, free: 8.246 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001163/0.3272, allocations: 28.33 kB / 489.3 MB, free: 8.219 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.623e-05/0.3272, allocations: 12 kB / 489.4 MB, free: 8.207 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.0001882/0.3274, allocations: 159.1 kB / 489.5 MB, free: 8.043 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003413/0.3277, allocations: 173.2 kB / 489.7 MB, free: 7.867 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004123/0.3281, allocations: 185.8 kB / 489.9 MB, free: 7.684 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.3282, allocations: 7.938 kB / 489.9 MB, free: 7.676 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3282, allocations: 0 / 489.9 MB, free: 7.676 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.3282, allocations: 3.984 kB / 489.9 MB, free: 7.672 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002168/0.3284, allocations: 221.5 kB / 490.1 MB, free: 7.406 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/0.3284, allocations: 3.984 kB / 490.1 MB, free: 7.402 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001483/0.3286, allocations: 39.92 kB / 490.1 MB, free: 7.363 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.3286, allocations: 0 / 490.1 MB, free: 7.363 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.677e-05/0.3286, allocations: 8 kB / 490.1 MB, free: 7.355 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.3286, allocations: 0 / 490.1 MB, free: 7.355 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3286, allocations: 0 / 490.1 MB, free: 7.355 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004589/0.3291, allocations: 317.7 kB / 490.4 MB, free: 7.02 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001105/0.3292, allocations: 108.9 kB / 490.6 MB, free: 6.895 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.605e-05/0.3293, allocations: 11.95 kB / 490.6 MB, free: 6.883 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001346/0.3294, allocations: 19.98 kB / 490.6 MB, free: 6.863 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.904e-05/0.3294, allocations: 4 kB / 490.6 MB, free: 6.859 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.3295, allocations: 4 kB / 490.6 MB, free: 6.855 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001353/0.3296, allocations: 144.3 kB / 490.7 MB, free: 6.715 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3296, allocations: 0 / 490.7 MB, free: 6.715 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003291/0.3299, allocations: 35.94 kB / 490.8 MB, free: 6.68 MB / 362.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.001064/0.331, allocations: 1.014 MB / 491.8 MB, free: 5.629 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003835/0.3314, allocations: 148.9 kB / 491.9 MB, free: 5.484 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3314, allocations: 0 / 491.9 MB, free: 5.484 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.672e-05/0.3315, allocations: 19.92 kB / 491.9 MB, free: 5.465 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005416/0.332, allocations: 156.7 kB / 492.1 MB, free: 5.309 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002955/0.335, allocations: 3.735 MB / 495.8 MB, free: 1.438 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003749/0.3354, allocations: 0.7441 MB / 496.6 MB, free: 0.668 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.732e-05/0.3355, allocations: 21.62 kB / 496.6 MB, free: 0.6484 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.576e-05/0.3356, allocations: 43.42 kB / 496.6 MB, free: 0.6055 MB / 362.7 MB Notification: Performance of SimCode: time 7.01e-07/0.3356, allocations: 0 / 496.6 MB, free: 0.6055 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01843/0.354, allocations: 3.788 MB / 0.4887 GB, free: 13.01 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002627/0.3543, allocations: 202.2 kB / 0.4889 GB, free: 12.77 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.735/2.089, allocations: 4.062 kB / 0.4889 GB, free: 12.77 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat does not exist to compare? outputFormat=mat