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.TickBasedPulse.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.TickBasedPulse,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001729/0.001729, allocations: 117.2 kB / 17.78 MB, free: 5.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002031/0.002031, allocations: 200.6 kB / 18.72 MB, free: 4.438 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.427/1.427, 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.001934/0.001934, allocations: 63.89 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2979/0.2998, allocations: 50.55 MB / 409.1 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002817/0.3027, allocations: 1.429 MB / 410.5 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002201/0.3029, allocations: 43.84 kB / 410.5 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.666e-05/0.303, allocations: 4 kB / 410.5 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.902e-05/0.303, allocations: 3.938 kB / 410.5 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.511e-05/0.3031, allocations: 15.91 kB / 410.6 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002566/0.3034, allocations: 19.98 kB / 410.6 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001025/0.3035, allocations: 39.91 kB / 410.6 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.3036, allocations: 11.98 kB / 410.6 MB, free: 15.81 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.879e-05/0.3037, allocations: 15.94 kB / 410.6 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.39e-05/0.3037, allocations: 15.92 kB / 410.7 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.025e-05/0.3037, allocations: 4 kB / 410.7 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.43e-05/0.3038, allocations: 4 kB / 410.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.831e-05/0.3038, allocations: 15.91 kB / 410.7 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.354e-05/0.3038, allocations: 15.94 kB / 410.7 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001192/0.304, allocations: 47.8 kB / 410.7 MB, free: 15.7 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.304, allocations: 0 / 410.7 MB, free: 15.7 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.304, allocations: 0 / 410.7 MB, free: 15.7 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.304, allocations: 0 / 410.7 MB, free: 15.7 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005038/0.3045, allocations: 350.5 kB / 411.1 MB, free: 15.3 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.3046, allocations: 12.03 kB / 411.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.727e-05/0.3046, allocations: 38.73 kB / 411.1 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.225e-05/0.3046, allocations: 8.891 kB / 411.1 MB, free: 15.24 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002424/0.3049, allocations: 184.3 kB / 411.3 MB, free: 15.02 MB / 334.1 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= pulse.startTick - 1 to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001165/0.305, allocations: 34.27 kB / 411.4 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.193e-05/0.305, allocations: 4.375 kB / 411.4 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003115/0.3053, allocations: 135.5 kB / 411.5 MB, free: 14.83 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.3054, allocations: 0 / 411.5 MB, free: 14.83 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.807e-06/0.3054, allocations: 0 / 411.5 MB, free: 14.83 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.3054, allocations: 3.938 kB / 411.5 MB, free: 14.83 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.934e-05/0.3055, allocations: 19.98 kB / 411.5 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001725/0.3056, allocations: 161.6 kB / 411.7 MB, free: 14.6 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002205/0.3059, allocations: 143.7 kB / 411.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.495e-05/0.3059, allocations: 24.84 kB / 411.8 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.712e-06/0.3059, allocations: 0 / 411.8 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.254e-05/0.306, allocations: 42.5 kB / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.032e-06/0.306, allocations: 0 / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002121/0.3062, allocations: 73.62 kB / 412 MB, free: 14.28 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.176e-05/0.3063, allocations: 63.34 kB / 412 MB, free: 14.2 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.307e-05/0.3064, allocations: 110 kB / 412.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.337e-05/0.3064, allocations: 25.7 kB / 412.1 MB, free: 14.05 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.447e-05/0.3064, allocations: 84.14 kB / 412.2 MB, free: 13.97 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.848e-05/0.3065, allocations: 11.94 kB / 412.2 MB, free: 13.95 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.698e-05/0.3065, allocations: 21.72 kB / 412.3 MB, free: 13.93 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.3067, allocations: 314.8 kB / 412.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.785e-05/0.3067, allocations: 7.984 kB / 412.6 MB, free: 13.6 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.501e-05/0.3067, allocations: 36.3 kB / 412.6 MB, free: 13.55 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.507e-05/0.3068, allocations: 52.23 kB / 412.7 MB, free: 13.48 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3068, allocations: 0 / 412.7 MB, free: 13.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000103/0.3069, allocations: 77.5 kB / 412.7 MB, free: 13.4 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.3069, allocations: 11.94 kB / 412.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.3069, allocations: 0 / 412.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.307, allocations: 4.156 kB / 412.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.13e-05/0.307, allocations: 4 kB / 412.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.307, allocations: 4 kB / 412.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.243e-05/0.3071, allocations: 3.938 kB / 412.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.053e-06/0.3071, allocations: 4 kB / 412.8 MB, free: 13.37 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 ($CLKPRE.pulse.startOutput,pulse.startOutput,$CLKPRE.pulse.counter,pulse.counter,pulse.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.startOutput,pulse.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 9.525e-05/0.3072, allocations: 117.2 kB / 412.9 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001028/0.3073, allocations: 65.62 kB / 412.9 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.256e-05/0.3073, allocations: 3.969 kB / 413 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.3073, allocations: 0 / 413 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.3073, allocations: 11.98 kB / 413 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.3073, allocations: 0 / 413 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000125/0.3075, allocations: 161.7 kB / 413.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3075, allocations: 0 / 413.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.062e-06/0.3075, allocations: 96 / 413.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.683e-06/0.3075, allocations: 7.922 kB / 413.1 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.3075, allocations: 3.938 kB / 413.1 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3075, allocations: 7.938 kB / 413.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3075, allocations: 0 / 413.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001485/0.3077, allocations: 93.33 kB / 413.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.342e-05/0.3077, allocations: 88.97 kB / 413.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.99e-05/0.3078, allocations: 8 kB / 413.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.381e-05/0.3078, allocations: 4 kB / 413.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.775e-06/0.3078, allocations: 0 / 413.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.731e-06/0.3078, allocations: 0 / 413.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.558e-05/0.3079, allocations: 87.27 kB / 413.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3079, allocations: 0 / 413.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001863/0.3081, allocations: 8 kB / 413.4 MB, free: 12.61 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: 5 (assignClock1.u,assignClock1.y,pulse.y,pulse.counter,pulse.startOutput) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.counter,pulse.startOutput) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * 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.0006033/0.3087, allocations: 0.6553 MB / 414.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001231/0.3088, allocations: 35.92 kB / 414.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3088, allocations: 0 / 414.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.21e-07/0.3089, allocations: 0 / 414.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007397/0.3096, allocations: 0.7195 MB / 414.8 MB, free: 11.15 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001204/0.3108, allocations: 1.218 MB / 416.1 MB, free: 9.824 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003846/0.3112, allocations: 0.6807 MB / 416.7 MB, free: 9.117 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.633e-05/0.3112, allocations: 3.984 kB / 416.7 MB, free: 9.113 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.886e-05/0.3113, allocations: 15.44 kB / 416.8 MB, free: 9.098 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3113, allocations: 0 / 416.8 MB, free: 9.098 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02299/0.3343, allocations: 1.687 MB / 418.4 MB, free: 7.555 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.658/7.993, allocations: 8.062 kB / 418.4 MB, free: 7.547 MB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1)