Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0015/0.0015, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002651/0.00265, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.624/1.624, allocations: 227.7 MB / 247.2 MB, free: 10.23 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002337/0.002337, allocations: 63.89 kB / 358.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3639/0.3663, allocations: 50.53 MB / 409.1 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.004254/0.3706, allocations: 1.868 MB / 410.9 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001584/0.3722, allocations: 0.7517 MB / 411.7 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001318/0.3724, allocations: 7.938 kB / 411.7 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001565/0.3725, allocations: 27.8 kB / 411.7 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001648/0.3727, allocations: 23.73 kB / 411.8 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006287/0.3733, allocations: 158.9 kB / 411.9 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002673/0.3736, allocations: 159.5 kB / 412.1 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001988/0.3738, allocations: 61.5 kB / 412.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001692/0.374, allocations: 63.7 kB / 412.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001467/0.3742, allocations: 55.7 kB / 412.2 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.469e-05/0.3742, allocations: 12 kB / 412.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001291/0.3743, allocations: 59.95 kB / 412.3 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.356e-05/0.3744, allocations: 47.83 kB / 412.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.39e-05/0.3745, allocations: 67.61 kB / 412.4 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000354/0.3749, allocations: 214 kB / 412.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3749, allocations: 0 / 412.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.3749, allocations: 0 / 412.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.089e-05/0.3749, allocations: 0 / 412.6 MB, free: 13.84 MB / 334.1 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.000964/0.3759, allocations: 474.8 kB / 413.1 MB, free: 13.33 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.258e-05/0.376, allocations: 8.031 kB / 413.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.086e-05/0.376, allocations: 42.73 kB / 413.1 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001974/0.3763, allocations: 40.72 kB / 413.2 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004553/0.3767, allocations: 248.1 kB / 413.4 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.689e-05/0.3767, allocations: 4.562 kB / 413.4 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.706e-05/0.3768, allocations: 15.94 kB / 413.4 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007509/0.3775, allocations: 326.3 kB / 413.8 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.3776, allocations: 0 / 413.8 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.593e-05/0.3776, allocations: 7.938 kB / 413.8 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.355e-05/0.3776, allocations: 4 kB / 413.8 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000269/0.3779, allocations: 83.88 kB / 413.9 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005022/0.3784, allocations: 345.5 kB / 414.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005239/0.3789, allocations: 266.1 kB / 414.5 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002/0.3791, allocations: 101.7 kB / 414.6 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007441/0.3799, allocations: 0.5859 MB / 415.1 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.287e-05/0.3799, allocations: 42.5 kB / 415.2 MB, free: 10.94 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.833e-06/0.38, allocations: 0 / 415.2 MB, free: 10.94 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006648/0.3806, allocations: 241.3 kB / 415.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/0.3808, allocations: 118.7 kB / 415.5 MB, free: 10.56 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002519/0.381, allocations: 195.2 kB / 415.7 MB, free: 10.36 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.643e-05/0.381, allocations: 29.7 kB / 415.8 MB, free: 10.32 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.3812, allocations: 100.6 kB / 415.9 MB, free: 10.21 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.872e-05/0.3812, allocations: 19.89 kB / 415.9 MB, free: 10.2 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.24e-05/0.3813, allocations: 41.7 kB / 415.9 MB, free: 10.15 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.3815, allocations: 330.9 kB / 416.2 MB, free: 9.816 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.652e-05/0.3816, allocations: 39.97 kB / 416.3 MB, free: 9.777 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002809/0.3819, allocations: 168.5 kB / 416.4 MB, free: 9.555 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002999/0.3822, allocations: 204.1 kB / 416.6 MB, free: 9.297 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.3822, allocations: 0 / 416.6 MB, free: 9.297 MB / 334.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003747/0.3826, allocations: 217.1 kB / 416.9 MB, free: 9.078 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.367e-05/0.3826, allocations: 7.719 kB / 416.9 MB, free: 9.074 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.3826, allocations: 8 kB / 416.9 MB, free: 9.066 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.174e-05/0.3827, allocations: 8 kB / 416.9 MB, free: 9.059 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001512/0.3828, allocations: 43.91 kB / 416.9 MB, free: 9.016 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.583e-05/0.3828, allocations: 11.94 kB / 416.9 MB, free: 9.004 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001165/0.383, allocations: 19.89 kB / 416.9 MB, free: 8.984 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.761e-05/0.383, allocations: 8 kB / 417 MB, free: 8.977 MB / 334.1 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 ($CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[1],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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001899/0.3832, allocations: 149.7 kB / 417.1 MB, free: 8.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003528/0.3835, allocations: 165.4 kB / 417.3 MB, free: 8.652 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004237/0.384, allocations: 187.3 kB / 417.4 MB, free: 8.457 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/0.384, allocations: 0 / 417.4 MB, free: 8.457 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.826e-06/0.384, allocations: 3.984 kB / 417.5 MB, free: 8.453 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.384, allocations: 4 kB / 417.5 MB, free: 8.449 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003085/0.3843, allocations: 233.4 kB / 417.7 MB, free: 8.172 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/0.3843, allocations: 0 / 417.7 MB, free: 8.172 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001386/0.3845, allocations: 27.98 kB / 417.7 MB, free: 8.145 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.3845, allocations: 3.938 kB / 417.7 MB, free: 8.141 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.305e-05/0.3845, allocations: 15.98 kB / 417.7 MB, free: 8.125 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.3845, allocations: 0 / 417.7 MB, free: 8.125 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.3846, allocations: 0 / 417.7 MB, free: 8.125 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004912/0.3851, allocations: 288.1 kB / 418 MB, free: 7.824 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001386/0.3852, allocations: 116.9 kB / 418.1 MB, free: 7.691 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.883e-05/0.3853, allocations: 11.98 kB / 418.1 MB, free: 7.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001208/0.3854, allocations: 11.98 kB / 418.1 MB, free: 7.668 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.298e-05/0.3854, allocations: 0 / 418.1 MB, free: 7.668 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.255e-05/0.3855, allocations: 8 kB / 418.2 MB, free: 7.66 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001398/0.3856, allocations: 147 kB / 418.3 MB, free: 7.516 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3856, allocations: 0 / 418.3 MB, free: 7.516 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000361/0.386, allocations: 35.98 kB / 418.3 MB, free: 7.48 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001145/0.3871, allocations: 0.9148 MB / 419.2 MB, free: 6.539 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003736/0.3875, allocations: 155.7 kB / 419.4 MB, free: 6.387 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.3875, allocations: 0 / 419.4 MB, free: 6.387 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.779e-05/0.3876, allocations: 7.938 kB / 419.4 MB, free: 6.379 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006714/0.3883, allocations: 150.8 kB / 419.6 MB, free: 6.227 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002814/0.3911, allocations: 2.178 MB / 421.7 MB, free: 3.855 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004051/0.3915, allocations: 0.7281 MB / 422.5 MB, free: 3.102 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.508e-05/0.3916, allocations: 17.55 kB / 422.5 MB, free: 3.082 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.919e-05/0.3917, allocations: 43.42 kB / 422.5 MB, free: 3.039 MB / 334.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3917, allocations: 3.938 kB / 422.5 MB, free: 3.035 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02977/0.4215, allocations: 4.288 MB / 426.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.473/8.895, allocations: 7.609 kB / 426.8 MB, free: 14.91 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1)