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 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] 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=500,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=500,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001438/0.001438, allocations: 109.4 kB / 18.78 MB, free: 3.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001359/0.001359, allocations: 207.2 kB / 19.79 MB, free: 2.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.583/1.583, allocations: 230.4 MB / 251.1 MB, free: 8.477 MB / 206.1 MB 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.002131/0.002131, allocations: 67.84 kB / 369 MB, free: 6.047 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3258/0.3279, allocations: 53.31 MB / 422.3 MB, free: 7.828 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003137/0.331, allocations: 1.609 MB / 423.9 MB, free: 6.215 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001041/0.3321, allocations: 0.5026 MB / 424.4 MB, free: 5.707 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.902e-05/0.3321, allocations: 0 / 424.4 MB, free: 5.707 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.549e-05/0.3322, allocations: 11.88 kB / 424.4 MB, free: 5.695 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001834/0.3324, allocations: 15.86 kB / 424.4 MB, free: 5.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002567/0.3326, allocations: 51.88 kB / 424.5 MB, free: 5.629 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001365/0.3328, allocations: 71.75 kB / 424.5 MB, free: 5.559 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.845e-05/0.3329, allocations: 8 kB / 424.5 MB, free: 5.551 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001728/0.333, allocations: 43.83 kB / 424.6 MB, free: 5.508 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.598e-05/0.3331, allocations: 31.86 kB / 424.6 MB, free: 5.477 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.884e-05/0.3331, allocations: 4 kB / 424.6 MB, free: 5.473 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.578e-05/0.3332, allocations: 8 kB / 424.6 MB, free: 5.465 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.534e-05/0.3332, allocations: 19.92 kB / 424.6 MB, free: 5.445 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.279e-05/0.3332, allocations: 35.78 kB / 424.7 MB, free: 5.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001765/0.3334, allocations: 63.3 kB / 424.7 MB, free: 5.352 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3334, allocations: 0 / 424.7 MB, free: 5.352 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3334, allocations: 0 / 424.7 MB, free: 5.352 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.3334, allocations: 0 / 424.7 MB, free: 5.352 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.0006161/0.3341, allocations: 382.1 kB / 425.1 MB, free: 4.934 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.3341, allocations: 12.03 kB / 425.1 MB, free: 4.922 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002354/0.3343, allocations: 24.88 kB / 425.2 MB, free: 4.898 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002794/0.3346, allocations: 200.1 kB / 425.3 MB, free: 4.664 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.0001054/0.3347, allocations: 38.25 kB / 425.4 MB, free: 4.621 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.888e-05/0.3347, allocations: 4.375 kB / 425.4 MB, free: 4.617 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003918/0.3351, allocations: 169 kB / 425.6 MB, free: 4.434 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.3351, allocations: 0 / 425.6 MB, free: 4.434 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.137e-05/0.3351, allocations: 0 / 425.6 MB, free: 4.434 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.3351, allocations: 0 / 425.6 MB, free: 4.434 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001257/0.3353, allocations: 43.84 kB / 425.6 MB, free: 4.391 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002179/0.3355, allocations: 182.5 kB / 425.8 MB, free: 4.16 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003093/0.3358, allocations: 170.4 kB / 425.9 MB, free: 3.957 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.256e-05/0.3359, allocations: 29.7 kB / 426 MB, free: 3.922 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.336e-05/0.3359, allocations: 7.984 kB / 426 MB, free: 3.914 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.778e-05/0.3359, allocations: 38.5 kB / 426 MB, free: 3.867 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.3359, allocations: 0 / 426 MB, free: 3.867 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003984/0.3363, allocations: 117.5 kB / 426.1 MB, free: 3.746 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.54e-05/0.3364, allocations: 85.11 kB / 426.2 MB, free: 3.645 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001197/0.3365, allocations: 124.4 kB / 426.3 MB, free: 3.516 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.911e-05/0.3366, allocations: 25.7 kB / 426.4 MB, free: 3.484 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.46e-05/0.3366, allocations: 96.12 kB / 426.5 MB, free: 3.387 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.095e-05/0.3366, allocations: 3.953 kB / 426.5 MB, free: 3.383 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.162e-05/0.3367, allocations: 21.72 kB / 426.5 MB, free: 3.355 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.3368, allocations: 323 kB / 426.8 MB, free: 3.031 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.553e-05/0.3369, allocations: 23.98 kB / 426.8 MB, free: 3.008 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.32e-05/0.3369, allocations: 57.94 kB / 426.9 MB, free: 2.93 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001427/0.3371, allocations: 77.94 kB / 426.9 MB, free: 2.832 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.3371, allocations: 0 / 426.9 MB, free: 2.832 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001833/0.3373, allocations: 109.6 kB / 427.1 MB, free: 2.719 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.3373, allocations: 4 kB / 427.1 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.3373, allocations: 7.938 kB / 427.1 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.3373, allocations: 0 / 427.1 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.732e-05/0.3374, allocations: 15.98 kB / 427.1 MB, free: 2.691 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.3374, allocations: 4 kB / 427.1 MB, free: 2.688 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.883e-05/0.3374, allocations: 4 kB / 427.1 MB, free: 2.684 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.236e-05/0.3374, allocations: 8.203 kB / 427.1 MB, free: 2.676 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.0001062/0.3375, allocations: 129.7 kB / 427.2 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001262/0.3377, allocations: 73.83 kB / 427.3 MB, free: 2.461 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.749e-05/0.3377, allocations: 12.38 kB / 427.3 MB, free: 2.449 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.3377, allocations: 4 kB / 427.3 MB, free: 2.445 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.3377, allocations: 7.984 kB / 427.3 MB, free: 2.438 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.3377, allocations: 4 kB / 427.3 MB, free: 2.434 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001466/0.3379, allocations: 169.6 kB / 427.5 MB, free: 2.219 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.3379, allocations: 3.984 kB / 427.5 MB, free: 2.215 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.759e-05/0.338, allocations: 15.92 kB / 427.5 MB, free: 2.199 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.338, allocations: 7.938 kB / 427.5 MB, free: 2.191 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.167e-05/0.338, allocations: 8 kB / 427.5 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.338, allocations: 0 / 427.5 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.338, allocations: 0 / 427.5 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002237/0.3382, allocations: 117.9 kB / 427.6 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.07e-05/0.3383, allocations: 96.98 kB / 427.7 MB, free: 1.934 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.38e-05/0.3383, allocations: 8 kB / 427.7 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.342e-05/0.3384, allocations: 0 / 427.7 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.175e-05/0.3384, allocations: 4 kB / 427.7 MB, free: 1.922 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-05/0.3384, allocations: 7.984 kB / 427.8 MB, free: 1.914 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.26e-05/0.3385, allocations: 95.27 kB / 427.8 MB, free: 1.82 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3385, allocations: 0 / 427.8 MB, free: 1.82 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002048/0.3387, allocations: 16 kB / 427.9 MB, free: 1.805 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.0001274/0.3388, allocations: 102 kB / 428 MB, free: 1.699 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001992/0.339, allocations: 59.91 kB / 428 MB, free: 1.641 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.339, allocations: 0 / 428 MB, free: 1.641 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.421e-05/0.339, allocations: 4 kB / 428 MB, free: 1.637 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007461/0.3398, allocations: 0.7224 MB / 428.7 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004221/0.3402, allocations: 191.2 kB / 428.9 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003964/0.3406, allocations: 0.6963 MB / 429.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.165e-05/0.3406, allocations: 0 / 429.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.322e-05/0.3407, allocations: 19.36 kB / 429.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3407, allocations: 0 / 429.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of Templates: time 0.003531/0.3442, allocations: 0.7798 MB / 430.4 MB, free: 15.16 MB / 350.1 MB 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] Reference file matches