Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001759/0.001759, allocations: 114.4 kB / 17.07 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001446/0.001446, allocations: 200 kB / 18 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.547/1.547, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001054/0.001054, allocations: 47.92 kB / 351.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3917/0.3927, allocations: 49.43 MB / 400.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003072/0.3959, allocations: 1.598 MB / 402.3 MB, free: 7.285 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008531/0.3968, allocations: 442.9 kB / 402.8 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.342e-05/0.3969, allocations: 8 kB / 402.8 MB, free: 6.84 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.993e-05/0.3969, allocations: 7.875 kB / 402.8 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001938/0.3971, allocations: 15.86 kB / 402.8 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002119/0.3973, allocations: 35.95 kB / 402.8 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001247/0.3975, allocations: 63.78 kB / 402.9 MB, free: 6.719 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000107/0.3976, allocations: 11.98 kB / 402.9 MB, free: 6.707 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001206/0.3977, allocations: 35.84 kB / 402.9 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.814e-05/0.3978, allocations: 39.84 kB / 403 MB, free: 6.633 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.215e-05/0.3978, allocations: 4 kB / 403 MB, free: 6.629 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.432e-05/0.3978, allocations: 4 kB / 403 MB, free: 6.625 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.813e-05/0.3979, allocations: 19.86 kB / 403 MB, free: 6.605 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.09e-05/0.3979, allocations: 31.8 kB / 403 MB, free: 6.574 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001256/0.3981, allocations: 63.78 kB / 403.1 MB, free: 6.512 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.3981, allocations: 0 / 403.1 MB, free: 6.512 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.3981, allocations: 0 / 403.1 MB, free: 6.512 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.3981, allocations: 0 / 403.1 MB, free: 6.512 MB / 318.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.0005992/0.3987, allocations: 372.4 kB / 403.5 MB, free: 6.105 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.3987, allocations: 11.89 kB / 403.5 MB, free: 6.094 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.109e-05/0.3988, allocations: 8.844 kB / 403.5 MB, free: 6.086 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002713/0.3991, allocations: 192.1 kB / 403.7 MB, free: 5.859 MB / 318.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.0001172/0.3992, allocations: 42.25 kB / 403.7 MB, free: 5.812 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.622e-05/0.3992, allocations: 4.375 kB / 403.7 MB, free: 5.809 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003759/0.3996, allocations: 169 kB / 403.9 MB, free: 5.625 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.3996, allocations: 0 / 403.9 MB, free: 5.625 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.402e-05/0.3996, allocations: 4 kB / 403.9 MB, free: 5.621 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.3996, allocations: 0 / 403.9 MB, free: 5.621 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001357/0.3998, allocations: 39.91 kB / 403.9 MB, free: 5.582 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002019/0.4, allocations: 182.5 kB / 404.1 MB, free: 5.352 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002853/0.4003, allocations: 174.3 kB / 404.3 MB, free: 5.145 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.635e-05/0.4004, allocations: 41.7 kB / 404.3 MB, free: 5.098 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.156e-05/0.4004, allocations: 7.984 kB / 404.3 MB, free: 5.09 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.576e-05/0.4005, allocations: 38.5 kB / 404.3 MB, free: 5.043 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.4005, allocations: 0 / 404.3 MB, free: 5.043 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003235/0.4008, allocations: 113.5 kB / 404.5 MB, free: 4.926 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.787e-05/0.4009, allocations: 85.11 kB / 404.5 MB, free: 4.824 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.423e-05/0.401, allocations: 121.8 kB / 404.7 MB, free: 4.695 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.557e-05/0.401, allocations: 25.7 kB / 404.7 MB, free: 4.664 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.224e-05/0.4011, allocations: 88.14 kB / 404.8 MB, free: 4.574 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.548e-05/0.4011, allocations: 8.031 kB / 404.8 MB, free: 4.566 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.869e-05/0.4012, allocations: 29.7 kB / 404.8 MB, free: 4.531 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.4013, allocations: 318.8 kB / 405.1 MB, free: 4.211 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.307e-05/0.4014, allocations: 19.98 kB / 405.1 MB, free: 4.191 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.891e-05/0.4014, allocations: 57.94 kB / 405.2 MB, free: 4.113 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001192/0.4016, allocations: 81.88 kB / 405.3 MB, free: 4.012 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.4016, allocations: 4 kB / 405.3 MB, free: 4.008 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001713/0.4017, allocations: 105.4 kB / 405.4 MB, free: 3.898 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.4018, allocations: 8 kB / 405.4 MB, free: 3.891 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.4018, allocations: 0 / 405.4 MB, free: 3.891 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.4018, allocations: 4 kB / 405.4 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.822e-05/0.4019, allocations: 12 kB / 405.4 MB, free: 3.875 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.108e-05/0.4019, allocations: 8.141 kB / 405.4 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.04e-05/0.402, allocations: 8 kB / 405.4 MB, free: 3.859 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.945e-06/0.402, allocations: 4 kB / 405.4 MB, free: 3.855 MB / 318.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 9.89e-05/0.4021, allocations: 121.8 kB / 405.5 MB, free: 3.727 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001225/0.4022, allocations: 73.53 kB / 405.6 MB, free: 3.648 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.056e-05/0.4022, allocations: 16.36 kB / 405.6 MB, free: 3.633 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.4023, allocations: 0 / 405.6 MB, free: 3.633 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.4023, allocations: 3.938 kB / 405.6 MB, free: 3.629 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.4023, allocations: 4 kB / 405.6 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001235/0.4024, allocations: 173.6 kB / 405.8 MB, free: 3.406 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.4024, allocations: 4 kB / 405.8 MB, free: 3.402 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.327e-05/0.4025, allocations: 16.23 kB / 405.8 MB, free: 3.387 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.4025, allocations: 0 / 405.8 MB, free: 3.387 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.304e-05/0.4025, allocations: 8 kB / 405.8 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.4025, allocations: 0 / 405.8 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.4025, allocations: 0 / 405.8 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002137/0.4027, allocations: 125.9 kB / 406 MB, free: 3.234 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.094e-05/0.4028, allocations: 92.94 kB / 406.1 MB, free: 3.125 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.504e-05/0.4029, allocations: 8 kB / 406.1 MB, free: 3.117 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.32e-05/0.4029, allocations: 0 / 406.1 MB, free: 3.117 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.035e-05/0.403, allocations: 11.92 kB / 406.1 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.917e-06/0.403, allocations: 0 / 406.1 MB, free: 3.105 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.041e-05/0.403, allocations: 106.1 kB / 406.2 MB, free: 3.004 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4031, allocations: 0 / 406.2 MB, free: 3.004 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002044/0.4033, allocations: 8.188 kB / 406.2 MB, free: 2.996 MB / 318.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.0001109/0.4034, allocations: 115.5 kB / 406.3 MB, free: 2.879 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001909/0.4036, allocations: 59.84 kB / 406.4 MB, free: 2.82 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.4036, allocations: 0 / 406.4 MB, free: 2.82 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.701e-05/0.4036, allocations: 7.984 kB / 406.4 MB, free: 2.812 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006286/0.4043, allocations: 0.7224 MB / 407.1 MB, free: 2.066 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003813/0.4047, allocations: 171.5 kB / 407.3 MB, free: 1.871 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003257/0.405, allocations: 0.6961 MB / 407.9 MB, free: 1.148 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.42e-05/0.405, allocations: 11.97 kB / 408 MB, free: 1.137 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.236e-05/0.4051, allocations: 11.47 kB / 408 MB, free: 1.125 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4051, allocations: 0 / 408 MB, free: 1.125 MB / 318.1 MB Notification: Performance of Templates: time 0.003441/0.4085, allocations: 0.754 MB / 408.7 MB, free: 380 kB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches