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.001002/0.001002, allocations: 177.1 kB / 13.64 MB, free: 1.676 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.33/1.33, allocations: 221.3 MB / 235.5 MB, free: 2.938 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008749/0.0008748, allocations: 95.55 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.039e-05/3.042e-05, allocations: 4 kB / 343.9 MB, free: 4.207 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09869/0.09874, allocations: 50.41 MB / 394.3 MB, free: 1.754 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3284/0.4272, allocations: 78.67 MB / 473 MB, free: 8.809 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002568/0.4275, allocations: 79.95 kB / 473.1 MB, free: 8.73 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01325/0.4408, allocations: 4.788 MB / 477.9 MB, free: 3.949 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.4408, allocations: 3.938 kB / 477.9 MB, free: 3.945 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.305e-05/0.4408, allocations: 4 kB / 477.9 MB, free: 3.941 MB / 346.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.0005097/0.4413, allocations: 454.9 kB / 478.3 MB, free: 3.449 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.4414, allocations: 8.031 kB / 478.3 MB, free: 3.441 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.228e-05/0.4414, allocations: 38.56 kB / 478.4 MB, free: 3.395 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.088e-05/0.4415, allocations: 19.72 kB / 478.4 MB, free: 3.375 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003048/0.4418, allocations: 242.7 kB / 478.6 MB, free: 3.098 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.639e-05/0.4418, allocations: 8.188 kB / 478.6 MB, free: 3.09 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.177e-05/0.4419, allocations: 11.94 kB / 478.7 MB, free: 3.078 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000481/0.4423, allocations: 296.5 kB / 478.9 MB, free: 2.766 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.4424, allocations: 0 / 478.9 MB, free: 2.766 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.696e-05/0.4424, allocations: 4 kB / 478.9 MB, free: 2.762 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.4424, allocations: 7.984 kB / 479 MB, free: 2.754 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001498/0.4426, allocations: 52 kB / 479 MB, free: 2.703 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004292/0.443, allocations: 357.4 kB / 479.4 MB, free: 2.301 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003093/0.4433, allocations: 230.3 kB / 479.6 MB, free: 2.039 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001309/0.4435, allocations: 93.81 kB / 479.7 MB, free: 1.941 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005124/0.444, allocations: 0.5739 MB / 480.2 MB, free: 1.238 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.473e-05/0.444, allocations: 38.55 kB / 480.3 MB, free: 1.191 MB / 346.7 MB Notification: Performance of pre-optimization done (n=19): time 1.723e-06/0.444, allocations: 4 kB / 480.3 MB, free: 1.188 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.0002935/0.4443, allocations: 150.7 kB / 480.4 MB, free: 1.035 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.304e-05/0.4444, allocations: 110.8 kB / 480.5 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000151/0.4446, allocations: 170.6 kB / 480.7 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.4446, allocations: 29.7 kB / 480.7 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.907e-05/0.4447, allocations: 108.6 kB / 480.8 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.067e-05/0.4447, allocations: 15.89 kB / 480.9 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.193e-05/0.4447, allocations: 4 kB / 480.9 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.624e-05/0.4448, allocations: 338.8 kB / 481.2 MB, free: 232 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.102e-05/0.4449, allocations: 32.36 kB / 481.2 MB, free: 200 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001273/0.445, allocations: 158.4 kB / 481.4 MB, free: 15.98 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.508e-05/0.4451, allocations: 59.94 kB / 481.4 MB, free: 15.92 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.4451, allocations: 4 kB / 481.4 MB, free: 15.92 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002623/0.4454, allocations: 201.6 kB / 481.6 MB, free: 15.71 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.4454, allocations: 9.469 kB / 481.6 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.4454, allocations: 4 kB / 481.6 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.4454, allocations: 8 kB / 481.7 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001412/0.4456, allocations: 43.92 kB / 481.7 MB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.781e-05/0.4456, allocations: 15.92 kB / 481.7 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.4457, allocations: 11.91 kB / 481.7 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.685e-05/0.4457, allocations: 19.94 kB / 481.7 MB, free: 15.61 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 () * 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 8.488e-05/0.4458, allocations: 131.9 kB / 481.9 MB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002021/0.446, allocations: 141.4 kB / 482 MB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002601/0.4463, allocations: 156.6 kB / 482.2 MB, free: 15.17 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.4463, allocations: 7.938 kB / 482.2 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.4463, allocations: 0 / 482.2 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.4463, allocations: 7.969 kB / 482.2 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002076/0.4465, allocations: 229.5 kB / 482.4 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.4466, allocations: 0 / 482.4 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001384/0.4467, allocations: 31.98 kB / 482.4 MB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.4467, allocations: 8 kB / 482.4 MB, free: 14.84 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.523e-05/0.4467, allocations: 8 kB / 482.5 MB, free: 14.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.139e-06/0.4467, allocations: 3.984 kB / 482.5 MB, free: 14.83 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.4468, allocations: 3.938 kB / 482.5 MB, free: 14.83 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002624/0.447, allocations: 276.1 kB / 482.7 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.295e-05/0.4471, allocations: 108.8 kB / 482.8 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.764e-05/0.4472, allocations: 19.94 kB / 482.9 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001296/0.4473, allocations: 15.98 kB / 482.9 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.808e-05/0.4473, allocations: 4 kB / 482.9 MB, free: 14.37 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.54e-05/0.4474, allocations: 4 kB / 482.9 MB, free: 14.37 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001122/0.4475, allocations: 143.4 kB / 483 MB, free: 14.23 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4475, allocations: 0 / 483 MB, free: 14.23 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002817/0.4478, allocations: 32 kB / 483.1 MB, free: 14.2 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 () * 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.0007065/0.4485, allocations: 0.9493 MB / 484 MB, free: 13.21 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002056/0.4487, allocations: 126 kB / 484.1 MB, free: 13.09 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4487, allocations: 0 / 484.1 MB, free: 13.09 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.779e-05/0.4487, allocations: 11.98 kB / 484.1 MB, free: 13.08 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004072/0.4492, allocations: 133.6 kB / 484.3 MB, free: 12.95 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006164/0.4498, allocations: 276.9 kB / 484.5 MB, free: 12.63 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000277/0.4501, allocations: 0.7447 MB / 485.3 MB, free: 11.86 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.887e-05/0.4501, allocations: 13.33 kB / 485.3 MB, free: 11.84 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.751e-05/0.4502, allocations: 43.42 kB / 485.3 MB, free: 11.8 MB / 362.7 MB Notification: Performance of SimCode: time 3.2e-07/0.4502, allocations: 7.938 kB / 485.3 MB, free: 11.79 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01423/0.4645, allocations: 3.79 MB / 489.1 MB, free: 8.156 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001544/0.4646, allocations: 176.6 kB / 489.3 MB, free: 7.93 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.737/2.202, allocations: 0.9844 kB / 489.3 MB, free: 7.93 MB / 362.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