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) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001428/0.001428, allocations: 105.1 kB / 21.22 MB, free: 0.5117 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001631/0.001631, allocations: 210.7 kB / 24.54 MB, free: 3.879 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.655/1.655, allocations: 230.3 MB / 258 MB, free: 8.219 MB / 206.1 MB
"
[Timeout remaining time 178]
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=5011,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=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.0021/0.0021, allocations: 71.88 kB / 378.8 MB, free: 2.793 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3755/0.3776, allocations: 53.35 MB / 432.1 MB, free: 7.113 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003243/0.3808, allocations: 1.617 MB / 433.7 MB, free: 5.492 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.000998/0.3818, allocations: 0.5181 MB / 434.3 MB, free: 4.969 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 7.165e-05/0.3819, allocations: 3.938 kB / 434.3 MB, free: 4.965 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 2.932e-05/0.3819, allocations: 7.922 kB / 434.3 MB, free: 4.957 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001475/0.382, allocations: 19.86 kB / 434.3 MB, free: 4.938 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.000233/0.3823, allocations: 55.5 kB / 434.3 MB, free: 4.887 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0001321/0.3824, allocations: 59.84 kB / 434.4 MB, free: 4.828 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 9.251e-05/0.3825, allocations: 12 kB / 434.4 MB, free: 4.816 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001698/0.3827, allocations: 47.77 kB / 434.5 MB, free: 4.77 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 7.818e-05/0.3827, allocations: 31.84 kB / 434.5 MB, free: 4.738 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 1.799e-05/0.3828, allocations: 8 kB / 434.5 MB, free: 4.73 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 4.286e-05/0.3828, allocations: 8 kB / 434.5 MB, free: 4.723 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 2.753e-05/0.3828, allocations: 15.92 kB / 434.5 MB, free: 4.707 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 5.158e-05/0.3829, allocations: 27.86 kB / 434.6 MB, free: 4.68 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0001631/0.3831, allocations: 69.34 kB / 434.6 MB, free: 4.617 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.3831, allocations: 0 / 434.6 MB, free: 4.617 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.843e-06/0.3831, allocations: 0 / 434.6 MB, free: 4.617 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 6.372e-06/0.3831, allocations: 4 kB / 434.6 MB, free: 4.613 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.0006195/0.3837, allocations: 302 kB / 434.9 MB, free: 4.289 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.3837, allocations: 19.91 kB / 434.9 MB, free: 4.27 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002472/0.384, allocations: 20.88 kB / 435 MB, free: 4.25 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002481/0.3842, allocations: 134.4 kB / 435.1 MB, free: 4.094 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.0001259/0.3844, allocations: 42.25 kB / 435.1 MB, free: 4.047 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.548e-05/0.3844, allocations: 4.375 kB / 435.1 MB, free: 4.043 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004293/0.3848, allocations: 173 kB / 435.3 MB, free: 3.855 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.3848, allocations: 0 / 435.3 MB, free: 3.855 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/0.3848, allocations: 3.984 kB / 435.3 MB, free: 3.852 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.3848, allocations: 0 / 435.3 MB, free: 3.852 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001221/0.385, allocations: 35.98 kB / 435.3 MB, free: 3.816 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001966/0.3852, allocations: 149.6 kB / 435.5 MB, free: 3.625 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002695/0.3854, allocations: 89.25 kB / 435.6 MB, free: 3.52 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001059/0.3855, allocations: 37.7 kB / 435.6 MB, free: 3.477 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.875e-05/0.3855, allocations: 4 kB / 435.6 MB, free: 3.473 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.055e-05/0.3856, allocations: 38.48 kB / 435.7 MB, free: 3.426 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.3856, allocations: 0 / 435.7 MB, free: 3.426 MB / 334.1 MB
Notification: Performance of matching and sorting (n=7): time 0.0003405/0.3859, allocations: 121.5 kB / 435.8 MB, free: 3.301 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 7.452e-05/0.386, allocations: 85.05 kB / 435.9 MB, free: 3.199 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001082/0.3861, allocations: 132.6 kB / 436 MB, free: 3.062 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.127e-05/0.3861, allocations: 29.7 kB / 436 MB, free: 3.027 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 4.498e-05/0.3862, allocations: 84.14 kB / 436.1 MB, free: 2.941 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.3e-05/0.3862, allocations: 11.95 kB / 436.1 MB, free: 2.93 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.916e-05/0.3862, allocations: 21.7 kB / 436.1 MB, free: 2.902 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001403/0.3864, allocations: 318.8 kB / 436.4 MB, free: 2.582 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 5.283e-05/0.3864, allocations: 16.23 kB / 436.5 MB, free: 2.566 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 7.713e-05/0.3865, allocations: 58 kB / 436.5 MB, free: 2.488 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0001351/0.3866, allocations: 82.06 kB / 436.6 MB, free: 2.387 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.3866, allocations: 0 / 436.6 MB, free: 2.387 MB / 334.1 MB
Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001862/0.3868, allocations: 113.4 kB / 436.7 MB, free: 2.27 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.3868, allocations: 8 kB / 436.7 MB, free: 2.262 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.3868, allocations: 4.219 kB / 436.7 MB, free: 2.258 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.3869, allocations: 4 kB / 436.7 MB, free: 2.254 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.221e-05/0.3869, allocations: 19.92 kB / 436.7 MB, free: 2.234 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.74e-06/0.3869, allocations: 0 / 436.7 MB, free: 2.234 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.924e-05/0.387, allocations: 4 kB / 436.7 MB, free: 2.23 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.017e-05/0.387, allocations: 4 kB / 436.7 MB, free: 2.227 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.0001031/0.3871, allocations: 117.8 kB / 436.9 MB, free: 2.102 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001401/0.3872, allocations: 89.5 kB / 436.9 MB, free: 2.008 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.274e-05/0.3873, allocations: 4.375 kB / 437 MB, free: 2 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.3873, allocations: 4 kB / 437 MB, free: 1.996 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.3873, allocations: 4 kB / 437 MB, free: 1.992 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.726e-06/0.3873, allocations: 0 / 437 MB, free: 1.992 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001376/0.3874, allocations: 144.7 kB / 437.1 MB, free: 1.809 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.3874, allocations: 0 / 437.1 MB, free: 1.809 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.957e-05/0.3875, allocations: 19.92 kB / 437.1 MB, free: 1.789 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.3875, allocations: 0 / 437.1 MB, free: 1.789 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.3875, allocations: 3.938 kB / 437.1 MB, free: 1.785 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.3875, allocations: 3.984 kB / 437.1 MB, free: 1.781 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.3875, allocations: 4 kB / 437.1 MB, free: 1.777 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002417/0.3878, allocations: 133.8 kB / 437.3 MB, free: 1.625 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 3.492e-05/0.3878, allocations: 15.88 kB / 437.3 MB, free: 1.609 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.324e-05/0.3878, allocations: 4 kB / 437.3 MB, free: 1.605 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.908e-05/0.3879, allocations: 7.984 kB / 437.3 MB, free: 1.598 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 2.814e-05/0.3879, allocations: 0 / 437.3 MB, free: 1.598 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.919e-06/0.3879, allocations: 4.125 kB / 437.3 MB, free: 1.594 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 6.255e-05/0.388, allocations: 103.3 kB / 437.4 MB, free: 1.492 MB / 334.1 MB
Notification: Performance of sort global known variables: time 7.1e-08/0.388, allocations: 0 / 437.4 MB, free: 1.492 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0001997/0.3882, allocations: 8 kB / 437.4 MB, free: 1.484 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.0001291/0.3883, allocations: 103.2 kB / 437.5 MB, free: 1.375 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.0002085/0.3885, allocations: 55.91 kB / 437.6 MB, free: 1.32 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3885, allocations: 448 / 437.6 MB, free: 1.32 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 4.215e-05/0.3886, allocations: 15.92 kB / 437.6 MB, free: 1.305 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007173/0.3893, allocations: 0.7207 MB / 438.3 MB, free: 0.5625 MB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004239/0.3897, allocations: 183.6 kB / 438.5 MB, free: 364 kB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003603/0.3901, allocations: 0.7002 MB / 439.2 MB, free: 15.63 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 3.043e-05/0.3901, allocations: 4 kB / 439.2 MB, free: 15.62 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.275e-05/0.3901, allocations: 11.44 kB / 439.2 MB, free: 15.61 MB / 350.1 MB
Notification: Performance of SimCode: time 2.8e-07/0.3901, allocations: 0 / 439.2 MB, free: 15.61 MB / 350.1 MB
Notification: Performance of Templates: time 0.003538/0.3937, allocations: 0.8112 MB / 440 MB, free: 14.81 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile [Timeout 660]
(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) [Timeout 480]
diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 5.167556684464216]