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.001422/0.001422, allocations: 114.5 kB / 21.17 MB, free: 0.6172 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.001521/0.001521, allocations: 206.8 kB / 24.47 MB, free: 4.023 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.684/1.684, allocations: 230.4 MB / 258.1 MB, free: 8.145 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.00204/0.00204, allocations: 79.75 kB / 378.8 MB, free: 2.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4135/0.4156, allocations: 53.3 MB / 432.1 MB, free: 7.363 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003769/0.4193, allocations: 1.621 MB / 433.7 MB, free: 5.738 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001117/0.4205, allocations: 0.5143 MB / 434.2 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.037e-05/0.4205, allocations: 4 kB / 434.2 MB, free: 5.215 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.425e-05/0.4206, allocations: 7.875 kB / 434.2 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001938/0.4208, allocations: 7.875 kB / 434.2 MB, free: 5.199 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003008/0.4211, allocations: 51.88 kB / 434.3 MB, free: 5.148 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001697/0.4213, allocations: 75.75 kB / 434.3 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001292/0.4214, allocations: 12 kB / 434.3 MB, free: 5.062 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001946/0.4216, allocations: 31.92 kB / 434.4 MB, free: 5.031 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.893e-05/0.4217, allocations: 39.83 kB / 434.4 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.446e-05/0.4217, allocations: 4 kB / 434.4 MB, free: 4.988 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.51e-05/0.4217, allocations: 8 kB / 434.4 MB, free: 4.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.849e-05/0.4218, allocations: 15.86 kB / 434.4 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.647e-05/0.4218, allocations: 39.78 kB / 434.5 MB, free: 4.926 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001915/0.422, allocations: 65.69 kB / 434.5 MB, free: 4.863 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.134e-06/0.422, allocations: 0 / 434.5 MB, free: 4.863 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.422, allocations: 0 / 434.5 MB, free: 4.863 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.203e-06/0.422, allocations: 4 kB / 434.5 MB, free: 4.859 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.0008564/0.4229, allocations: 379.2 kB / 434.9 MB, free: 4.441 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/0.423, allocations: 12.03 kB / 434.9 MB, free: 4.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002902/0.4232, allocations: 20.88 kB / 434.9 MB, free: 4.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003376/0.4236, allocations: 188.2 kB / 435.1 MB, free: 4.188 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.0001433/0.4237, allocations: 42.25 kB / 435.2 MB, free: 4.141 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.212e-05/0.4237, allocations: 12.25 kB / 435.2 MB, free: 4.129 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004498/0.4242, allocations: 165 kB / 435.3 MB, free: 3.949 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.4242, allocations: 4 kB / 435.4 MB, free: 3.945 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.4242, allocations: 0 / 435.4 MB, free: 3.945 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.4242, allocations: 0 / 435.4 MB, free: 3.945 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001436/0.4244, allocations: 39.92 kB / 435.4 MB, free: 3.906 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002586/0.4246, allocations: 190.4 kB / 435.6 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003487/0.425, allocations: 154.4 kB / 435.7 MB, free: 3.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.4251, allocations: 37.7 kB / 435.8 MB, free: 3.438 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.419e-05/0.4251, allocations: 11.94 kB / 435.8 MB, free: 3.426 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.636e-05/0.4251, allocations: 38.5 kB / 435.8 MB, free: 3.379 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.323e-06/0.4251, allocations: 0 / 435.8 MB, free: 3.379 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003943/0.4255, allocations: 113.5 kB / 435.9 MB, free: 3.262 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.4256, allocations: 85.11 kB / 436 MB, free: 3.16 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001458/0.4258, allocations: 126 kB / 436.1 MB, free: 3.027 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.372e-05/0.4258, allocations: 25.7 kB / 436.2 MB, free: 2.996 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.886e-05/0.4259, allocations: 92.12 kB / 436.2 MB, free: 2.902 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.565e-05/0.4259, allocations: 11.94 kB / 436.3 MB, free: 2.891 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.572e-05/0.426, allocations: 21.72 kB / 436.3 MB, free: 2.863 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.4261, allocations: 318.8 kB / 436.6 MB, free: 2.543 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.808e-05/0.4262, allocations: 15.98 kB / 436.6 MB, free: 2.527 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.432e-05/0.4263, allocations: 65.94 kB / 436.7 MB, free: 2.441 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001528/0.4264, allocations: 78.19 kB / 436.7 MB, free: 2.344 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.4264, allocations: 0 / 436.7 MB, free: 2.344 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001985/0.4266, allocations: 105.4 kB / 436.8 MB, free: 2.234 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.339e-05/0.4266, allocations: 10.75 kB / 436.9 MB, free: 2.227 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.4266, allocations: 8.406 kB / 436.9 MB, free: 2.219 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.994e-05/0.4267, allocations: 0 / 436.9 MB, free: 2.219 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.851e-05/0.4268, allocations: 19.92 kB / 436.9 MB, free: 2.199 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.18e-05/0.4268, allocations: 4 kB / 436.9 MB, free: 2.195 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.276e-05/0.4268, allocations: 4 kB / 436.9 MB, free: 2.191 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.016e-05/0.4268, allocations: 4 kB / 436.9 MB, free: 2.188 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.0001431/0.427, allocations: 125.7 kB / 437 MB, free: 2.055 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001484/0.4271, allocations: 77.56 kB / 437.1 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.266e-05/0.4272, allocations: 12.38 kB / 437.1 MB, free: 1.961 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.4272, allocations: 4 kB / 437.1 MB, free: 1.957 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.4272, allocations: 0 / 437.1 MB, free: 1.957 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.747e-06/0.4272, allocations: 7.938 kB / 437.1 MB, free: 1.949 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001918/0.4274, allocations: 173.6 kB / 437.3 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.4274, allocations: 0 / 437.3 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.634e-05/0.4275, allocations: 11.94 kB / 437.3 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.4275, allocations: 3.984 kB / 437.3 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.693e-05/0.4275, allocations: 4 kB / 437.3 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.4275, allocations: 0 / 437.3 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.4275, allocations: 3.938 kB / 437.3 MB, free: 1.707 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002768/0.4278, allocations: 129.9 kB / 437.4 MB, free: 1.559 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.398e-05/0.4279, allocations: 89 kB / 437.5 MB, free: 1.453 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.654e-05/0.4279, allocations: 11.98 kB / 437.5 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.205e-05/0.428, allocations: 0 / 437.5 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.387e-05/0.428, allocations: 4 kB / 437.5 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.053e-05/0.428, allocations: 4 kB / 437.5 MB, free: 1.434 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.53e-05/0.4281, allocations: 107 kB / 437.7 MB, free: 1.332 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4281, allocations: 0 / 437.7 MB, free: 1.332 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002149/0.4283, allocations: 16 kB / 437.7 MB, free: 1.316 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.0001737/0.4285, allocations: 95.38 kB / 437.8 MB, free: 1.215 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002651/0.4288, allocations: 63.84 kB / 437.8 MB, free: 1.152 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4288, allocations: 448 / 437.8 MB, free: 1.152 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.918e-05/0.4288, allocations: 8 kB / 437.8 MB, free: 1.145 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008666/0.4297, allocations: 0.718 MB / 438.5 MB, free: 412 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005351/0.4302, allocations: 191.3 kB / 438.7 MB, free: 188 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004703/0.4307, allocations: 0.6963 MB / 439.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.518e-05/0.4307, allocations: 4 kB / 439.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.679e-05/0.4308, allocations: 15.44 kB / 439.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4308, allocations: 0 / 439.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of Templates: time 0.004523/0.4353, allocations: 0.7875 MB / 440.2 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.084660397842526]