Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.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.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001787/0.001787, allocations: 118.8 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.001919/0.00192, allocations: 198 kB / 18.73 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.468/1.468, allocations: 227.7 MB / 247.2 MB, free: 10.16 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.001923/0.001923, allocations: 63.91 kB / 358.5 MB, free: 13.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2575/0.2594, allocations: 50.54 MB / 409.1 MB, free: 1.34 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.002212/0.2617, allocations: 0.8505 MB / 409.9 MB, free: 0.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003965/0.2621, allocations: 111.7 kB / 410 MB, free: 400 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.303e-05/0.2622, allocations: 4 kB / 410 MB, free: 396 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001112/0.2624, allocations: 7.875 kB / 410 MB, free: 388 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001271/0.2625, allocations: 11.92 kB / 410 MB, free: 376 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002199/0.2627, allocations: 38.91 kB / 410.1 MB, free: 340 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000114/0.2628, allocations: 39.91 kB / 410.1 MB, free: 300 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001141/0.263, allocations: 23.98 kB / 410.1 MB, free: 276 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.431e-05/0.263, allocations: 19.86 kB / 410.2 MB, free: 256 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.856e-05/0.2631, allocations: 23.92 kB / 410.2 MB, free: 232 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.415e-05/0.2631, allocations: 4 kB / 410.2 MB, free: 228 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.44e-05/0.2631, allocations: 4 kB / 410.2 MB, free: 224 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.559e-05/0.2632, allocations: 15.92 kB / 410.2 MB, free: 208 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.554e-05/0.2632, allocations: 27.81 kB / 410.2 MB, free: 180 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001358/0.2634, allocations: 54.69 kB / 410.3 MB, free: 128 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.2634, allocations: 8 kB / 410.3 MB, free: 120 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2634, allocations: 0 / 410.3 MB, free: 120 kB / 318.1 MB Notification: Performance of Transformations before backend: time 5.511e-06/0.2634, allocations: 0 / 410.3 MB, free: 120 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0005527/0.264, allocations: 383 kB / 410.7 MB, free: 15.69 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.264, allocations: 12.03 kB / 410.7 MB, free: 15.68 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.504e-05/0.2641, allocations: 34.75 kB / 410.7 MB, free: 15.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.295e-05/0.2641, allocations: 12.84 kB / 410.7 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002269/0.2643, allocations: 200.2 kB / 410.9 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.295e-05/0.2644, allocations: 8.375 kB / 410.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.047e-05/0.2644, allocations: 4.375 kB / 410.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002824/0.2647, allocations: 143.7 kB / 411.1 MB, free: 15.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.2647, allocations: 3.938 kB / 411.1 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.173e-05/0.2647, allocations: 3.984 kB / 411.1 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.2647, allocations: 0 / 411.1 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.291e-05/0.2648, allocations: 27.98 kB / 411.1 MB, free: 15.19 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001654/0.2649, allocations: 169.6 kB / 411.3 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001541/0.2651, allocations: 78.69 kB / 411.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.712e-05/0.2652, allocations: 40.84 kB / 411.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.05e-05/0.2652, allocations: 0 / 411.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.939e-05/0.2652, allocations: 38.56 kB / 411.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 9.51e-07/0.2652, allocations: 0 / 411.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002141/0.2655, allocations: 105.5 kB / 411.5 MB, free: 14.69 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.789e-05/0.2655, allocations: 51.41 kB / 411.6 MB, free: 14.63 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001319/0.2657, allocations: 153.2 kB / 411.7 MB, free: 14.47 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.684e-05/0.2657, allocations: 29.64 kB / 411.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.067e-05/0.2657, allocations: 84.3 kB / 411.8 MB, free: 14.35 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.886e-05/0.2658, allocations: 7.984 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.485e-05/0.2658, allocations: 29.72 kB / 411.9 MB, free: 14.31 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.266, allocations: 318.8 kB / 412.2 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.633e-05/0.266, allocations: 8 kB / 412.2 MB, free: 13.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.158e-05/0.2661, allocations: 62.84 kB / 412.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.67e-05/0.2662, allocations: 74.75 kB / 412.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.294e-06/0.2662, allocations: 0 / 412.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001418/0.2663, allocations: 105.4 kB / 412.4 MB, free: 13.68 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.2663, allocations: 7.938 kB / 412.4 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.2664, allocations: 4 kB / 412.5 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.2664, allocations: 0 / 412.5 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.955e-05/0.2665, allocations: 15.98 kB / 412.5 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.2665, allocations: 7.938 kB / 412.5 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.865e-05/0.2665, allocations: 8.188 kB / 412.5 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.949e-06/0.2665, allocations: 12 kB / 412.5 MB, free: 13.63 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 9 (sum.y,sum.u[2],sum.u[1],const.y,unitDelay1.y,$CLKPRE.unitDelay1.u,unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.0001025/0.2666, allocations: 125.1 kB / 412.6 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001082/0.2668, allocations: 85.52 kB / 412.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.494e-05/0.2668, allocations: 12.72 kB / 412.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.2668, allocations: 0 / 412.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.2668, allocations: 0 / 412.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.2668, allocations: 4 kB / 412.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001228/0.267, allocations: 169.6 kB / 412.9 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.267, allocations: 4 kB / 412.9 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.76e-05/0.267, allocations: 19.94 kB / 412.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.733e-06/0.267, allocations: 7.922 kB / 412.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.2671, allocations: 0 / 412.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.2671, allocations: 4 kB / 412.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2671, allocations: 0 / 412.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00014/0.2672, allocations: 109.5 kB / 413 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.069e-05/0.2673, allocations: 100.9 kB / 413.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.749e-05/0.2673, allocations: 3.984 kB / 413.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.187e-05/0.2673, allocations: 8 kB / 413.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.144e-06/0.2674, allocations: 0 / 413.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-06/0.2674, allocations: 0 / 413.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.917e-05/0.2674, allocations: 107.5 kB / 413.2 MB, free: 12.78 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.924e-06/0.2675, allocations: 0 / 413.2 MB, free: 12.78 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001969/0.2677, allocations: 15.88 kB / 413.3 MB, free: 12.77 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,const.y,sum.u[1],sum.u[2],sum.y) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0005124/0.2682, allocations: 0.6827 MB / 413.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000121/0.2683, allocations: 47.86 kB / 414 MB, free: 12.01 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2683, allocations: 3.938 kB / 414 MB, free: 12 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.61e-07/0.2683, allocations: 0 / 414 MB, free: 12 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002742/0.2686, allocations: 45.69 kB / 414 MB, free: 11.96 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001213/0.2698, allocations: 1.376 MB / 415.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003095/0.2702, allocations: 0.6924 MB / 416.1 MB, free: 9.742 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.537e-05/0.2702, allocations: 8.609 kB / 416.1 MB, free: 9.73 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.418e-05/0.2702, allocations: 23.42 kB / 416.1 MB, free: 9.707 MB / 334.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2702, allocations: 4 kB / 416.1 MB, free: 9.703 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02015/0.2904, allocations: 1.826 MB / 418 MB, free: 8.012 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.215/8.505, allocations: 11.02 kB / 418 MB, free: 8.008 MB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_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_IntegerSignals_AssignClock.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1)