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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001626/0.001626, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.331/1.331, allocations: 221.5 MB / 230.3 MB, free: 7.566 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008467/0.0008467, allocations: 90.17 kB / 281.1 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.307e-05/1.31e-05, allocations: 4 kB / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09344/0.09347, allocations: 50.42 MB / 387.5 MB, free: 7.57 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.301/0.3945, allocations: 76.45 MB / 463.9 MB, free: 2.414 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00023/0.3948, allocations: 75.95 kB / 464 MB, free: 2.34 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004422/0.3992, allocations: 1.437 MB / 465.4 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3993, allocations: 0 / 465.4 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.113e-05/0.3993, allocations: 4 kB / 465.4 MB, free: 0.9062 MB / 330.7 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.00043/0.3997, allocations: 351 kB / 465.8 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.3998, allocations: 8.031 kB / 465.8 MB, free: 0.5117 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.561e-05/0.3998, allocations: 11.86 kB / 465.8 MB, free: 0.5 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002614/0.4001, allocations: 187 kB / 466 MB, free: 284 kB / 330.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: sine.startOutput = previous(sine.counter) >= -1 + sine.startTick to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001238/0.4002, allocations: 45.56 kB / 466 MB, free: 232 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.763e-05/0.4003, allocations: 4 kB / 466 MB, free: 228 kB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.946e-05/0.4004, allocations: 27.92 kB / 466.1 MB, free: 200 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002559/0.4006, allocations: 141 kB / 466.2 MB, free: 40 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.397e-06/0.4006, allocations: 0 / 466.2 MB, free: 40 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.519e-05/0.4007, allocations: 8 kB / 466.2 MB, free: 32 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.4007, allocations: 3.953 kB / 466.2 MB, free: 28 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00018/0.4009, allocations: 159 kB / 466.4 MB, free: 15.83 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002087/0.4011, allocations: 154.4 kB / 466.5 MB, free: 15.64 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.851e-05/0.4012, allocations: 33.84 kB / 466.5 MB, free: 15.61 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.428e-05/0.4012, allocations: 4 kB / 466.5 MB, free: 15.6 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.316e-05/0.4012, allocations: 30.56 kB / 466.6 MB, free: 15.56 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 2.826e-06/0.4012, allocations: 3.984 kB / 466.6 MB, free: 15.56 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001867/0.4014, allocations: 73.61 kB / 466.7 MB, free: 15.48 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.985e-05/0.4015, allocations: 85.02 kB / 466.7 MB, free: 15.38 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.245e-05/0.4016, allocations: 109 kB / 466.8 MB, free: 15.27 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.597e-05/0.4016, allocations: 29.73 kB / 466.9 MB, free: 15.23 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.657e-05/0.4016, allocations: 88.14 kB / 467 MB, free: 15.14 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.055e-05/0.4017, allocations: 7.891 kB / 467 MB, free: 15.13 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.897e-06/0.4017, allocations: 0 / 467 MB, free: 15.13 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.4018, allocations: 322.8 kB / 467.3 MB, free: 14.81 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.221e-05/0.4018, allocations: 8 kB / 467.3 MB, free: 14.8 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.294e-05/0.4019, allocations: 57.94 kB / 467.3 MB, free: 14.72 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.551e-05/0.4019, allocations: 16 kB / 467.4 MB, free: 14.71 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.4019, allocations: 0 / 467.4 MB, free: 14.71 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001225/0.4021, allocations: 81.55 kB / 467.4 MB, free: 14.62 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.4021, allocations: 8 kB / 467.4 MB, free: 14.61 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.4021, allocations: 0 / 467.4 MB, free: 14.61 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.4021, allocations: 4.188 kB / 467.5 MB, free: 14.61 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.335e-05/0.4022, allocations: 12 kB / 467.5 MB, free: 14.6 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.302e-05/0.4023, allocations: 15.86 kB / 467.5 MB, free: 14.58 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.305e-05/0.4023, allocations: 7.906 kB / 467.5 MB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.197e-05/0.4023, allocations: 8 kB / 467.5 MB, free: 14.57 MB / 346.7 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 (sine.startOutput,$CLKPRE.sine.startOutput,sine.counter,$CLKPRE.sine.counter) * Number of discrete states: 0 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.834e-05/0.4024, allocations: 113.1 kB / 467.6 MB, free: 14.45 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.872e-05/0.4025, allocations: 61.59 kB / 467.7 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.406e-05/0.4026, allocations: 16.61 kB / 467.7 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.4026, allocations: 0 / 467.7 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.4026, allocations: 4 kB / 467.7 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.4026, allocations: 0 / 467.7 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001172/0.4027, allocations: 154.2 kB / 467.8 MB, free: 14.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.4027, allocations: 4 kB / 467.8 MB, free: 14.17 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.041e-05/0.4028, allocations: 15.92 kB / 467.9 MB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.255e-06/0.4028, allocations: 4 kB / 467.9 MB, free: 14.15 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.264e-05/0.4029, allocations: 8 kB / 467.9 MB, free: 14.14 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.4029, allocations: 0 / 467.9 MB, free: 14.14 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.4029, allocations: 0 / 467.9 MB, free: 14.14 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001501/0.403, allocations: 115.5 kB / 468 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.212e-05/0.4031, allocations: 93 kB / 468.1 MB, free: 13.89 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.172e-05/0.4031, allocations: 4 kB / 468.1 MB, free: 13.89 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.764e-05/0.4032, allocations: 4 kB / 468.1 MB, free: 13.89 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.451e-05/0.4032, allocations: 7.984 kB / 468.1 MB, free: 13.88 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.854e-06/0.4033, allocations: 0 / 468.1 MB, free: 13.88 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.077e-05/0.4033, allocations: 97.03 kB / 468.2 MB, free: 13.79 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4033, allocations: 0 / 468.2 MB, free: 13.79 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002001/0.4035, allocations: 8 kB / 468.2 MB, free: 13.78 MB / 346.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001309/0.4037, allocations: 103.2 kB / 468.3 MB, free: 13.66 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000107/0.4038, allocations: 39.94 kB / 468.3 MB, free: 13.62 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.4038, allocations: 0 / 468.3 MB, free: 13.62 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.593e-05/0.4038, allocations: 8 kB / 468.3 MB, free: 13.62 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006166/0.4044, allocations: 0.7063 MB / 469 MB, free: 12.89 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002829/0.4047, allocations: 109.1 kB / 469.1 MB, free: 12.75 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002825/0.405, allocations: 0.6924 MB / 469.8 MB, free: 12.04 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.291e-05/0.4051, allocations: 4.172 kB / 469.8 MB, free: 12.03 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.814e-05/0.4051, allocations: 11.44 kB / 469.9 MB, free: 12.02 MB / 346.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4051, allocations: 0 / 469.9 MB, free: 12.02 MB / 346.7 MB Notification: Performance of Templates: time 0.002559/0.4077, allocations: 0.6314 MB / 470.5 MB, free: 11.39 MB / 346.7 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","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches