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.001524/0.001524, allocations: 112.3 kB / 17.06 MB, free: 5.992 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.001425/0.001425, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.573/1.573, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00151/0.00151, allocations: 51.91 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4278/0.4294, allocations: 49.43 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.00412/0.4335, allocations: 1.6 MB / 402.3 MB, free: 7.281 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001028/0.4346, allocations: 442.9 kB / 402.8 MB, free: 6.844 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001306/0.4348, allocations: 0 / 402.8 MB, free: 6.844 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.886e-05/0.4349, allocations: 7.875 kB / 402.8 MB, free: 6.836 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002203/0.4351, allocations: 15.88 kB / 402.8 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002768/0.4354, allocations: 39.94 kB / 402.8 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001578/0.4355, allocations: 67.78 kB / 402.9 MB, free: 6.715 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/0.4357, allocations: 15.94 kB / 402.9 MB, free: 6.699 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001721/0.4359, allocations: 39.78 kB / 402.9 MB, free: 6.66 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.743e-05/0.436, allocations: 23.91 kB / 403 MB, free: 6.637 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.878e-05/0.436, allocations: 7.938 kB / 403 MB, free: 6.629 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.916e-05/0.436, allocations: 8 kB / 403 MB, free: 6.621 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.437e-05/0.4361, allocations: 15.97 kB / 403 MB, free: 6.605 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.7e-05/0.4361, allocations: 31.8 kB / 403 MB, free: 6.574 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001606/0.4363, allocations: 63.58 kB / 403.1 MB, free: 6.516 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.4363, allocations: 0 / 403.1 MB, free: 6.516 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.4363, allocations: 0 / 403.1 MB, free: 6.516 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.495e-06/0.4363, allocations: 4 kB / 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.0007276/0.4371, allocations: 371.2 kB / 403.5 MB, free: 6.102 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.196e-05/0.4371, allocations: 12.03 kB / 403.5 MB, free: 6.09 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.173e-05/0.4372, allocations: 8.891 kB / 403.5 MB, free: 6.082 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000398/0.4376, allocations: 195.8 kB / 403.7 MB, free: 5.855 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.0001373/0.4378, allocations: 46.23 kB / 403.7 MB, free: 5.805 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.943e-05/0.4378, allocations: 4.375 kB / 403.7 MB, free: 5.801 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004901/0.4383, allocations: 165 kB / 403.9 MB, free: 5.621 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.4383, allocations: 3.938 kB / 403.9 MB, free: 5.617 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.074e-05/0.4383, allocations: 0 / 403.9 MB, free: 5.617 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.4384, allocations: 8 kB / 403.9 MB, free: 5.609 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001581/0.4385, allocations: 35.91 kB / 403.9 MB, free: 5.574 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003095/0.4389, allocations: 182.5 kB / 404.1 MB, free: 5.344 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004042/0.4393, allocations: 166.4 kB / 404.3 MB, free: 5.145 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/0.4394, allocations: 41.7 kB / 404.3 MB, free: 5.098 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.292e-05/0.4394, allocations: 7.984 kB / 404.3 MB, free: 5.09 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.538e-05/0.4395, allocations: 34.5 kB / 404.3 MB, free: 5.047 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.4395, allocations: 0 / 404.3 MB, free: 5.047 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004369/0.4399, allocations: 117.5 kB / 404.5 MB, free: 4.926 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.082e-05/0.44, allocations: 89.23 kB / 404.6 MB, free: 4.82 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.4402, allocations: 117.8 kB / 404.7 MB, free: 4.695 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.847e-05/0.4402, allocations: 25.7 kB / 404.7 MB, free: 4.664 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.877e-05/0.4403, allocations: 96.06 kB / 404.8 MB, free: 4.566 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.31e-05/0.4403, allocations: 7.953 kB / 404.8 MB, free: 4.559 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.806e-05/0.4404, allocations: 21.72 kB / 404.8 MB, free: 4.531 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.4406, allocations: 318.8 kB / 405.1 MB, free: 4.211 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.623e-05/0.4406, allocations: 23.92 kB / 405.1 MB, free: 4.188 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.296e-05/0.4407, allocations: 61.98 kB / 405.2 MB, free: 4.105 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001629/0.4409, allocations: 73.94 kB / 405.3 MB, free: 4.012 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.4409, allocations: 7.938 kB / 405.3 MB, free: 4.004 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002248/0.4411, allocations: 105.6 kB / 405.4 MB, free: 3.895 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/0.4412, allocations: 4 kB / 405.4 MB, free: 3.891 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.4412, allocations: 0 / 405.4 MB, free: 3.891 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.976e-05/0.4412, allocations: 4 kB / 405.4 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001037/0.4413, allocations: 16.23 kB / 405.4 MB, free: 3.871 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.504e-05/0.4414, allocations: 7.938 kB / 405.4 MB, free: 3.863 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.449e-05/0.4414, allocations: 7.938 kB / 405.4 MB, free: 3.855 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.888e-05/0.4415, allocations: 11.98 kB / 405.4 MB, free: 3.844 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 0.0001479/0.4416, allocations: 121.8 kB / 405.6 MB, free: 3.715 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001405/0.4418, allocations: 77.64 kB / 405.6 MB, free: 3.633 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.412e-05/0.4418, allocations: 8.375 kB / 405.6 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.125e-06/0.4418, allocations: 7.984 kB / 405.7 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.4419, allocations: 0 / 405.7 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.4419, allocations: 0 / 405.7 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001757/0.442, allocations: 173.6 kB / 405.8 MB, free: 3.398 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.4421, allocations: 3.938 kB / 405.8 MB, free: 3.395 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.129e-05/0.4421, allocations: 19.92 kB / 405.8 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.4422, allocations: 0 / 405.8 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.91e-05/0.4422, allocations: 4 kB / 405.8 MB, free: 3.371 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.4422, allocations: 4 kB / 405.9 MB, free: 3.367 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.853e-06/0.4422, allocations: 4 kB / 405.9 MB, free: 3.363 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002656/0.4425, allocations: 114 kB / 406 MB, free: 3.23 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.073e-05/0.4426, allocations: 101 kB / 406.1 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.766e-05/0.4426, allocations: 0 / 406.1 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.611e-05/0.4427, allocations: 4.188 kB / 406.1 MB, free: 3.109 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.258e-05/0.4428, allocations: 11.94 kB / 406.1 MB, free: 3.098 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.139e-05/0.4428, allocations: 11.92 kB / 406.1 MB, free: 3.086 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.954e-05/0.4429, allocations: 95.27 kB / 406.2 MB, free: 2.992 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4429, allocations: 0 / 406.2 MB, free: 2.992 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002474/0.4431, allocations: 12 kB / 406.2 MB, free: 2.98 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.0001779/0.4433, allocations: 99.98 kB / 406.3 MB, free: 2.875 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002623/0.4436, allocations: 64.28 kB / 406.4 MB, free: 2.812 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.4436, allocations: 0 / 406.4 MB, free: 2.812 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.16e-05/0.4437, allocations: 4 kB / 406.4 MB, free: 2.809 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000855/0.4445, allocations: 0.7219 MB / 407.1 MB, free: 2.062 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000424/0.445, allocations: 179.8 kB / 407.3 MB, free: 1.859 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002579/0.4452, allocations: 0.7 MB / 408 MB, free: 1.133 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.756e-05/0.4453, allocations: 4 kB / 408 MB, free: 1.129 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.256e-05/0.4453, allocations: 7.438 kB / 408 MB, free: 1.121 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4453, allocations: 0 / 408 MB, free: 1.121 MB / 318.1 MB Notification: Performance of Templates: time 0.00333/0.4486, allocations: 0.7589 MB / 408.7 MB, free: 372 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