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.TickBasedSine.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.TickBasedSine,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00168/0.00168, allocations: 122.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.001858/0.001858, allocations: 202 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.504/1.504, 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.001921/0.001921, allocations: 67.89 kB / 358.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2522/0.2541, allocations: 50.55 MB / 409.1 MB, free: 1.32 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002956/0.2571, allocations: 1.6 MB / 410.7 MB, free: 15.72 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009798/0.2581, allocations: 0.4986 MB / 411.2 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.555e-05/0.2582, allocations: 4 kB / 411.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.451e-05/0.2583, allocations: 3.938 kB / 411.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000175/0.2585, allocations: 19.84 kB / 411.2 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002773/0.2588, allocations: 51.88 kB / 411.3 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000137/0.2589, allocations: 63.84 kB / 411.3 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001067/0.259, allocations: 12 kB / 411.3 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000177/0.2592, allocations: 43.77 kB / 411.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.618e-05/0.2593, allocations: 35.84 kB / 411.4 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.263e-05/0.2593, allocations: 7.984 kB / 411.4 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.944e-05/0.2594, allocations: 8 kB / 411.4 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.863e-05/0.2594, allocations: 11.94 kB / 411.4 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.206e-05/0.2595, allocations: 31.86 kB / 411.5 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001671/0.2597, allocations: 66.67 kB / 411.5 MB, free: 14.87 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.2597, allocations: 0 / 411.5 MB, free: 14.87 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2597, allocations: 4 kB / 411.5 MB, free: 14.86 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.2597, allocations: 0 / 411.5 MB, free: 14.86 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006073/0.2603, allocations: 379.2 kB / 411.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.2604, allocations: 8.031 kB / 411.9 MB, free: 14.44 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.878e-05/0.2604, allocations: 38.67 kB / 412 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000235/0.2607, allocations: 24.88 kB / 412 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003052/0.261, allocations: 196.2 kB / 412.2 MB, free: 14.14 MB / 334.1 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: sine.startOutput = previous(sine.counter) >= sine.startTick - 1 to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001187/0.2611, allocations: 34.27 kB / 412.2 MB, free: 14.1 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.554e-05/0.2611, allocations: 4.375 kB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004126/0.2615, allocations: 176.8 kB / 412.4 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.2616, allocations: 3.938 kB / 412.4 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.787e-05/0.2616, allocations: 8 kB / 412.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.2616, allocations: 0 / 412.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001279/0.2617, allocations: 31.97 kB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002407/0.262, allocations: 186.5 kB / 412.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003288/0.2623, allocations: 170.4 kB / 412.8 MB, free: 13.42 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/0.2624, allocations: 37.7 kB / 412.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.577e-05/0.2625, allocations: 7.938 kB / 412.8 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.979e-05/0.2625, allocations: 34.55 kB / 412.8 MB, free: 13.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 4.228e-06/0.2625, allocations: 0 / 412.8 MB, free: 13.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004134/0.2629, allocations: 117.5 kB / 413 MB, free: 13.2 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001203/0.2631, allocations: 92.98 kB / 413.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001621/0.2632, allocations: 121.8 kB / 413.2 MB, free: 12.96 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.619e-05/0.2633, allocations: 29.7 kB / 413.2 MB, free: 12.93 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.114e-05/0.2633, allocations: 88.14 kB / 413.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.448e-05/0.2634, allocations: 3.953 kB / 413.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.549e-05/0.2634, allocations: 29.83 kB / 413.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001928/0.2636, allocations: 322.8 kB / 413.6 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.992e-05/0.2637, allocations: 15.98 kB / 413.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.04e-05/0.2638, allocations: 58 kB / 413.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001522/0.264, allocations: 77.88 kB / 413.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.264, allocations: 0 / 413.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002206/0.2642, allocations: 113.4 kB / 413.9 MB, free: 12.17 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.695e-05/0.2642, allocations: 8 kB / 413.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-06/0.2643, allocations: 0 / 413.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.66e-05/0.2643, allocations: 4 kB / 413.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.2644, allocations: 15.92 kB / 413.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.2644, allocations: 4 kB / 413.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.026e-05/0.2645, allocations: 11.94 kB / 413.9 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.233e-05/0.2645, allocations: 8.219 kB / 413.9 MB, free: 12.12 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 4 ($CLKPRE.sine.startOutput,sine.startOutput,$CLKPRE.sine.counter,sine.counter) * Number of discrete states: 0 () * Number of clocked states: 2 (sine.startOutput,sine.counter) * 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.0001339/0.2646, allocations: 113.8 kB / 414.1 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001475/0.2648, allocations: 77.52 kB / 414.1 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.695e-05/0.2649, allocations: 16.55 kB / 414.1 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.2649, allocations: 0 / 414.1 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.2649, allocations: 3.938 kB / 414.2 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.2649, allocations: 4 kB / 414.2 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001946/0.2651, allocations: 170 kB / 414.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.2651, allocations: 3.938 kB / 414.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.834e-05/0.2652, allocations: 19.98 kB / 414.3 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.2652, allocations: 0 / 414.3 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.2653, allocations: 8 kB / 414.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.192e-06/0.2653, allocations: 3.984 kB / 414.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.2653, allocations: 3.938 kB / 414.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002534/0.2655, allocations: 121.8 kB / 414.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.962e-05/0.2656, allocations: 101 kB / 414.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.772e-05/0.2657, allocations: 4 kB / 414.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.777e-05/0.2657, allocations: 11.98 kB / 414.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.955e-05/0.2658, allocations: 0 / 414.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.237e-05/0.2658, allocations: 4 kB / 414.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.049e-05/0.2659, allocations: 91.27 kB / 414.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2659, allocations: 0 / 414.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002172/0.2661, allocations: 16 kB / 414.7 MB, free: 11.25 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: 2 (sine.counter,sine.startOutput) * Number of discrete states: 0 () * Number of clocked states: 2 (sine.counter,sine.startOutput) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * 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.0007194/0.2668, allocations: 0.6991 MB / 415.4 MB, free: 10.52 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000204/0.2671, allocations: 55.91 kB / 415.5 MB, free: 10.47 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.2671, allocations: 0.5 kB / 415.5 MB, free: 10.47 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.95e-05/0.2671, allocations: 11.98 kB / 415.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007296/0.2679, allocations: 0.721 MB / 416.2 MB, free: 9.715 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001629/0.2695, allocations: 1.413 MB / 417.6 MB, free: 8.172 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/0.2699, allocations: 0.6924 MB / 418.3 MB, free: 7.453 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.711e-05/0.2699, allocations: 0 / 418.3 MB, free: 7.453 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.108e-05/0.27, allocations: 23.42 kB / 418.3 MB, free: 7.43 MB / 334.1 MB Notification: Performance of SimCode: time 5.72e-07/0.27, allocations: 0 / 418.3 MB, free: 7.43 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02327/0.2932, allocations: 1.989 MB / 420.3 MB, free: 5.582 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.993/8.286, allocations: 7.094 kB / 420.3 MB, free: 5.578 MB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_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_RealSignals_TickBasedSine.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1)