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.AssignClockToTriggerHold.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.AssignClockToTriggerHold,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00145/0.001449, allocations: 118.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.001467/0.001467, allocations: 198 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.535/1.535, allocations: 227.7 MB / 247.2 MB, free: 10.18 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.001998/0.001998, allocations: 59.91 kB / 358.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2954/0.2974, allocations: 50.53 MB / 409.1 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.003286/0.3008, allocations: 1.651 MB / 410.7 MB, free: 15.81 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001133/0.3019, allocations: 0.5609 MB / 411.3 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.414e-05/0.302, allocations: 11.88 kB / 411.3 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.625e-05/0.3021, allocations: 3.938 kB / 411.3 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001412/0.3022, allocations: 23.84 kB / 411.3 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003438/0.3026, allocations: 63.75 kB / 411.4 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001557/0.3027, allocations: 63.89 kB / 411.5 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000115/0.3029, allocations: 24.16 kB / 411.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001253/0.303, allocations: 31.86 kB / 411.5 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.287e-05/0.3031, allocations: 35.83 kB / 411.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.117e-05/0.3031, allocations: 8 kB / 411.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.975e-05/0.3032, allocations: 12 kB / 411.6 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.222e-05/0.3032, allocations: 19.92 kB / 411.6 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.605e-05/0.3033, allocations: 35.75 kB / 411.6 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000192/0.3035, allocations: 86.47 kB / 411.7 MB, free: 14.83 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.3035, allocations: 0 / 411.7 MB, free: 14.83 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3035, allocations: 0 / 411.7 MB, free: 14.83 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.3035, allocations: 0 / 411.7 MB, free: 14.83 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.000597/0.3041, allocations: 395 kB / 412.1 MB, free: 14.39 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.3042, allocations: 16.03 kB / 412.1 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.402e-05/0.3042, allocations: 38.73 kB / 412.1 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001446/0.3044, allocations: 20.84 kB / 412.2 MB, free: 14.31 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003856/0.3048, allocations: 210.2 kB / 412.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.3048, allocations: 8.297 kB / 412.4 MB, free: 14.06 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.8e-05/0.3048, allocations: 11.94 kB / 412.4 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003242/0.3051, allocations: 144.3 kB / 412.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.3052, allocations: 4 kB / 412.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.207e-05/0.3052, allocations: 4 kB / 412.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.3052, allocations: 0 / 412.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001178/0.3053, allocations: 31.97 kB / 412.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005146/0.3058, allocations: 309.6 kB / 412.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000262/0.3061, allocations: 154.2 kB / 413 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.135e-05/0.3062, allocations: 41.73 kB / 413.1 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.403e-05/0.3062, allocations: 4 kB / 413.1 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001303/0.3064, allocations: 67.34 kB / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.543e-06/0.3064, allocations: 0 / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003404/0.3067, allocations: 121.7 kB / 413.2 MB, free: 13.06 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.377e-05/0.3068, allocations: 85.11 kB / 413.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001453/0.307, allocations: 152.7 kB / 413.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.16e-05/0.307, allocations: 33.7 kB / 413.5 MB, free: 12.76 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.601e-05/0.3071, allocations: 88.12 kB / 413.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.465e-05/0.3071, allocations: 15.91 kB / 413.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.724e-05/0.3072, allocations: 33.66 kB / 413.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.3074, allocations: 318.8 kB / 414 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.779e-05/0.3074, allocations: 19.98 kB / 414 MB, free: 12.28 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001013/0.3076, allocations: 69.14 kB / 414 MB, free: 12.19 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001666/0.3077, allocations: 89.06 kB / 414.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3077, allocations: 0 / 414.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002183/0.308, allocations: 109.5 kB / 414.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.308, allocations: 4 kB / 414.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.308, allocations: 4 kB / 414.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.308, allocations: 0 / 414.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.193e-05/0.3081, allocations: 27.86 kB / 414.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.785e-06/0.3081, allocations: 4.156 kB / 414.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.557e-05/0.3082, allocations: 7.938 kB / 414.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.086e-05/0.3082, allocations: 4 kB / 414.3 MB, free: 11.92 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler.y,$PRE.triggeredSampler.y,clockToTrigger.y3,$PRE.clockToTrigger.y3,triggeredSampler.trigger,$whenCondition1,$CLKPRE.clockToTrigger.y2,clockToTrigger.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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.0001281/0.3083, allocations: 125.8 kB / 414.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.085e-05/0.3084, allocations: 61.75 kB / 414.5 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.009e-05/0.3085, allocations: 12.31 kB / 414.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.3085, allocations: 3.938 kB / 414.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.3085, allocations: 3.938 kB / 414.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.3085, allocations: 0 / 414.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004385/0.309, allocations: 346.5 kB / 414.8 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.309, allocations: 3.984 kB / 414.8 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.13e-05/0.309, allocations: 15.88 kB / 414.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.3091, allocations: 0 / 414.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.173e-05/0.3091, allocations: 4 kB / 414.9 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.3091, allocations: 128 / 414.9 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.3091, allocations: 4 kB / 414.9 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002754/0.3094, allocations: 204.3 kB / 415.1 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.006e-05/0.3095, allocations: 101 kB / 415.2 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.997e-05/0.3095, allocations: 0 / 415.2 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.203e-05/0.3096, allocations: 8.078 kB / 415.2 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.765e-05/0.3096, allocations: 3.938 kB / 415.2 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.222e-05/0.3096, allocations: 8 kB / 415.2 MB, free: 10.92 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.328e-05/0.3097, allocations: 113.7 kB / 415.3 MB, free: 10.81 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3097, allocations: 4 kB / 415.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002422/0.31, allocations: 15.95 kB / 415.3 MB, free: 10.79 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: 5 (clockToTrigger.y2,triggeredSampler.trigger,$whenCondition1,triggeredSampler.y,clockToTrigger.y3) * Number of discrete states: 1 (clockToTrigger.y3) * Number of clocked states: 1 (clockToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0007367/0.3107, allocations: 0.7679 MB / 416.1 MB, free: 9.992 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002163/0.311, allocations: 67.91 kB / 416.1 MB, free: 9.926 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.311, allocations: 4 kB / 416.1 MB, free: 9.922 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.383e-05/0.311, allocations: 20.06 kB / 416.2 MB, free: 9.902 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003415/0.3114, allocations: 31.44 kB / 416.2 MB, free: 9.875 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001801/0.3132, allocations: 1.555 MB / 417.7 MB, free: 8.199 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003728/0.3136, allocations: 0.7007 MB / 418.4 MB, free: 7.473 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.907e-05/0.3136, allocations: 4.438 kB / 418.5 MB, free: 7.469 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.338e-05/0.3137, allocations: 27.42 kB / 418.5 MB, free: 7.441 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3137, allocations: 0 / 418.5 MB, free: 7.441 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02523/0.339, allocations: 2.048 MB / 420.5 MB, free: 5.57 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.08/8.419, allocations: 12.5 kB / 420.5 MB, free: 5.559 MB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.6e-05 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1)