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.Sample2.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.Sample2,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001779/0.001779, allocations: 122.1 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.001976/0.001976, 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.503/1.503, allocations: 227.7 MB / 247.2 MB, free: 10.2 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.003088/0.003088, allocations: 59.91 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3988/0.4019, allocations: 50.54 MB / 409.1 MB, free: 1.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.003612/0.4056, allocations: 1.557 MB / 410.6 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004649/0.4061, allocations: 135.5 kB / 410.8 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.08e-05/0.4062, allocations: 7.938 kB / 410.8 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.814e-05/0.4062, allocations: 3.938 kB / 410.8 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001483/0.4064, allocations: 7.938 kB / 410.8 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002719/0.4067, allocations: 43.52 kB / 410.8 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001099/0.4068, allocations: 31.86 kB / 410.9 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001261/0.4069, allocations: 19.98 kB / 410.9 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.438e-05/0.407, allocations: 11.92 kB / 410.9 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.304e-05/0.407, allocations: 15.92 kB / 410.9 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.544e-05/0.4071, allocations: 4 kB / 410.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.244e-05/0.4071, allocations: 0 / 410.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.087e-05/0.4072, allocations: 15.94 kB / 410.9 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.823e-05/0.4072, allocations: 23.81 kB / 410.9 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001414/0.4074, allocations: 50.75 kB / 411 MB, free: 15.49 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.4074, allocations: 0 / 411 MB, free: 15.49 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.4074, allocations: 0 / 411 MB, free: 15.49 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.672e-06/0.4074, allocations: 0 / 411 MB, free: 15.49 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006181/0.408, allocations: 371.1 kB / 411.4 MB, free: 15.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.342e-05/0.4081, allocations: 15.97 kB / 411.4 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.102e-05/0.4081, allocations: 34.75 kB / 411.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.207e-05/0.4082, allocations: 12.89 kB / 411.4 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003295/0.4085, allocations: 195.2 kB / 411.6 MB, free: 14.78 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.258e-05/0.4085, allocations: 384 / 411.6 MB, free: 14.78 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.469e-05/0.4086, allocations: 8.375 kB / 411.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003228/0.4089, allocations: 117.6 kB / 411.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.003e-05/0.4089, allocations: 7.875 kB / 411.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.033e-05/0.4089, allocations: 3.938 kB / 411.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.062e-06/0.4089, allocations: 0 / 411.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.62e-05/0.409, allocations: 19.98 kB / 411.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004047/0.4094, allocations: 257.8 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002704/0.4097, allocations: 146.2 kB / 412.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.095e-05/0.4098, allocations: 33.75 kB / 412.2 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.526e-05/0.4098, allocations: 0 / 412.2 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.793e-05/0.4099, allocations: 30.56 kB / 412.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.4099, allocations: 7.938 kB / 412.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003068/0.4102, allocations: 73.62 kB / 412.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.939e-05/0.4103, allocations: 89.05 kB / 412.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001448/0.4104, allocations: 130.1 kB / 412.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.323e-05/0.4105, allocations: 29.7 kB / 412.5 MB, free: 13.67 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.204e-05/0.4106, allocations: 84.14 kB / 412.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.984e-05/0.4106, allocations: 7.953 kB / 412.6 MB, free: 13.58 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.846e-05/0.4106, allocations: 17.84 kB / 412.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001895/0.4108, allocations: 318.8 kB / 413 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.562e-05/0.4109, allocations: 8 kB / 413 MB, free: 13.23 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.929e-05/0.4109, allocations: 31.42 kB / 413 MB, free: 13.18 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001063/0.4111, allocations: 51.36 kB / 413.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.4111, allocations: 7.938 kB / 413.1 MB, free: 13.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001273/0.4112, allocations: 57.62 kB / 413.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.4112, allocations: 4 kB / 413.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.4112, allocations: 8.109 kB / 413.1 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.4113, allocations: 4 kB / 413.1 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.189e-05/0.4113, allocations: 11.94 kB / 413.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.315e-06/0.4114, allocations: 0 / 413.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.955e-05/0.4114, allocations: 7.953 kB / 413.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.414e-06/0.4114, allocations: 3.938 kB / 413.2 MB, free: 13.01 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.0001205/0.4116, allocations: 125.8 kB / 413.3 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.526e-05/0.4117, allocations: 53.64 kB / 413.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.841e-05/0.4117, allocations: 4.25 kB / 413.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.98e-06/0.4117, allocations: 8 kB / 413.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.4117, allocations: 0 / 413.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.4117, allocations: 0 / 413.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002248/0.412, allocations: 169.6 kB / 413.5 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.412, allocations: 3.938 kB / 413.5 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.853e-05/0.412, allocations: 11.94 kB / 413.5 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.412, allocations: 0 / 413.5 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.154e-05/0.4121, allocations: 7.984 kB / 413.5 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.559e-06/0.4121, allocations: 4 kB / 413.5 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.4121, allocations: 0 / 413.5 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002053/0.4123, allocations: 176.3 kB / 413.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.91e-05/0.4124, allocations: 85.05 kB / 413.8 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.817e-05/0.4124, allocations: 3.984 kB / 413.8 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.412e-05/0.4125, allocations: 0 / 413.8 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.833e-05/0.4125, allocations: 4 kB / 413.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.54e-06/0.4125, allocations: 4 kB / 413.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.381e-05/0.4126, allocations: 110.6 kB / 413.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4126, allocations: 0 / 413.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002234/0.4128, allocations: 8 kB / 413.9 MB, free: 12.14 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0006232/0.4135, allocations: 0.698 MB / 414.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001644/0.4136, allocations: 35.95 kB / 414.7 MB, free: 11.38 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.4137, allocations: 0 / 414.7 MB, free: 11.38 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.181e-05/0.4137, allocations: 15.98 kB / 414.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003765/0.4141, allocations: 19.95 kB / 414.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00162/0.4157, allocations: 1.314 MB / 416 MB, free: 9.922 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004024/0.4161, allocations: 0.6924 MB / 416.7 MB, free: 9.203 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.262e-05/0.4162, allocations: 8 kB / 416.7 MB, free: 9.195 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.894e-05/0.4162, allocations: 11.44 kB / 416.7 MB, free: 9.184 MB / 334.1 MB Notification: Performance of SimCode: time 2.7e-07/0.4163, allocations: 3.938 kB / 416.7 MB, free: 9.18 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02784/0.4441, allocations: 1.493 MB / 418.2 MB, free: 7.824 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.384/8.828, allocations: 2.812 kB / 418.2 MB, free: 7.824 MB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_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_Sample2.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1)