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.001426/0.001426, allocations: 113 kB / 19.04 MB, free: 3.254 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.001778/0.001778, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 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.623/1.623, allocations: 225.6 MB / 250.8 MB, free: 13.33 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.001512/0.001512, allocations: 47.92 kB / 368.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3237/0.3252, allocations: 52.13 MB / 420.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003209/0.3284, allocations: 1.625 MB / 422.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008557/0.3292, allocations: 450.9 kB / 422.9 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.016e-05/0.3293, allocations: 0 / 422.9 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.456e-05/0.3293, allocations: 7.875 kB / 422.9 MB, free: 13 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001489/0.3295, allocations: 19.86 kB / 423 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002056/0.3297, allocations: 35.95 kB / 423 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001296/0.3298, allocations: 67.77 kB / 423.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.936e-05/0.3299, allocations: 8 kB / 423.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001114/0.33, allocations: 35.84 kB / 423.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.347e-05/0.3301, allocations: 39.84 kB / 423.1 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.888e-05/0.3301, allocations: 4 kB / 423.1 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.948e-05/0.3301, allocations: 4 kB / 423.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.734e-05/0.3302, allocations: 19.91 kB / 423.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.562e-05/0.3302, allocations: 27.8 kB / 423.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001316/0.3303, allocations: 64.98 kB / 423.3 MB, free: 12.69 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3303, allocations: 0 / 423.3 MB, free: 12.69 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3303, allocations: 0 / 423.3 MB, free: 12.69 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.3304, allocations: 0 / 423.3 MB, free: 12.69 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.0006204/0.331, allocations: 379.2 kB / 423.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.331, allocations: 8.031 kB / 423.6 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.588e-05/0.3311, allocations: 8.891 kB / 423.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003049/0.3314, allocations: 200.2 kB / 423.8 MB, free: 12.02 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.0001047/0.3315, allocations: 38.23 kB / 423.9 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.933e-05/0.3315, allocations: 8.375 kB / 423.9 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003964/0.3319, allocations: 165 kB / 424 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.3319, allocations: 0 / 424 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.3319, allocations: 0 / 424 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.087e-06/0.3319, allocations: 7.875 kB / 424.1 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001308/0.332, allocations: 35.97 kB / 424.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002248/0.3323, allocations: 186.5 kB / 424.3 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003304/0.3326, allocations: 166.4 kB / 424.4 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.522e-05/0.3327, allocations: 29.7 kB / 424.5 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.392e-05/0.3327, allocations: 8 kB / 424.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.138e-05/0.3327, allocations: 38.5 kB / 424.5 MB, free: 11.22 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.3327, allocations: 0 / 424.5 MB, free: 11.22 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003529/0.3331, allocations: 113.5 kB / 424.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.29e-05/0.3332, allocations: 85.11 kB / 424.7 MB, free: 11 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001177/0.3333, allocations: 124.6 kB / 424.8 MB, free: 10.88 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.896e-05/0.3333, allocations: 25.7 kB / 424.8 MB, free: 10.84 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.153e-05/0.3334, allocations: 88.27 kB / 424.9 MB, free: 10.75 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.009e-05/0.3334, allocations: 19.92 kB / 425 MB, free: 10.73 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.666e-05/0.3334, allocations: 29.66 kB / 425 MB, free: 10.7 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.3336, allocations: 318.8 kB / 425.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.277e-05/0.3337, allocations: 15.98 kB / 425.3 MB, free: 10.36 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.515e-05/0.3338, allocations: 54 kB / 425.4 MB, free: 10.29 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001393/0.3339, allocations: 89.88 kB / 425.4 MB, free: 10.18 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3339, allocations: 0 / 425.4 MB, free: 10.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001824/0.3341, allocations: 101.4 kB / 425.5 MB, free: 10.07 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.3341, allocations: 4 kB / 425.6 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.3341, allocations: 4 kB / 425.6 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.3341, allocations: 0 / 425.6 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.905e-05/0.3342, allocations: 15.98 kB / 425.6 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.679e-06/0.3342, allocations: 12.16 kB / 425.6 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.218e-05/0.3343, allocations: 7.938 kB / 425.6 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.548e-06/0.3343, allocations: 4.25 kB / 425.6 MB, free: 10.03 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.0001188/0.3344, allocations: 125.8 kB / 425.7 MB, free: 9.895 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001351/0.3345, allocations: 77.58 kB / 425.8 MB, free: 9.812 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.221e-05/0.3346, allocations: 12.38 kB / 425.8 MB, free: 9.801 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.3346, allocations: 0 / 425.8 MB, free: 9.801 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.3346, allocations: 8.062 kB / 425.8 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.3346, allocations: 3.984 kB / 425.8 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001823/0.3348, allocations: 185.5 kB / 426 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3348, allocations: 0 / 426 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.665e-05/0.3349, allocations: 11.94 kB / 426 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.87e-06/0.3349, allocations: 3.984 kB / 426 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.077e-05/0.3349, allocations: 0 / 426 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.097e-06/0.3349, allocations: 4 kB / 426 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.3349, allocations: 0 / 426 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002488/0.3351, allocations: 122 kB / 426.1 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.495e-05/0.3352, allocations: 92.98 kB / 426.2 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.685e-05/0.3352, allocations: 7.984 kB / 426.2 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.529e-05/0.3353, allocations: 7.938 kB / 426.2 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.652e-05/0.3353, allocations: 0 / 426.2 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-05/0.3354, allocations: 4 kB / 426.2 MB, free: 9.27 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.726e-05/0.3354, allocations: 99.27 kB / 426.3 MB, free: 9.172 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3354, allocations: 0 / 426.3 MB, free: 9.172 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002079/0.3356, allocations: 11.98 kB / 426.4 MB, free: 9.16 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.000134/0.3358, allocations: 104 kB / 426.5 MB, free: 9.051 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002155/0.336, allocations: 51.91 kB / 426.5 MB, free: 9 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.336, allocations: 4 kB / 426.5 MB, free: 8.996 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.982e-05/0.336, allocations: 8 kB / 426.5 MB, free: 8.988 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007466/0.3368, allocations: 0.7223 MB / 427.2 MB, free: 8.242 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004618/0.3372, allocations: 183.4 kB / 427.4 MB, free: 8.035 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004448/0.3377, allocations: 0.6922 MB / 428.1 MB, free: 7.316 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.933e-05/0.3377, allocations: 8.031 kB / 428.1 MB, free: 7.309 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.029e-05/0.3378, allocations: 11.44 kB / 428.1 MB, free: 7.297 MB / 334.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3378, allocations: 0 / 428.1 MB, free: 7.297 MB / 334.1 MB Notification: Performance of Templates: time 0.003759/0.3415, allocations: 0.7953 MB / 428.9 MB, free: 6.508 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.93773256149143]