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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009134/0.0009132, allocations: 95.09 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001113/0.001113, allocations: 207 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 227.7 MB / 247.5 MB, free: 9.488 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002841/0.0002842, allocations: 7.984 kB / 308.4 MB, free: 0.5703 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1161, allocations: 51.53 MB / 359.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.001987/0.1181, allocations: 1.317 MB / 361.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009336/0.1191, allocations: 0.4988 MB / 361.7 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.931e-05/0.1192, allocations: 4 kB / 361.7 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.324e-05/0.1192, allocations: 7.938 kB / 361.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001667/0.1194, allocations: 7.938 kB / 361.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002532/0.1196, allocations: 39.89 kB / 361.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001184/0.1198, allocations: 63.84 kB / 361.9 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001057/0.1199, allocations: 15.95 kB / 361.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001801/0.1201, allocations: 39.86 kB / 361.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.629e-05/0.1202, allocations: 31.83 kB / 361.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.029e-05/0.1202, allocations: 7.938 kB / 361.9 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.525e-05/0.1202, allocations: 8 kB / 362 MB, free: 11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.249e-05/0.1203, allocations: 11.94 kB / 362 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.124e-05/0.1203, allocations: 45.56 kB / 362 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001088/0.1204, allocations: 43.91 kB / 362.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.1204, allocations: 0 / 362.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1205, allocations: 4 kB / 362.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.967e-06/0.1205, allocations: 0 / 362.1 MB, free: 10.89 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.0005188/0.121, allocations: 367.5 kB / 362.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.121, allocations: 12.03 kB / 362.4 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002296/0.1213, allocations: 24.83 kB / 362.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001959/0.1215, allocations: 192.1 kB / 362.6 MB, free: 10.22 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.0001268/0.1216, allocations: 34.27 kB / 362.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.938e-05/0.1216, allocations: 4.375 kB / 362.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003816/0.122, allocations: 177 kB / 362.9 MB, free: 9.988 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.122, allocations: 0 / 362.9 MB, free: 9.988 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.1221, allocations: 0 / 362.9 MB, free: 9.988 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.1221, allocations: 0 / 362.9 MB, free: 9.988 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001287/0.1222, allocations: 39.97 kB / 362.9 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001783/0.1224, allocations: 182.5 kB / 363.1 MB, free: 9.719 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003027/0.1227, allocations: 170.4 kB / 363.2 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001046/0.1228, allocations: 41.7 kB / 363.3 MB, free: 9.469 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.165e-05/0.1229, allocations: 7.984 kB / 363.3 MB, free: 9.461 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.511e-05/0.1229, allocations: 46.38 kB / 363.3 MB, free: 9.406 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.462e-06/0.1229, allocations: 0 / 363.3 MB, free: 9.406 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003589/0.1233, allocations: 125.7 kB / 363.5 MB, free: 9.277 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.29e-05/0.1233, allocations: 85.3 kB / 363.5 MB, free: 9.176 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.525e-05/0.1234, allocations: 125.8 kB / 363.7 MB, free: 9.043 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.667e-05/0.1235, allocations: 29.69 kB / 363.7 MB, free: 9.008 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.935e-05/0.1235, allocations: 88.14 kB / 363.8 MB, free: 8.918 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.737e-05/0.1236, allocations: 7.906 kB / 363.8 MB, free: 8.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.016e-05/0.1236, allocations: 17.66 kB / 363.8 MB, free: 8.887 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.1237, allocations: 318.8 kB / 364.1 MB, free: 8.566 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.836e-05/0.1238, allocations: 19.98 kB / 364.1 MB, free: 8.547 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.139e-05/0.1238, allocations: 65.98 kB / 364.2 MB, free: 8.461 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001316/0.124, allocations: 85.88 kB / 364.3 MB, free: 8.355 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.124, allocations: 0 / 364.3 MB, free: 8.355 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002051/0.1242, allocations: 113.4 kB / 364.4 MB, free: 8.238 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.1242, allocations: 4 kB / 364.4 MB, free: 8.234 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.228e-06/0.1242, allocations: 7.984 kB / 364.4 MB, free: 8.227 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.1243, allocations: 0 / 364.4 MB, free: 8.227 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.754e-05/0.1244, allocations: 19.94 kB / 364.4 MB, free: 8.207 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.1244, allocations: 0 / 364.4 MB, free: 8.207 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.6e-05/0.1244, allocations: 8.203 kB / 364.4 MB, free: 8.199 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.125e-05/0.1245, allocations: 12 kB / 364.4 MB, free: 8.188 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.0001011/0.1246, allocations: 117.8 kB / 364.6 MB, free: 8.062 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001155/0.1247, allocations: 81.47 kB / 364.6 MB, free: 7.977 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.866e-05/0.1247, allocations: 12.36 kB / 364.6 MB, free: 7.965 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.1247, allocations: 4 kB / 364.6 MB, free: 7.961 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.1248, allocations: 0 / 364.6 MB, free: 7.961 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.1248, allocations: 0 / 364.6 MB, free: 7.961 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001216/0.1249, allocations: 169.6 kB / 364.8 MB, free: 7.746 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.1249, allocations: 0 / 364.8 MB, free: 7.746 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.071e-05/0.125, allocations: 23.92 kB / 364.8 MB, free: 7.723 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.125, allocations: 0 / 364.8 MB, free: 7.723 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.236e-05/0.125, allocations: 4.188 kB / 364.8 MB, free: 7.719 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.796e-06/0.125, allocations: 4 kB / 364.8 MB, free: 7.715 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.125, allocations: 3.938 kB / 364.8 MB, free: 7.711 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002184/0.1252, allocations: 129.8 kB / 365 MB, free: 7.562 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.991e-05/0.1253, allocations: 96.94 kB / 365.1 MB, free: 7.449 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.157e-05/0.1253, allocations: 0 / 365.1 MB, free: 7.449 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.666e-05/0.1254, allocations: 4 kB / 365.1 MB, free: 7.445 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.955e-05/0.1255, allocations: 11.98 kB / 365.1 MB, free: 7.434 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-06/0.1255, allocations: 3.938 kB / 365.1 MB, free: 7.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.59e-05/0.1255, allocations: 102.3 kB / 365.2 MB, free: 7.332 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1255, allocations: 0 / 365.2 MB, free: 7.332 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002137/0.1258, allocations: 12 kB / 365.2 MB, free: 7.32 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.0001161/0.1259, allocations: 103.4 kB / 365.3 MB, free: 7.207 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00019/0.1261, allocations: 67.84 kB / 365.4 MB, free: 7.141 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.1261, allocations: 0 / 365.4 MB, free: 7.141 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.147e-05/0.1261, allocations: 12.42 kB / 365.4 MB, free: 7.129 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006226/0.1268, allocations: 0.7181 MB / 366.1 MB, free: 6.387 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003864/0.1272, allocations: 235.1 kB / 366.3 MB, free: 6.121 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002268/0.1274, allocations: 0.6937 MB / 367 MB, free: 5.402 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.324e-05/0.1275, allocations: 15.42 kB / 367 MB, free: 5.387 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.1275, allocations: 0 / 367 MB, free: 5.387 MB / 302.1 MB Notification: Performance of Templates: time 0.002498/0.13, allocations: 0.9662 MB / 368 MB, free: 4.426 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile (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) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches