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) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001923/0.001923, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002165/0.002165, allocations: 181.5 kB / 23.71 MB, free: 4.695 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.552/1.552, allocations: 225.6 MB / 252.5 MB, free: 12.99 MB / 206.1 MB
"
[Timeout remaining time 178]
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=5011,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=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 47.92 kB / 371 MB, free: 9.312 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3047/0.3066, allocations: 52.18 MB / 423.1 MB, free: 14.65 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003129/0.3097, allocations: 1.608 MB / 424.7 MB, free: 13.04 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0008058/0.3106, allocations: 458.9 kB / 425.2 MB, free: 12.58 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 7.12e-05/0.3106, allocations: 0 / 425.2 MB, free: 12.58 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 3.133e-05/0.3107, allocations: 7.875 kB / 425.2 MB, free: 12.57 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.000156/0.3108, allocations: 15.86 kB / 425.2 MB, free: 12.56 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0002073/0.311, allocations: 47.92 kB / 425.3 MB, free: 12.51 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0001264/0.3111, allocations: 59.78 kB / 425.3 MB, free: 12.45 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 9.381e-05/0.3112, allocations: 12 kB / 425.3 MB, free: 12.44 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001163/0.3114, allocations: 35.84 kB / 425.4 MB, free: 12.41 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 6.516e-05/0.3114, allocations: 31.84 kB / 425.4 MB, free: 12.38 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 2.238e-05/0.3114, allocations: 8 kB / 425.4 MB, free: 12.37 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 1.399e-05/0.3115, allocations: 8 kB / 425.4 MB, free: 12.36 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 2.938e-05/0.3115, allocations: 11.92 kB / 425.4 MB, free: 12.35 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 5.541e-05/0.3115, allocations: 35.78 kB / 425.5 MB, free: 12.31 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0001314/0.3117, allocations: 63.44 kB / 425.5 MB, free: 12.25 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3117, allocations: 4 kB / 425.5 MB, free: 12.25 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.172e-06/0.3117, allocations: 0 / 425.5 MB, free: 12.25 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 4.849e-06/0.3117, allocations: 0 / 425.5 MB, free: 12.25 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.000553/0.3122, allocations: 295.7 kB / 425.8 MB, free: 11.93 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.3123, allocations: 12.03 kB / 425.8 MB, free: 11.92 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 4.405e-05/0.3123, allocations: 8.891 kB / 425.8 MB, free: 11.91 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002406/0.3126, allocations: 138.3 kB / 426 MB, free: 11.75 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 9.781e-05/0.3127, allocations: 42.25 kB / 426 MB, free: 11.71 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.546e-05/0.3127, allocations: 4.375 kB / 426 MB, free: 11.7 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003943/0.3131, allocations: 173 kB / 426.2 MB, free: 11.52 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 7.323e-06/0.3131, allocations: 0 / 426.2 MB, free: 11.52 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.3131, allocations: 0 / 426.2 MB, free: 11.52 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.3131, allocations: 0 / 426.2 MB, free: 11.52 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001512/0.3132, allocations: 35.92 kB / 426.2 MB, free: 11.48 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001779/0.3134, allocations: 149.5 kB / 426.4 MB, free: 11.29 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002794/0.3137, allocations: 97.25 kB / 426.5 MB, free: 11.18 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001034/0.3138, allocations: 37.7 kB / 426.5 MB, free: 11.13 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.303e-05/0.3138, allocations: 3.984 kB / 426.5 MB, free: 11.13 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.728e-05/0.3138, allocations: 34.5 kB / 426.5 MB, free: 11.09 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.3138, allocations: 4 kB / 426.5 MB, free: 11.08 MB / 334.1 MB
Notification: Performance of matching and sorting (n=7): time 0.0003549/0.3142, allocations: 121.5 kB / 426.7 MB, free: 10.96 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 7.886e-05/0.3143, allocations: 81.11 kB / 426.7 MB, free: 10.86 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/0.3144, allocations: 124.6 kB / 426.9 MB, free: 10.73 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.33e-05/0.3144, allocations: 29.7 kB / 426.9 MB, free: 10.7 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 5.585e-05/0.3145, allocations: 88.14 kB / 427 MB, free: 10.61 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.406e-05/0.3145, allocations: 7.953 kB / 427 MB, free: 10.6 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 4.555e-05/0.3145, allocations: 29.83 kB / 427 MB, free: 10.56 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001445/0.3147, allocations: 314.8 kB / 427.3 MB, free: 10.25 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 5.273e-05/0.3147, allocations: 11.98 kB / 427.3 MB, free: 10.23 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 9.069e-05/0.3148, allocations: 65.94 kB / 427.4 MB, free: 10.15 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0001358/0.315, allocations: 73.94 kB / 427.5 MB, free: 10.05 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.315, allocations: 0 / 427.5 MB, free: 10.05 MB / 334.1 MB
Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002021/0.3152, allocations: 113.4 kB / 427.6 MB, free: 9.938 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.3152, allocations: 4 kB / 427.6 MB, free: 9.934 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.3152, allocations: 4 kB / 427.6 MB, free: 9.93 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.3152, allocations: 0 / 427.6 MB, free: 9.93 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.073e-05/0.3153, allocations: 15.98 kB / 427.6 MB, free: 9.914 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.3153, allocations: 4 kB / 427.6 MB, free: 9.91 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.926e-05/0.3154, allocations: 16.16 kB / 427.6 MB, free: 9.895 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.508e-06/0.3154, allocations: 4 kB / 427.6 MB, free: 9.891 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 9.92e-05/0.3155, allocations: 121.9 kB / 427.7 MB, free: 9.762 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001438/0.3156, allocations: 73.58 kB / 427.8 MB, free: 9.684 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.305e-05/0.3157, allocations: 16.36 kB / 427.8 MB, free: 9.664 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.3157, allocations: 0 / 427.8 MB, free: 9.664 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.3157, allocations: 3.938 kB / 427.8 MB, free: 9.66 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.3157, allocations: 0 / 427.8 MB, free: 9.66 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001454/0.3158, allocations: 148.7 kB / 428 MB, free: 9.473 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.3158, allocations: 7.984 kB / 428 MB, free: 9.465 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.493e-05/0.3159, allocations: 23.86 kB / 428 MB, free: 9.441 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.3159, allocations: 0 / 428 MB, free: 9.441 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.3159, allocations: 4 kB / 428 MB, free: 9.438 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.3159, allocations: 3.984 kB / 428 MB, free: 9.434 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3159, allocations: 0 / 428 MB, free: 9.434 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000249/0.3162, allocations: 118.2 kB / 428.1 MB, free: 9.297 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 5.193e-05/0.3162, allocations: 23.88 kB / 428.2 MB, free: 9.273 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.874e-05/0.3162, allocations: 8.062 kB / 428.2 MB, free: 9.266 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.232e-05/0.3163, allocations: 4 kB / 428.2 MB, free: 9.262 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 3.476e-05/0.3164, allocations: 7.984 kB / 428.2 MB, free: 9.254 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.013e-05/0.3164, allocations: 0 / 428.2 MB, free: 9.254 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 6.549e-05/0.3164, allocations: 95.27 kB / 428.3 MB, free: 9.16 MB / 334.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.3164, allocations: 0 / 428.3 MB, free: 9.16 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0002158/0.3166, allocations: 15.94 kB / 428.3 MB, free: 9.145 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.0001406/0.3168, allocations: 103.2 kB / 428.4 MB, free: 9.035 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.0002323/0.317, allocations: 51.91 kB / 428.4 MB, free: 8.984 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.317, allocations: 0 / 428.4 MB, free: 8.984 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 4.458e-05/0.3171, allocations: 11.98 kB / 428.4 MB, free: 8.973 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007647/0.3178, allocations: 0.7224 MB / 429.2 MB, free: 8.227 MB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004407/0.3183, allocations: 183.5 kB / 429.3 MB, free: 8.02 MB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003533/0.3186, allocations: 0.6922 MB / 430 MB, free: 7.301 MB / 334.1 MB
Notification: Performance of simCode: alias equations: time 3.71e-05/0.3187, allocations: 7.984 kB / 430 MB, free: 7.293 MB / 334.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.679e-05/0.3187, allocations: 11.44 kB / 430.1 MB, free: 7.281 MB / 334.1 MB
Notification: Performance of SimCode: time 3.31e-07/0.3187, allocations: 4 kB / 430.1 MB, free: 7.277 MB / 334.1 MB
Notification: Performance of Templates: time 0.003681/0.3224, allocations: 0.7896 MB / 430.8 MB, free: 6.488 MB / 334.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile [Timeout 660]
(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) [Timeout 480]
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) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 4.7137401541695]