Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.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.BooleanSignals.Hold,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001445/0.001445, allocations: 122.1 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001437/0.001437, allocations: 197.2 kB / 18.74 MB, free: 4.312 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.439/1.439, allocations: 227.7 MB / 247.2 MB, free: 10.17 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.002035/0.002036, allocations: 68.08 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2815, allocations: 50.55 MB / 409.1 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold): time 0.003712/0.2852, allocations: 1.916 MB / 411 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002171/0.2874, allocations: 1.216 MB / 412.2 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001194/0.2876, allocations: 7.938 kB / 412.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006476/0.2882, allocations: 147.5 kB / 412.4 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004439/0.2887, allocations: 159.3 kB / 412.5 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004691/0.2892, allocations: 171.5 kB / 412.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003088/0.2895, allocations: 195.4 kB / 412.9 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001155/0.2896, allocations: 45.59 kB / 412.9 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001203/0.2897, allocations: 79.62 kB / 413 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001234/0.2899, allocations: 75.62 kB / 413.1 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.839e-05/0.2899, allocations: 12 kB / 413.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001446/0.2901, allocations: 59.91 kB / 413.1 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.858e-05/0.2902, allocations: 51.83 kB / 413.2 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001425/0.2903, allocations: 75.48 kB / 413.3 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000332/0.2906, allocations: 222.2 kB / 413.5 MB, free: 13.06 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.2907, allocations: 0 / 413.5 MB, free: 13.06 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2907, allocations: 3.938 kB / 413.5 MB, free: 13.06 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.2907, allocations: 0 / 413.5 MB, free: 13.06 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008349/0.2915, allocations: 0.5193 MB / 414 MB, free: 12.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.2916, allocations: 8.031 kB / 414 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.214e-05/0.2916, allocations: 38.75 kB / 414 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.38e-05/0.2917, allocations: 28.78 kB / 414.1 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004338/0.2921, allocations: 278.9 kB / 414.3 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.382e-05/0.2921, allocations: 8.375 kB / 414.4 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.764e-05/0.2922, allocations: 7.938 kB / 414.4 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003376/0.2925, allocations: 167.6 kB / 414.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.2925, allocations: 0 / 414.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.361e-05/0.2925, allocations: 4 kB / 414.5 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.2925, allocations: 0 / 414.5 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001139/0.2927, allocations: 39.92 kB / 414.6 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006593/0.2933, allocations: 450.5 kB / 415 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002498/0.2936, allocations: 138.5 kB / 415.1 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001043/0.2937, allocations: 51.42 kB / 415.2 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.916e-05/0.2937, allocations: 7.984 kB / 415.2 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002195/0.294, allocations: 93.05 kB / 415.3 MB, free: 10.99 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.733e-06/0.294, allocations: 0 / 415.3 MB, free: 10.99 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004013/0.2944, allocations: 161.4 kB / 415.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001187/0.2945, allocations: 158.6 kB / 415.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003403/0.2949, allocations: 284.9 kB / 415.9 MB, free: 10.34 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.273e-05/0.295, allocations: 29.7 kB / 415.9 MB, free: 10.31 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001213/0.2951, allocations: 124.4 kB / 416 MB, free: 10.18 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.786e-05/0.2951, allocations: 15.97 kB / 416 MB, free: 10.16 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.88e-05/0.2952, allocations: 37.66 kB / 416.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.2954, allocations: 330.8 kB / 416.4 MB, free: 9.789 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.502e-05/0.2954, allocations: 23.92 kB / 416.4 MB, free: 9.766 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001199/0.2956, allocations: 78.86 kB / 416.5 MB, free: 9.664 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001776/0.2957, allocations: 89.36 kB / 416.6 MB, free: 9.559 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.2958, allocations: 0 / 416.6 MB, free: 9.559 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002943/0.2961, allocations: 133.4 kB / 416.7 MB, free: 9.422 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.2961, allocations: 11.94 kB / 416.7 MB, free: 9.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.2961, allocations: 0 / 416.7 MB, free: 9.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.2961, allocations: 4 kB / 416.7 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.409e-05/0.2962, allocations: 11.94 kB / 416.8 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/0.2962, allocations: 12.09 kB / 416.8 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.365e-05/0.2963, allocations: 23.81 kB / 416.8 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.024e-05/0.2963, allocations: 4 kB / 416.8 MB, free: 9.355 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: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,hold1.y,hold1.u,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001813/0.2965, allocations: 141.8 kB / 416.9 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/0.2966, allocations: 77.48 kB / 417 MB, free: 9.125 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.719e-05/0.2967, allocations: 21.7 kB / 417 MB, free: 9.102 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.2967, allocations: 4 kB / 417 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/0.2967, allocations: 4.062 kB / 417 MB, free: 9.094 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-06/0.2967, allocations: 7.922 kB / 417 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002941/0.297, allocations: 225.6 kB / 417.3 MB, free: 8.816 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.297, allocations: 3.984 kB / 417.3 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.943e-05/0.2971, allocations: 11.94 kB / 417.3 MB, free: 8.801 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.2971, allocations: 0 / 417.3 MB, free: 8.801 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.424e-05/0.2971, allocations: 8 kB / 417.3 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.2971, allocations: 0 / 417.3 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2971, allocations: 0 / 417.3 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002826/0.2974, allocations: 175.5 kB / 417.5 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001042/0.2975, allocations: 116.8 kB / 417.6 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.46e-05/0.2976, allocations: 7.984 kB / 417.6 MB, free: 8.453 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.3e-05/0.2976, allocations: 8 kB / 417.6 MB, free: 8.445 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.231e-05/0.2977, allocations: 7.922 kB / 417.6 MB, free: 8.438 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.764e-05/0.2977, allocations: 12.06 kB / 417.6 MB, free: 8.426 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002586/0.298, allocations: 204.5 kB / 417.8 MB, free: 8.227 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.298, allocations: 0 / 417.8 MB, free: 8.227 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002625/0.2982, allocations: 31.95 kB / 417.8 MB, free: 8.195 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002018/0.3003, allocations: 1.016 MB / 418.9 MB, free: 7.305 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002621/0.3006, allocations: 75.84 kB / 418.9 MB, free: 7.23 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3006, allocations: 0 / 418.9 MB, free: 7.23 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.707e-05/0.3007, allocations: 35.92 kB / 419 MB, free: 7.195 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004088/0.3011, allocations: 88.12 kB / 419 MB, free: 7.113 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002541/0.3036, allocations: 2.015 MB / 421.1 MB, free: 4.969 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000377/0.304, allocations: 0.7358 MB / 421.8 MB, free: 4.207 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.583e-05/0.3041, allocations: 21.55 kB / 421.8 MB, free: 4.18 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001412/0.3043, allocations: 55.34 kB / 421.9 MB, free: 4.125 MB / 334.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3043, allocations: 4 kB / 421.9 MB, free: 4.121 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8176/1.122, allocations: 4.823 MB / 426.7 MB, free: 15.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.28/11.4, allocations: 7.984 kB / 426.7 MB, free: 15.45 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_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_BooleanSignals_Hold.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1)