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.0009557/0.0009558, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 221.5 MB / 230.3 MB, free: 7.562 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.000857/0.000857, allocations: 93.77 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.611e-05/1.612e-05, allocations: 4 kB / 337.1 MB, free: 9.934 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09411/0.09414, allocations: 50.42 MB / 387.6 MB, free: 7.48 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3496/0.4438, allocations: 78 MB / 465.6 MB, free: 0.707 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002391/0.4441, allocations: 79.95 kB / 465.6 MB, free: 0.6289 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01336/0.4575, allocations: 4.767 MB / 470.4 MB, free: 11.88 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.4575, allocations: 0 / 470.4 MB, free: 11.88 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.316e-05/0.4575, allocations: 4 kB / 470.4 MB, free: 11.88 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.0005217/0.4581, allocations: 439 kB / 470.8 MB, free: 11.4 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.4581, allocations: 11.97 kB / 470.8 MB, free: 11.39 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.851e-05/0.4582, allocations: 23.72 kB / 470.9 MB, free: 11.36 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003076/0.4585, allocations: 238.7 kB / 471.1 MB, free: 11.09 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.217e-05/0.4585, allocations: 4 kB / 471.1 MB, free: 11.09 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.187e-05/0.4585, allocations: 11.98 kB / 471.1 MB, free: 11.07 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001353/0.4587, allocations: 56.19 kB / 471.2 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004505/0.4591, allocations: 284 kB / 471.5 MB, free: 10.72 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.4592, allocations: 0 / 471.5 MB, free: 10.72 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.499e-05/0.4592, allocations: 0 / 471.5 MB, free: 10.72 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.4592, allocations: 0 / 471.5 MB, free: 10.72 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004255/0.4596, allocations: 330 kB / 471.8 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003172/0.46, allocations: 218.6 kB / 472 MB, free: 10.11 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001264/0.4601, allocations: 83.55 kB / 472.1 MB, free: 10.02 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006638/0.4608, allocations: 0.5856 MB / 472.7 MB, free: 9.309 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.359e-05/0.4608, allocations: 30.56 kB / 472.7 MB, free: 9.27 MB / 346.7 MB Notification: Performance of pre-optimization done (n=19): time 1.623e-06/0.4608, allocations: 0 / 472.7 MB, free: 9.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.0004115/0.4613, allocations: 141.6 kB / 472.8 MB, free: 9.125 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.889e-05/0.4614, allocations: 120 kB / 472.9 MB, free: 8.984 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001681/0.4615, allocations: 169.6 kB / 473.1 MB, free: 8.812 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.267e-05/0.4616, allocations: 25.7 kB / 473.1 MB, free: 8.781 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.529e-05/0.4616, allocations: 104.6 kB / 473.2 MB, free: 8.676 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.172e-05/0.4617, allocations: 12.05 kB / 473.2 MB, free: 8.664 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.48e-06/0.4617, allocations: 0 / 473.2 MB, free: 8.664 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.4618, allocations: 330.8 kB / 473.6 MB, free: 8.332 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.068e-05/0.4619, allocations: 32.38 kB / 473.6 MB, free: 8.301 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001395/0.462, allocations: 153.7 kB / 473.7 MB, free: 8.09 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.826e-05/0.4621, allocations: 63.83 kB / 473.8 MB, free: 8.027 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.4621, allocations: 0 / 473.8 MB, free: 8.027 MB / 346.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002517/0.4624, allocations: 181.1 kB / 474 MB, free: 7.844 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.4624, allocations: 4 kB / 474 MB, free: 7.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.384e-05/0.4624, allocations: 4 kB / 474 MB, free: 7.836 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.4624, allocations: 8 kB / 474 MB, free: 7.828 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001576/0.4626, allocations: 40.52 kB / 474 MB, free: 7.789 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.4626, allocations: 11.94 kB / 474.1 MB, free: 7.777 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001103/0.4627, allocations: 23.83 kB / 474.1 MB, free: 7.754 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.652e-05/0.4628, allocations: 12 kB / 474.1 MB, free: 7.742 MB / 346.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 9.839e-05/0.4629, allocations: 120.8 kB / 474.2 MB, free: 7.617 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002605/0.4631, allocations: 150.9 kB / 474.4 MB, free: 7.465 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.002e-05/0.4632, allocations: 15.81 kB / 474.4 MB, free: 7.449 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002767/0.4635, allocations: 143.5 kB / 474.5 MB, free: 7.301 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.451e-06/0.4635, allocations: 11.97 kB / 474.5 MB, free: 7.289 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.4635, allocations: 0 / 474.5 MB, free: 7.289 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.4635, allocations: 0 / 474.5 MB, free: 7.289 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002107/0.4637, allocations: 205.9 kB / 474.7 MB, free: 7.051 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/0.4637, allocations: 4 kB / 474.7 MB, free: 7.047 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000149/0.4639, allocations: 35.92 kB / 474.8 MB, free: 7.012 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.4639, allocations: 4 kB / 474.8 MB, free: 7.008 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.412e-05/0.4639, allocations: 3.984 kB / 474.8 MB, free: 7.004 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.4639, allocations: 0 / 474.8 MB, free: 7.004 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.4639, allocations: 4 kB / 474.8 MB, free: 7 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002656/0.4642, allocations: 269.8 kB / 475 MB, free: 6.711 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.634e-05/0.4643, allocations: 112.8 kB / 475.1 MB, free: 6.582 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.49e-05/0.4644, allocations: 7.953 kB / 475.2 MB, free: 6.574 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001311/0.4645, allocations: 15.98 kB / 475.2 MB, free: 6.559 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.748e-05/0.4645, allocations: 4 kB / 475.2 MB, free: 6.555 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.956e-05/0.4646, allocations: 8 kB / 475.2 MB, free: 6.547 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.583e-05/0.4647, allocations: 132.3 kB / 475.3 MB, free: 6.418 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4647, allocations: 4 kB / 475.3 MB, free: 6.414 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003107/0.465, allocations: 28 kB / 475.3 MB, free: 6.387 MB / 346.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.0007651/0.4658, allocations: 0.9386 MB / 476.3 MB, free: 5.418 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002068/0.466, allocations: 115.6 kB / 476.4 MB, free: 5.305 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.466, allocations: 5.188 kB / 476.4 MB, free: 5.301 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.193e-05/0.466, allocations: 0 / 476.4 MB, free: 5.301 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000449/0.4665, allocations: 139.5 kB / 476.5 MB, free: 5.16 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006432/0.4671, allocations: 255.8 kB / 476.8 MB, free: 4.867 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002992/0.4674, allocations: 0.7361 MB / 477.5 MB, free: 4.105 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.11e-05/0.4675, allocations: 21.27 kB / 477.5 MB, free: 4.086 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.04e-05/0.4676, allocations: 47.42 kB / 477.6 MB, free: 4.039 MB / 346.7 MB Notification: Performance of SimCode: time 2.8e-07/0.4676, allocations: 0 / 477.6 MB, free: 4.039 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02258/0.4902, allocations: 3.365 MB / 481 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002004/0.4904, allocations: 163.5 kB / 481.1 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.548/2.038, allocations: 0 / 481.1 MB, free: 0.5078 MB / 346.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