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.001209/0.001209, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001274/0.001274, 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.415/1.415, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001222, allocations: 63.84 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3003/0.3015, allocations: 50.53 MB / 408.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003124/0.3047, allocations: 1.607 MB / 410.4 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009111/0.3056, allocations: 0.4987 MB / 410.9 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.974e-05/0.3057, allocations: 3.938 kB / 410.9 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.357e-05/0.3058, allocations: 3.938 kB / 410.9 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001808/0.3059, allocations: 15.81 kB / 410.9 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002568/0.3062, allocations: 51.92 kB / 410.9 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002162/0.3064, allocations: 71.77 kB / 411 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001051/0.3065, allocations: 12 kB / 411 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000164/0.3067, allocations: 39.84 kB / 411.1 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.295e-05/0.3068, allocations: 35.84 kB / 411.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.89e-05/0.3068, allocations: 4 kB / 411.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.972e-05/0.3069, allocations: 8 kB / 411.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.326e-05/0.3069, allocations: 15.92 kB / 411.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.347e-05/0.307, allocations: 31.84 kB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002001/0.3072, allocations: 70.61 kB / 411.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.3072, allocations: 3.938 kB / 411.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3072, allocations: 0 / 411.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.3072, allocations: 4 kB / 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.0005789/0.3078, allocations: 383.2 kB / 411.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.3078, allocations: 8.031 kB / 411.6 MB, free: 14.65 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.912e-05/0.3079, allocations: 30.75 kB / 411.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002388/0.3081, allocations: 20.88 kB / 411.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000278/0.3084, allocations: 196.2 kB / 411.9 MB, free: 14.36 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.0001423/0.3086, allocations: 38.25 kB / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.073e-05/0.3086, allocations: 4.375 kB / 411.9 MB, free: 14.31 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003992/0.309, allocations: 176.8 kB / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.309, allocations: 0 / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.328e-05/0.309, allocations: 0 / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.309, allocations: 4 kB / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001262/0.3092, allocations: 31.97 kB / 412.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002151/0.3094, allocations: 190.5 kB / 412.3 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003055/0.3097, allocations: 166.4 kB / 412.4 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001001/0.3098, allocations: 37.7 kB / 412.5 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.599e-05/0.3099, allocations: 15.92 kB / 412.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.67e-05/0.3099, allocations: 34.5 kB / 412.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.563e-06/0.3099, allocations: 0 / 412.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003685/0.3103, allocations: 113.5 kB / 412.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.824e-05/0.3104, allocations: 89.09 kB / 412.7 MB, free: 13.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001167/0.3105, allocations: 125 kB / 412.9 MB, free: 13.2 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2e-05/0.3105, allocations: 33.7 kB / 412.9 MB, free: 13.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.459e-05/0.3106, allocations: 92.12 kB / 413 MB, free: 13.06 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.509e-05/0.3106, allocations: 3.953 kB / 413 MB, free: 13.06 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.561e-05/0.3107, allocations: 25.72 kB / 413 MB, free: 13.03 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002011/0.3109, allocations: 318.8 kB / 413.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.518e-05/0.3109, allocations: 15.98 kB / 413.3 MB, free: 12.69 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.318e-05/0.311, allocations: 70.19 kB / 413.4 MB, free: 12.6 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001411/0.3112, allocations: 77.88 kB / 413.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.3112, allocations: 4 kB / 413.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001796/0.3114, allocations: 101.4 kB / 413.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.3114, allocations: 4 kB / 413.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.313e-06/0.3114, allocations: 4.219 kB / 413.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.3114, allocations: 7.984 kB / 413.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.407e-05/0.3115, allocations: 15.94 kB / 413.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.958e-06/0.3115, allocations: 4 kB / 413.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.655e-05/0.3116, allocations: 15.92 kB / 413.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.416e-06/0.3116, allocations: 4 kB / 413.6 MB, free: 12.34 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.0001134/0.3117, allocations: 117.8 kB / 413.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/0.3119, allocations: 77.52 kB / 413.8 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.104e-05/0.3119, allocations: 16.36 kB / 413.8 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.3119, allocations: 4 kB / 413.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.312, allocations: 0 / 413.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.312, allocations: 4 kB / 413.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001456/0.3121, allocations: 169.6 kB / 414 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.3121, allocations: 3.938 kB / 414 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.355e-05/0.3122, allocations: 11.98 kB / 414 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.3122, allocations: 0 / 414 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.671e-05/0.3122, allocations: 8 kB / 414 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.3122, allocations: 0 / 414 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.379e-06/0.3123, allocations: 0 / 414 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002384/0.3125, allocations: 133.8 kB / 414.2 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.904e-05/0.3126, allocations: 96.98 kB / 414.3 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.522e-05/0.3126, allocations: 4 kB / 414.3 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.854e-05/0.3127, allocations: 4 kB / 414.3 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.225e-05/0.3127, allocations: 4 kB / 414.3 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.056e-05/0.3128, allocations: 3.984 kB / 414.3 MB, free: 11.59 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.564e-05/0.3128, allocations: 99.27 kB / 414.4 MB, free: 11.49 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3128, allocations: 0 / 414.4 MB, free: 11.49 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002113/0.313, allocations: 16 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.0006597/0.3137, allocations: 0.7033 MB / 415.1 MB, free: 10.74 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000196/0.3139, allocations: 59.91 kB / 415.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3139, allocations: 0 / 415.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.52e-05/0.314, allocations: 4 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.0007142/0.3147, allocations: 0.7263 MB / 415.9 MB, free: 9.93 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001467/0.3162, allocations: 1.415 MB / 417.3 MB, free: 8.387 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003842/0.3166, allocations: 0.6924 MB / 418 MB, free: 7.668 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.543e-05/0.3166, allocations: 4 kB / 418 MB, free: 7.664 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.679e-05/0.3167, allocations: 23.42 kB / 418 MB, free: 7.641 MB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3167, allocations: 0 / 418 MB, free: 7.641 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01932/0.336, allocations: 1.955 MB / 420 MB, free: 5.801 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.741/8.077, allocations: 4.062 kB / 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.0.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