Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_trunk_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.001215/0.001215, allocations: 122.1 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.001405/0.001405, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001945/0.001946, allocations: 67.88 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.253, allocations: 50.53 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002733/0.2558, allocations: 1.611 MB / 410.4 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000885/0.2567, allocations: 0.4948 MB / 410.9 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.127e-05/0.2567, allocations: 3.938 kB / 410.9 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.454e-05/0.2568, allocations: 7.875 kB / 410.9 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001317/0.2569, allocations: 11.88 kB / 410.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000235/0.2572, allocations: 59.86 kB / 411 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001128/0.2573, allocations: 63.84 kB / 411 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.781e-05/0.2574, allocations: 11.98 kB / 411 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001394/0.2575, allocations: 43.78 kB / 411.1 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.502e-05/0.2576, allocations: 31.84 kB / 411.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.576e-05/0.2576, allocations: 4 kB / 411.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.092e-05/0.2577, allocations: 12 kB / 411.1 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.441e-05/0.2577, allocations: 15.91 kB / 411.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.209e-05/0.2578, allocations: 31.86 kB / 411.2 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001406/0.2579, allocations: 66.67 kB / 411.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.2579, allocations: 4 kB / 411.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2579, allocations: 0 / 411.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.345e-06/0.2579, allocations: 0 / 411.2 MB, free: 15.08 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.0005398/0.2585, allocations: 375.2 kB / 411.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.2585, allocations: 12.03 kB / 411.6 MB, free: 14.65 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.796e-05/0.2586, allocations: 34.75 kB / 411.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002105/0.2588, allocations: 20.88 kB / 411.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002296/0.259, allocations: 200.2 kB / 411.9 MB, free: 14.35 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.000105/0.2591, allocations: 34.25 kB / 411.9 MB, free: 14.31 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.689e-05/0.2592, allocations: 8.375 kB / 411.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003729/0.2595, allocations: 172.8 kB / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.2596, allocations: 3.984 kB / 412.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.381e-05/0.2596, allocations: 4 kB / 412.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.2596, allocations: 0 / 412.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001233/0.2597, allocations: 35.91 kB / 412.1 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001902/0.2599, allocations: 182.5 kB / 412.3 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002924/0.2602, allocations: 174.4 kB / 412.5 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.436e-05/0.2603, allocations: 37.7 kB / 412.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.247e-05/0.2603, allocations: 3.938 kB / 412.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.714e-05/0.2604, allocations: 38.56 kB / 412.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.2604, allocations: 0 / 412.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003424/0.2607, allocations: 113.5 kB / 412.7 MB, free: 13.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.811e-05/0.2608, allocations: 85.11 kB / 412.7 MB, free: 13.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001049/0.2609, allocations: 129.8 kB / 412.9 MB, free: 13.19 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.933e-05/0.261, allocations: 25.7 kB / 412.9 MB, free: 13.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.584e-05/0.261, allocations: 92.14 kB / 413 MB, free: 13.06 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.038e-05/0.261, allocations: 7.938 kB / 413 MB, free: 13.05 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.248e-05/0.2611, allocations: 17.72 kB / 413 MB, free: 13.03 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.2612, allocations: 331 kB / 413.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.404e-05/0.2613, allocations: 19.92 kB / 413.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.944e-05/0.2614, allocations: 54 kB / 413.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00013/0.2615, allocations: 81.94 kB / 413.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2615, allocations: 0 / 413.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001823/0.2617, allocations: 109.4 kB / 413.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/0.2617, allocations: 4 kB / 413.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.2617, allocations: 4 kB / 413.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.2617, allocations: 0 / 413.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.537e-05/0.2618, allocations: 16.23 kB / 413.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.695e-06/0.2618, allocations: 4 kB / 413.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.247e-05/0.2619, allocations: 11.94 kB / 413.6 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.458e-06/0.2619, allocations: 4.406 kB / 413.6 MB, free: 12.35 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.0001006/0.262, allocations: 133.7 kB / 413.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001349/0.2622, allocations: 73.58 kB / 413.8 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.45e-05/0.2622, allocations: 12.38 kB / 413.8 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.2622, allocations: 0 / 413.8 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.2622, allocations: 0 / 413.8 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.2622, allocations: 3.984 kB / 413.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001537/0.2624, allocations: 173.6 kB / 414 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/0.2624, allocations: 3.938 kB / 414 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.72e-05/0.2625, allocations: 15.92 kB / 414 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.2625, allocations: 4 kB / 414 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.258e-06/0.2625, allocations: 0 / 414 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.2625, allocations: 4 kB / 414 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/0.2625, allocations: 3.984 kB / 414 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002264/0.2627, allocations: 125.8 kB / 414.2 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.008e-05/0.2628, allocations: 92.98 kB / 414.3 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.352e-05/0.2629, allocations: 8 kB / 414.3 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.715e-05/0.2629, allocations: 4 kB / 414.3 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.673e-05/0.263, allocations: 0 / 414.3 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.134e-05/0.263, allocations: 11.98 kB / 414.3 MB, free: 11.59 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.589e-05/0.2631, allocations: 98.5 kB / 414.4 MB, free: 11.49 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2631, allocations: 3.938 kB / 414.4 MB, free: 11.49 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002036/0.2633, allocations: 12 kB / 414.4 MB, free: 11.48 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.000626/0.2639, allocations: 0.6991 MB / 415.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001835/0.2641, allocations: 55.84 kB / 415.1 MB, free: 10.69 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2641, allocations: 0.5 kB / 415.1 MB, free: 10.69 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.681e-05/0.2641, allocations: 16 kB / 415.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007078/0.2649, allocations: 0.7184 MB / 415.9 MB, free: 9.934 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001458/0.2663, allocations: 1.419 MB / 417.3 MB, free: 8.387 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003289/0.2667, allocations: 0.7002 MB / 418 MB, free: 7.66 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.86e-05/0.2667, allocations: 4 kB / 418 MB, free: 7.656 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.874e-05/0.2668, allocations: 19.42 kB / 418 MB, free: 7.637 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2668, allocations: 0 / 418 MB, free: 7.637 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02226/0.289, allocations: 1.952 MB / 420 MB, free: 5.797 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.051/8.34, allocations: 0 / 420 MB, free: 5.797 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,assignClock1.y Variables in the result:time,assignClock1.u,assignClock1.y,sine.y,sineRef.y,periodicClock1.period