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: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001549/0.001549, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001877/0.001877, allocations: 208.8 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.912/1.912, allocations: 227.4 MB / 247.6 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 67.89 kB / 359.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4523/0.4536, allocations: 50.53 MB / 409.9 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.004703/0.4584, allocations: 1.597 MB / 411.5 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001414/0.4598, allocations: 0.4948 MB / 412 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001215/0.46, allocations: 7.938 kB / 412 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.161e-05/0.4601, allocations: 11.88 kB / 412 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002349/0.4603, allocations: 15.84 kB / 412.1 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003782/0.4607, allocations: 51.88 kB / 412.1 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001998/0.4609, allocations: 63.84 kB / 412.2 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001302/0.4611, allocations: 8 kB / 412.2 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002354/0.4613, allocations: 39.83 kB / 412.2 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.811e-05/0.4614, allocations: 35.84 kB / 412.3 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.561e-05/0.4614, allocations: 8 kB / 412.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.516e-05/0.4615, allocations: 8 kB / 412.3 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.781e-05/0.4616, allocations: 23.86 kB / 412.3 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.552e-05/0.4616, allocations: 23.86 kB / 412.3 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000205/0.4619, allocations: 67.72 kB / 412.4 MB, free: 15.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.758e-05/0.4619, allocations: 4 kB / 412.4 MB, free: 15.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.4619, allocations: 0 / 412.4 MB, free: 15.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.4619, allocations: 0 / 412.4 MB, free: 15.09 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.0007662/0.4627, allocations: 376.3 kB / 412.8 MB, free: 14.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/0.4627, allocations: 12.03 kB / 412.8 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003203/0.4631, allocations: 20.83 kB / 412.8 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003704/0.4635, allocations: 196.2 kB / 413 MB, free: 14.41 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.0001478/0.4636, allocations: 38.23 kB / 413 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.809e-05/0.4637, allocations: 8.375 kB / 413 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000564/0.4642, allocations: 180.9 kB / 413.2 MB, free: 14.17 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.4643, allocations: 0 / 413.2 MB, free: 14.17 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.587e-05/0.4643, allocations: 0 / 413.2 MB, free: 14.17 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.241e-06/0.4643, allocations: 0 / 413.2 MB, free: 14.17 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001972/0.4645, allocations: 35.97 kB / 413.2 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002806/0.4648, allocations: 182.5 kB / 413.4 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004202/0.4652, allocations: 170.4 kB / 413.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001473/0.4654, allocations: 37.7 kB / 413.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.861e-05/0.4654, allocations: 3.938 kB / 413.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.241e-05/0.4655, allocations: 46.5 kB / 413.7 MB, free: 13.6 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.823e-06/0.4655, allocations: 0 / 413.7 MB, free: 13.6 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004762/0.466, allocations: 113.5 kB / 413.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/0.4661, allocations: 85.09 kB / 413.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001363/0.4662, allocations: 125.8 kB / 414 MB, free: 13.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.262e-05/0.4663, allocations: 29.64 kB / 414 MB, free: 13.21 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.263e-05/0.4664, allocations: 92.12 kB / 414.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.159e-05/0.4664, allocations: 12.03 kB / 414.1 MB, free: 13.11 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.6e-05/0.4665, allocations: 17.72 kB / 414.1 MB, free: 13.08 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.4666, allocations: 326.8 kB / 414.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.808e-05/0.4667, allocations: 15.98 kB / 414.5 MB, free: 12.74 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001053/0.4668, allocations: 57.94 kB / 414.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001787/0.467, allocations: 81.94 kB / 414.6 MB, free: 12.56 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.467, allocations: 4 kB / 414.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000261/0.4673, allocations: 101.4 kB / 414.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.4673, allocations: 4 kB / 414.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.4674, allocations: 7.938 kB / 414.7 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.4674, allocations: 3.984 kB / 414.7 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001081/0.4675, allocations: 12 kB / 414.7 MB, free: 12.42 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.4675, allocations: 4.219 kB / 414.7 MB, free: 12.42 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.081e-05/0.4676, allocations: 19.83 kB / 414.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.174e-05/0.4676, allocations: 4.188 kB / 414.8 MB, free: 12.39 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.0001462/0.4678, allocations: 129.7 kB / 414.9 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001857/0.468, allocations: 69.62 kB / 415 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.554e-05/0.4681, allocations: 16.36 kB / 415 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.075e-06/0.4681, allocations: 0 / 415 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.4681, allocations: 0 / 415 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.698e-06/0.4681, allocations: 0 / 415 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002073/0.4683, allocations: 177.5 kB / 415.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.4683, allocations: 4 kB / 415.1 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001127/0.4685, allocations: 15.92 kB / 415.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.4685, allocations: 0 / 415.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.583e-05/0.4685, allocations: 0 / 415.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/0.4685, allocations: 4 kB / 415.2 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.4685, allocations: 320 / 415.2 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003612/0.4689, allocations: 129.9 kB / 415.3 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.452e-05/0.469, allocations: 96.97 kB / 415.4 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.389e-05/0.469, allocations: 4 kB / 415.4 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.936e-05/0.4691, allocations: 4 kB / 415.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.92e-05/0.4692, allocations: 7.969 kB / 415.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.406e-05/0.4692, allocations: 4 kB / 415.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.325e-05/0.4693, allocations: 102.2 kB / 415.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.4693, allocations: 0 / 415.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003535/0.4697, allocations: 8 kB / 415.5 MB, free: 11.54 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.000155/0.4699, allocations: 110.8 kB / 415.6 MB, free: 11.42 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002643/0.4701, allocations: 59.84 kB / 415.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.4702, allocations: 0 / 415.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.583e-05/0.4702, allocations: 7.984 kB / 415.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009555/0.4712, allocations: 0.7284 MB / 416.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005149/0.4717, allocations: 205.2 kB / 416.6 MB, free: 10.37 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003752/0.4721, allocations: 0.6962 MB / 417.3 MB, free: 9.645 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.751e-05/0.4722, allocations: 15.42 kB / 417.3 MB, free: 9.629 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.4722, allocations: 0 / 417.3 MB, free: 9.629 MB / 334.1 MB Notification: Performance of Templates: time 0.003402/0.4756, allocations: 0.9842 MB / 418.3 MB, free: 8.645 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile (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 & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/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) Reference file matches