Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001925/0.001925, allocations: 106.5 kB / 21.22 MB, free: 0.6797 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.002264/0.002264, allocations: 209.9 kB / 24.54 MB, free: 4.055 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.672/1.672, allocations: 230.6 MB / 258.2 MB, free: 8.035 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") [Timeout 660]
"Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Notification: Performance of FrontEnd - loaded program: time 0.002062/0.002062, allocations: 60.78 kB / 379 MB, free: 2.629 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3749/0.3769, allocations: 53.36 MB / 432.4 MB, free: 6.965 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003127/0.38, allocations: 1.625 MB / 434 MB, free: 5.336 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0009859/0.381, allocations: 0.522 MB / 434.6 MB, free: 4.809 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 8.026e-05/0.3811, allocations: 0 / 434.6 MB, free: 4.809 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 3.638e-05/0.3811, allocations: 7.875 kB / 434.6 MB, free: 4.801 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001745/0.3813, allocations: 15.81 kB / 434.6 MB, free: 4.785 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0002556/0.3816, allocations: 51.88 kB / 434.6 MB, free: 4.734 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0001345/0.3817, allocations: 71.77 kB / 434.7 MB, free: 4.664 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001009/0.3818, allocations: 11.98 kB / 434.7 MB, free: 4.652 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001591/0.382, allocations: 35.86 kB / 434.7 MB, free: 4.617 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 8.051e-05/0.382, allocations: 35.83 kB / 434.8 MB, free: 4.582 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 1.833e-05/0.3821, allocations: 12 kB / 434.8 MB, free: 4.57 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 4.07e-05/0.3821, allocations: 4 kB / 434.8 MB, free: 4.566 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 2.55e-05/0.3821, allocations: 19.92 kB / 434.8 MB, free: 4.547 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 4.669e-05/0.3822, allocations: 27.86 kB / 434.8 MB, free: 4.52 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.000152/0.3823, allocations: 71.31 kB / 434.9 MB, free: 4.453 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3823, allocations: 0 / 434.9 MB, free: 4.453 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.333e-06/0.3823, allocations: 0 / 434.9 MB, free: 4.453 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 9.187e-06/0.3823, allocations: 3.984 kB / 434.9 MB, free: 4.449 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.0005689/0.3829, allocations: 300 kB / 435.2 MB, free: 4.129 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.383, allocations: 16.03 kB / 435.2 MB, free: 4.113 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002253/0.3832, allocations: 20.88 kB / 435.2 MB, free: 4.094 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002294/0.3834, allocations: 133.2 kB / 435.4 MB, free: 3.941 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.0001092/0.3835, allocations: 38.25 kB / 435.4 MB, free: 3.898 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.814e-05/0.3835, allocations: 4.375 kB / 435.4 MB, free: 3.895 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.000388/0.3839, allocations: 173 kB / 435.6 MB, free: 3.707 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.3839, allocations: 4 kB / 435.6 MB, free: 3.703 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/0.384, allocations: 4 kB / 435.6 MB, free: 3.699 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.384, allocations: 0 / 435.6 MB, free: 3.699 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001203/0.3841, allocations: 35.97 kB / 435.6 MB, free: 3.664 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001823/0.3843, allocations: 149.6 kB / 435.8 MB, free: 3.473 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002607/0.3845, allocations: 93.25 kB / 435.9 MB, free: 3.363 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 9.007e-05/0.3846, allocations: 37.69 kB / 435.9 MB, free: 3.32 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.634e-05/0.3846, allocations: 4 kB / 435.9 MB, free: 3.316 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.115e-05/0.3847, allocations: 46.44 kB / 436 MB, free: 3.262 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=7): time 1.273e-06/0.3847, allocations: 0 / 436 MB, free: 3.262 MB / 334.1 MB
Notification: Performance of matching and sorting (n=7): time 0.0003346/0.385, allocations: 117.5 kB / 436.1 MB, free: 3.141 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 7.928e-05/0.3851, allocations: 89.05 kB / 436.2 MB, free: 3.035 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001097/0.3852, allocations: 121.8 kB / 436.3 MB, free: 2.906 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.986e-05/0.3852, allocations: 29.7 kB / 436.3 MB, free: 2.871 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 4.474e-05/0.3853, allocations: 88.14 kB / 436.4 MB, free: 2.781 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.685e-05/0.3853, allocations: 20.05 kB / 436.4 MB, free: 2.762 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.687e-05/0.3853, allocations: 21.72 kB / 436.4 MB, free: 2.734 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001373/0.3855, allocations: 318.8 kB / 436.7 MB, free: 2.414 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 4.766e-05/0.3855, allocations: 12 kB / 436.8 MB, free: 2.402 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 7.358e-05/0.3856, allocations: 61.98 kB / 436.8 MB, free: 2.32 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0001237/0.3857, allocations: 77.88 kB / 436.9 MB, free: 2.223 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3857, allocations: 4 kB / 436.9 MB, free: 2.219 MB / 334.1 MB
Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001681/0.3859, allocations: 101.4 kB / 437 MB, free: 2.113 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.3859, allocations: 8 kB / 437 MB, free: 2.105 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.92e-06/0.3859, allocations: 0 / 437 MB, free: 2.105 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.638e-05/0.3859, allocations: 4 kB / 437 MB, free: 2.102 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.887e-05/0.386, allocations: 23.92 kB / 437 MB, free: 2.078 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.386, allocations: 4.219 kB / 437 MB, free: 2.074 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.91e-05/0.386, allocations: 4 kB / 437 MB, free: 2.07 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.095e-06/0.386, allocations: 4 kB / 437 MB, free: 2.066 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.0001011/0.3861, allocations: 117.8 kB / 437.2 MB, free: 1.941 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000131/0.3863, allocations: 81.5 kB / 437.2 MB, free: 1.855 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.852e-05/0.3863, allocations: 12.38 kB / 437.2 MB, free: 1.84 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.3863, allocations: 0 / 437.2 MB, free: 1.84 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.3863, allocations: 4 kB / 437.2 MB, free: 1.836 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.3863, allocations: 0 / 437.2 MB, free: 1.836 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001269/0.3865, allocations: 152.7 kB / 437.4 MB, free: 1.645 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.3865, allocations: 0 / 437.4 MB, free: 1.645 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.029e-05/0.3865, allocations: 11.94 kB / 437.4 MB, free: 1.633 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.3865, allocations: 4 kB / 437.4 MB, free: 1.629 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.935e-05/0.3866, allocations: 3.984 kB / 437.4 MB, free: 1.625 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.3866, allocations: 320 / 437.4 MB, free: 1.625 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3866, allocations: 4.125 kB / 437.4 MB, free: 1.621 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00022/0.3868, allocations: 125.9 kB / 437.5 MB, free: 1.477 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 3.602e-05/0.3868, allocations: 27.81 kB / 437.6 MB, free: 1.449 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.339e-05/0.3868, allocations: 4 kB / 437.6 MB, free: 1.445 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.649e-05/0.3869, allocations: 7.984 kB / 437.6 MB, free: 1.438 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 2.946e-05/0.3869, allocations: 0 / 437.6 MB, free: 1.438 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.648e-06/0.3869, allocations: 4 kB / 437.6 MB, free: 1.434 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 6.387e-05/0.387, allocations: 101.5 kB / 437.7 MB, free: 1.336 MB / 334.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.387, allocations: 0 / 437.7 MB, free: 1.336 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0001952/0.3872, allocations: 8 kB / 437.7 MB, free: 1.328 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.0001092/0.3873, allocations: 107.2 kB / 437.8 MB, free: 1.215 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.0001924/0.3875, allocations: 55.84 kB / 437.9 MB, free: 1.16 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3875, allocations: 0 / 437.9 MB, free: 1.16 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 3.489e-05/0.3875, allocations: 8 kB / 437.9 MB, free: 1.152 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006749/0.3882, allocations: 0.7224 MB / 438.6 MB, free: 416 kB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003876/0.3886, allocations: 187.6 kB / 438.8 MB, free: 200 kB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003167/0.3889, allocations: 0.6885 MB / 439.5 MB, free: 15.48 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 3.53e-05/0.389, allocations: 8.031 kB / 439.5 MB, free: 15.47 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.131e-05/0.389, allocations: 11.44 kB / 439.5 MB, free: 15.46 MB / 350.1 MB
Notification: Performance of SimCode: time 2.6e-07/0.389, allocations: 0 / 439.5 MB, free: 15.46 MB / 350.1 MB
Notification: Performance of Templates: time 0.003587/0.3926, allocations: 0.8092 MB / 440.3 MB, free: 14.66 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile [Timeout 660]
(rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_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.010203694924712]