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.001434/0.001434, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001828/0.001828, allocations: 213.6 kB / 23.73 MB, free: 4.16 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.524/1.524, allocations: 230.5 MB / 257.4 MB, free: 7.789 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.002204/0.002204, allocations: 63.89 kB / 378.2 MB, free: 2.309 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.31/0.3122, allocations: 53.41 MB / 431.6 MB, free: 6.512 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.0034/0.3156, allocations: 1.601 MB / 433.2 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001306/0.3169, allocations: 490.7 kB / 433.7 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001024/0.317, allocations: 4 kB / 433.7 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.311e-05/0.3171, allocations: 3.938 kB / 433.7 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001864/0.3173, allocations: 15.86 kB / 433.7 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003033/0.3176, allocations: 59.88 kB / 433.8 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001512/0.3177, allocations: 67.77 kB / 433.9 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001049/0.3178, allocations: 4 kB / 433.9 MB, free: 4.273 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001956/0.318, allocations: 43.84 kB / 433.9 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.368e-05/0.3181, allocations: 31.84 kB / 433.9 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.033e-05/0.3181, allocations: 4 kB / 433.9 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.324e-05/0.3182, allocations: 15.98 kB / 434 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.837e-05/0.3182, allocations: 11.94 kB / 434 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.079e-05/0.3182, allocations: 27.84 kB / 434 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000186/0.3184, allocations: 67.44 kB / 434.1 MB, free: 4.078 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.3184, allocations: 0 / 434.1 MB, free: 4.078 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3184, allocations: 0 / 434.1 MB, free: 4.078 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.3184, allocations: 0 / 434.1 MB, free: 4.078 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.0005983/0.319, allocations: 312.5 kB / 434.4 MB, free: 3.746 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.3191, allocations: 11.98 kB / 434.4 MB, free: 3.734 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002475/0.3193, allocations: 20.88 kB / 434.4 MB, free: 3.715 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003424/0.3197, allocations: 142.3 kB / 434.5 MB, free: 3.551 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.0001041/0.3198, allocations: 40.75 kB / 434.6 MB, free: 3.508 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.648e-05/0.3198, allocations: 4.375 kB / 434.6 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004457/0.3202, allocations: 169 kB / 434.8 MB, free: 3.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.3202, allocations: 0 / 434.8 MB, free: 3.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/0.3203, allocations: 0 / 434.8 MB, free: 3.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.339e-06/0.3203, allocations: 0 / 434.8 MB, free: 3.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001302/0.3204, allocations: 35.97 kB / 434.8 MB, free: 3.285 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001764/0.3206, allocations: 126.1 kB / 434.9 MB, free: 3.129 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002812/0.3208, allocations: 85.27 kB / 435 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001015/0.3209, allocations: 37.7 kB / 435 MB, free: 2.984 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.525e-05/0.321, allocations: 3.984 kB / 435 MB, free: 2.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/0.321, allocations: 34.56 kB / 435.1 MB, free: 2.938 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.322e-06/0.321, allocations: 0 / 435.1 MB, free: 2.938 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003499/0.3214, allocations: 117.5 kB / 435.2 MB, free: 2.816 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.546e-05/0.3214, allocations: 89.05 kB / 435.3 MB, free: 2.711 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001203/0.3216, allocations: 125.8 kB / 435.4 MB, free: 2.578 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.462e-05/0.3216, allocations: 29.7 kB / 435.4 MB, free: 2.543 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.405e-05/0.3216, allocations: 88.14 kB / 435.5 MB, free: 2.453 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.107e-05/0.3217, allocations: 11.92 kB / 435.5 MB, free: 2.441 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.317e-05/0.3217, allocations: 25.84 kB / 435.5 MB, free: 2.41 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002192/0.322, allocations: 322.8 kB / 435.9 MB, free: 2.086 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.107e-05/0.322, allocations: 8 kB / 435.9 MB, free: 2.078 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.58e-05/0.3221, allocations: 62 kB / 435.9 MB, free: 1.996 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001863/0.3223, allocations: 81.86 kB / 436 MB, free: 1.895 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.3223, allocations: 4 kB / 436 MB, free: 1.891 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002009/0.3225, allocations: 101.7 kB / 436.1 MB, free: 1.785 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.3225, allocations: 7.938 kB / 436.1 MB, free: 1.777 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.3225, allocations: 7.875 kB / 436.1 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.941e-05/0.3225, allocations: 4 kB / 436.1 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.685e-05/0.3226, allocations: 20.14 kB / 436.2 MB, free: 1.746 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.607e-06/0.3226, allocations: 8 kB / 436.2 MB, free: 1.738 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.518e-05/0.3227, allocations: 4 kB / 436.2 MB, free: 1.734 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.227e-06/0.3227, allocations: 4 kB / 436.2 MB, free: 1.73 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.0001136/0.3228, allocations: 121.8 kB / 436.3 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001423/0.3229, allocations: 81.75 kB / 436.4 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.722e-05/0.323, allocations: 12.44 kB / 436.4 MB, free: 1.5 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.754e-05/0.323, allocations: 4 kB / 436.4 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.323, allocations: 0 / 436.4 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.323, allocations: 0 / 436.4 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001233/0.3232, allocations: 117.3 kB / 436.5 MB, free: 1.352 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.616e-06/0.3232, allocations: 8 kB / 436.5 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.432e-05/0.3232, allocations: 8 kB / 436.5 MB, free: 1.336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.3232, allocations: 0 / 436.5 MB, free: 1.336 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.011e-05/0.3233, allocations: 7.922 kB / 436.5 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3233, allocations: 0 / 436.5 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.3233, allocations: 4 kB / 436.5 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002772/0.3235, allocations: 125.8 kB / 436.6 MB, free: 1.18 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.117e-05/0.3236, allocations: 7.953 kB / 436.7 MB, free: 1.172 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.405e-05/0.3236, allocations: 11.94 kB / 436.7 MB, free: 1.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.807e-05/0.3237, allocations: 7.984 kB / 436.7 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.321e-05/0.3237, allocations: 4 kB / 436.7 MB, free: 1.148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-06/0.3237, allocations: 0 / 436.7 MB, free: 1.148 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.707e-05/0.3238, allocations: 102.5 kB / 436.8 MB, free: 1.051 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3238, allocations: 0 / 436.8 MB, free: 1.051 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002221/0.324, allocations: 12 kB / 436.8 MB, free: 1.039 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.0001329/0.3242, allocations: 99.23 kB / 436.9 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002037/0.3244, allocations: 52.22 kB / 436.9 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.3244, allocations: 8.125 kB / 436.9 MB, free: 0.875 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.785e-05/0.3244, allocations: 11.94 kB / 437 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007943/0.3252, allocations: 0.7257 MB / 437.7 MB, free: 116 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005089/0.3257, allocations: 183.6 kB / 437.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.841e-05/0.3258, allocations: 75.98 kB / 437.9 MB, free: 15.81 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.761e-05/0.3258, allocations: 4.125 kB / 437.9 MB, free: 15.81 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.791e-05/0.3259, allocations: 15.38 kB / 438 MB, free: 15.79 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3259, allocations: 0 / 438 MB, free: 15.79 MB / 350.1 MB Notification: Performance of Templates: time 0.00381/0.3297, allocations: 0.8602 MB / 438.8 MB, free: 14.95 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: 4.544563325121999]