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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001474/0.001474, allocations: 105.6 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001438/0.001438, allocations: 208.1 kB / 19.25 MB, free: 3.941 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.528/1.528, allocations: 227.7 MB / 247.7 MB, free: 10.33 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.00192/0.00192, allocations: 68.72 kB / 307.9 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1072, allocations: 50.54 MB / 358.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003249/0.1105, allocations: 1.595 MB / 360 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009599/0.1114, allocations: 0.5064 MB / 360.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.659e-05/0.1115, allocations: 7.938 kB / 360.5 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.586e-05/0.1116, allocations: 7.922 kB / 360.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001511/0.1117, allocations: 11.81 kB / 360.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002367/0.112, allocations: 51.94 kB / 360.6 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001146/0.1121, allocations: 67.78 kB / 360.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.99e-05/0.1122, allocations: 23.97 kB / 360.7 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001508/0.1124, allocations: 35.86 kB / 360.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.873e-05/0.1125, allocations: 31.83 kB / 360.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.236e-05/0.1125, allocations: 4 kB / 360.8 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.782e-05/0.1125, allocations: 12 kB / 360.8 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.058e-05/0.1126, allocations: 15.92 kB / 360.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.114e-05/0.1126, allocations: 27.86 kB / 360.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001381/0.1128, allocations: 67.78 kB / 360.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.1128, allocations: 3.938 kB / 360.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1128, allocations: 3.938 kB / 360.9 MB, free: 11.47 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.058e-06/0.1128, allocations: 0 / 360.9 MB, free: 11.47 MB / 302.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.0005855/0.1134, allocations: 375.5 kB / 361.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.1135, allocations: 8.031 kB / 361.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002461/0.1137, allocations: 20.83 kB / 361.3 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002349/0.114, allocations: 195.6 kB / 361.5 MB, free: 10.8 MB / 302.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.0001355/0.1141, allocations: 46.25 kB / 361.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.513e-05/0.1141, allocations: 4.375 kB / 361.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000394/0.1145, allocations: 161 kB / 361.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.1145, allocations: 0 / 361.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.756e-05/0.1146, allocations: 8 kB / 361.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.1146, allocations: 0 / 361.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001364/0.1147, allocations: 35.97 kB / 361.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002145/0.1149, allocations: 178.4 kB / 361.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003106/0.1153, allocations: 170.4 kB / 362.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001034/0.1154, allocations: 41.7 kB / 362.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.242e-05/0.1154, allocations: 11.97 kB / 362.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.363e-05/0.1154, allocations: 38.44 kB / 362.2 MB, free: 9.996 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.252e-06/0.1155, allocations: 3.938 kB / 362.2 MB, free: 9.992 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003683/0.1158, allocations: 109.6 kB / 362.3 MB, free: 9.879 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.572e-05/0.1159, allocations: 93.17 kB / 362.4 MB, free: 9.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001341/0.1161, allocations: 129.8 kB / 362.5 MB, free: 9.633 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.369e-05/0.1161, allocations: 25.7 kB / 362.5 MB, free: 9.602 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.645e-05/0.1162, allocations: 92.08 kB / 362.6 MB, free: 9.508 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.664e-05/0.1162, allocations: 7.906 kB / 362.6 MB, free: 9.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.268e-05/0.1162, allocations: 21.7 kB / 362.6 MB, free: 9.473 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001886/0.1164, allocations: 322.8 kB / 363 MB, free: 9.148 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.383e-05/0.1165, allocations: 16 kB / 363 MB, free: 9.133 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.072e-05/0.1166, allocations: 54 kB / 363 MB, free: 9.059 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001545/0.1168, allocations: 85.86 kB / 363.1 MB, free: 8.953 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.1168, allocations: 4 kB / 363.1 MB, free: 8.949 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001952/0.117, allocations: 101.5 kB / 363.2 MB, free: 8.844 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.117, allocations: 10.19 kB / 363.2 MB, free: 8.836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.117, allocations: 0 / 363.2 MB, free: 8.836 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.117, allocations: 4.25 kB / 363.2 MB, free: 8.832 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.497e-05/0.1171, allocations: 19.92 kB / 363.2 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.1171, allocations: 4 kB / 363.2 MB, free: 8.809 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.866e-05/0.1172, allocations: 4 kB / 363.3 MB, free: 8.805 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.14e-05/0.1172, allocations: 8 kB / 363.3 MB, free: 8.797 MB / 302.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.0001107/0.1173, allocations: 122 kB / 363.4 MB, free: 8.668 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001427/0.1175, allocations: 81.45 kB / 363.5 MB, free: 8.582 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.431e-05/0.1175, allocations: 8.375 kB / 363.5 MB, free: 8.574 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.1175, allocations: 4 kB / 363.5 MB, free: 8.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.1175, allocations: 0 / 363.5 MB, free: 8.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.1175, allocations: 0 / 363.5 MB, free: 8.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001695/0.1177, allocations: 169.6 kB / 363.6 MB, free: 8.355 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.1177, allocations: 4 kB / 363.6 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.897e-05/0.1178, allocations: 15.92 kB / 363.7 MB, free: 8.336 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.1178, allocations: 0 / 363.7 MB, free: 8.336 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.1178, allocations: 7.984 kB / 363.7 MB, free: 8.328 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1179, allocations: 4.188 kB / 363.7 MB, free: 8.324 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.1179, allocations: 4 kB / 363.7 MB, free: 8.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000247/0.1181, allocations: 125.7 kB / 363.8 MB, free: 8.176 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.86e-05/0.1182, allocations: 100.9 kB / 363.9 MB, free: 8.059 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.197e-05/0.1182, allocations: 0 / 363.9 MB, free: 8.059 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.008e-05/0.1183, allocations: 7.984 kB / 363.9 MB, free: 8.051 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.042e-05/0.1184, allocations: 8 kB / 363.9 MB, free: 8.043 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.13e-05/0.1184, allocations: 4 kB / 363.9 MB, free: 8.039 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.723e-05/0.1184, allocations: 99.2 kB / 364 MB, free: 7.941 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1185, allocations: 0 / 364 MB, free: 7.941 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002103/0.1187, allocations: 12 kB / 364 MB, free: 7.93 MB / 302.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.0001243/0.1188, allocations: 103.2 kB / 364.1 MB, free: 7.816 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002114/0.119, allocations: 68.09 kB / 364.2 MB, free: 7.75 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.119, allocations: 0 / 364.2 MB, free: 7.75 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.798e-05/0.1191, allocations: 4 kB / 364.2 MB, free: 7.746 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007388/0.1198, allocations: 0.7234 MB / 364.9 MB, free: 7.004 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004306/0.1203, allocations: 209.4 kB / 365.1 MB, free: 6.762 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003495/0.1206, allocations: 0.6885 MB / 365.8 MB, free: 6.047 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.35e-05/0.1207, allocations: 11.44 kB / 365.8 MB, free: 6.035 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1207, allocations: 0 / 365.8 MB, free: 6.035 MB / 302.1 MB Notification: Performance of Templates: time 0.002842/0.1235, allocations: 0.9871 MB / 366.8 MB, free: 5.051 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile (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) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins1/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) Reference file matches