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.001838/0.001838, allocations: 107 kB / 19.8 MB, free: 2.5 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.002098/0.002098, allocations: 215.8 kB / 23 MB, free: 5.57 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.647/1.647, allocations: 230.2 MB / 256.2 MB, free: 8.527 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.001953/0.001953, allocations: 64.12 kB / 376.5 MB, free: 3.574 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3235/0.3254, allocations: 53.33 MB / 429.8 MB, free: 7.523 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003851/0.3293, allocations: 1.621 MB / 431.4 MB, free: 5.895 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001241/0.3305, allocations: 0.5182 MB / 431.9 MB, free: 5.371 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000104/0.3306, allocations: 3.938 kB / 431.9 MB, free: 5.367 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.303e-05/0.3307, allocations: 3.938 kB / 432 MB, free: 5.363 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002353/0.3309, allocations: 11.88 kB / 432 MB, free: 5.352 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003484/0.3313, allocations: 55.86 kB / 432 MB, free: 5.297 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001919/0.3315, allocations: 67.83 kB / 432.1 MB, free: 5.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001556/0.3316, allocations: 11.98 kB / 432.1 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002445/0.3319, allocations: 39.8 kB / 432.1 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.487e-05/0.3319, allocations: 35.83 kB / 432.2 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.429e-05/0.332, allocations: 4 kB / 432.2 MB, free: 5.141 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.69e-05/0.332, allocations: 12 kB / 432.2 MB, free: 5.129 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.418e-05/0.3321, allocations: 15.92 kB / 432.2 MB, free: 5.113 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.911e-05/0.3321, allocations: 23.86 kB / 432.2 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000244/0.3324, allocations: 68.92 kB / 432.3 MB, free: 5.027 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.3324, allocations: 4 kB / 432.3 MB, free: 5.023 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.3324, allocations: 0 / 432.3 MB, free: 5.023 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.293e-06/0.3324, allocations: 0 / 432.3 MB, free: 5.023 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.0008069/0.3332, allocations: 383.2 kB / 432.7 MB, free: 4.602 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/0.3333, allocations: 8.031 kB / 432.7 MB, free: 4.594 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002589/0.3335, allocations: 20.88 kB / 432.7 MB, free: 4.574 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000344/0.3339, allocations: 200.2 kB / 432.9 MB, free: 4.34 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.0001375/0.334, allocations: 38.25 kB / 432.9 MB, free: 4.297 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.606e-05/0.334, allocations: 8.312 kB / 432.9 MB, free: 4.289 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004525/0.3345, allocations: 165 kB / 433.1 MB, free: 4.109 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.3345, allocations: 0 / 433.1 MB, free: 4.109 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.186e-05/0.3345, allocations: 4 kB / 433.1 MB, free: 4.105 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.3345, allocations: 0 / 433.1 MB, free: 4.105 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000158/0.3347, allocations: 35.92 kB / 433.1 MB, free: 4.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002923/0.335, allocations: 186.5 kB / 433.3 MB, free: 3.836 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003693/0.3353, allocations: 166.4 kB / 433.5 MB, free: 3.637 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001154/0.3354, allocations: 37.7 kB / 433.5 MB, free: 3.594 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.832e-05/0.3355, allocations: 0 / 433.5 MB, free: 3.594 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.276e-05/0.3355, allocations: 38.5 kB / 433.6 MB, free: 3.547 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.021e-06/0.3355, allocations: 0 / 433.6 MB, free: 3.547 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003766/0.3359, allocations: 113.5 kB / 433.7 MB, free: 3.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/0.336, allocations: 85.11 kB / 433.8 MB, free: 3.328 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001282/0.3361, allocations: 128.7 kB / 433.9 MB, free: 3.195 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.185e-05/0.3362, allocations: 33.7 kB / 433.9 MB, free: 3.156 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.685e-05/0.3362, allocations: 88.27 kB / 434 MB, free: 3.066 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.517e-05/0.3363, allocations: 15.94 kB / 434 MB, free: 3.051 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.65e-05/0.3363, allocations: 17.72 kB / 434 MB, free: 3.027 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.3365, allocations: 322.8 kB / 434.3 MB, free: 2.703 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.682e-05/0.3366, allocations: 15.92 kB / 434.4 MB, free: 2.688 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.8e-05/0.3367, allocations: 62 kB / 434.4 MB, free: 2.605 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001476/0.3368, allocations: 73.94 kB / 434.5 MB, free: 2.512 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3368, allocations: 256 / 434.5 MB, free: 2.512 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002063/0.337, allocations: 105.4 kB / 434.6 MB, free: 2.402 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.303e-05/0.337, allocations: 8 kB / 434.6 MB, free: 2.395 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.337, allocations: 4.188 kB / 434.6 MB, free: 2.391 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.767e-05/0.3371, allocations: 4 kB / 434.6 MB, free: 2.387 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.946e-05/0.3372, allocations: 28.14 kB / 434.6 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.818e-06/0.3372, allocations: 3.938 kB / 434.6 MB, free: 2.355 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.405e-05/0.3372, allocations: 4 kB / 434.6 MB, free: 2.352 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.112e-05/0.3372, allocations: 4 kB / 434.7 MB, free: 2.348 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.0001455/0.3374, allocations: 121.8 kB / 434.8 MB, free: 2.219 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000167/0.3376, allocations: 77.56 kB / 434.8 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.585e-05/0.3376, allocations: 8.375 kB / 434.9 MB, free: 2.129 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-06/0.3376, allocations: 4 kB / 434.9 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.3376, allocations: 0 / 434.9 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.858e-06/0.3376, allocations: 4 kB / 434.9 MB, free: 2.121 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002088/0.3378, allocations: 177.6 kB / 435 MB, free: 1.898 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.3378, allocations: 0 / 435 MB, free: 1.898 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.318e-05/0.3379, allocations: 23.86 kB / 435.1 MB, free: 1.875 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-06/0.3379, allocations: 3.984 kB / 435.1 MB, free: 1.871 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.257e-05/0.3379, allocations: 0 / 435.1 MB, free: 1.871 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.3379, allocations: 0 / 435.1 MB, free: 1.871 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.3379, allocations: 4 kB / 435.1 MB, free: 1.867 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002657/0.3382, allocations: 133.8 kB / 435.2 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.3383, allocations: 89 kB / 435.3 MB, free: 1.609 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.029e-05/0.3383, allocations: 11.98 kB / 435.3 MB, free: 1.598 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.552e-05/0.3384, allocations: 4 kB / 435.3 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.662e-05/0.3385, allocations: 0 / 435.3 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.248e-05/0.3385, allocations: 7.938 kB / 435.3 MB, free: 1.586 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.597e-05/0.3386, allocations: 103.2 kB / 435.4 MB, free: 1.484 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3386, allocations: 0 / 435.4 MB, free: 1.484 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002198/0.3388, allocations: 12 kB / 435.4 MB, free: 1.473 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.000189/0.339, allocations: 99.25 kB / 435.5 MB, free: 1.367 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002296/0.3392, allocations: 52.03 kB / 435.6 MB, free: 1.316 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3392, allocations: 0 / 435.6 MB, free: 1.316 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.397e-05/0.3392, allocations: 12 kB / 435.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.0008093/0.34, allocations: 0.7263 MB / 436.3 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005362/0.3406, allocations: 195.3 kB / 436.5 MB, free: 340 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000392/0.341, allocations: 0.6885 MB / 437.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.79e-05/0.341, allocations: 8.062 kB / 437.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.142e-05/0.3411, allocations: 11.44 kB / 437.2 MB, free: 15.6 MB / 350.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3411, allocations: 0 / 437.2 MB, free: 15.6 MB / 350.1 MB Notification: Performance of Templates: time 0.003992/0.3451, allocations: 0.7943 MB / 438 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.175118708983064]