Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 92.34 kB / 16.3 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 182.1 kB / 17.2 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.492/1.492, allocations: 223.2 MB / 241.1 MB, free: 5.449 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002687/0.0002687, allocations: 10.72 kB / 300.7 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.1262, allocations: 50.43 MB / 351.1 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.001749/0.128, allocations: 1.275 MB / 352.4 MB, free: 10.45 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006388/0.1287, allocations: 427.3 kB / 352.8 MB, free: 10.03 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.819e-05/0.1288, allocations: 4 kB / 352.8 MB, free: 10.02 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.046e-05/0.1288, allocations: 7.922 kB / 352.8 MB, free: 10.02 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001213/0.1289, allocations: 7.984 kB / 352.9 MB, free: 10.01 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00017/0.1291, allocations: 35.89 kB / 352.9 MB, free: 9.973 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.59e-05/0.1292, allocations: 39.89 kB / 352.9 MB, free: 9.934 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.522e-05/0.1293, allocations: 16.27 kB / 352.9 MB, free: 9.918 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.122e-05/0.1294, allocations: 23.91 kB / 353 MB, free: 9.895 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.941e-05/0.1294, allocations: 31.8 kB / 353 MB, free: 9.863 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.354e-05/0.1294, allocations: 4 kB / 353 MB, free: 9.859 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.182e-05/0.1295, allocations: 4 kB / 353 MB, free: 9.855 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.227e-05/0.1295, allocations: 15.92 kB / 353 MB, free: 9.84 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.803e-05/0.1295, allocations: 33.7 kB / 353.1 MB, free: 9.801 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 6.679e-05/0.1296, allocations: 43.84 kB / 353.1 MB, free: 9.758 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.894e-06/0.1296, allocations: 0 / 353.1 MB, free: 9.758 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.1296, allocations: 0 / 353.1 MB, free: 9.758 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.076e-06/0.1296, allocations: 0 / 353.1 MB, free: 9.758 MB / 286.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.0004441/0.1301, allocations: 363.2 kB / 353.5 MB, free: 9.355 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.903e-05/0.1301, allocations: 8.031 kB / 353.5 MB, free: 9.348 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.054e-05/0.1301, allocations: 19.78 kB / 353.5 MB, free: 9.328 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001953/0.1303, allocations: 186.8 kB / 353.7 MB, free: 9.105 MB / 286.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.0001517/0.1305, allocations: 33.69 kB / 353.7 MB, free: 9.066 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.723e-05/0.1305, allocations: 8 kB / 353.7 MB, free: 9.059 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003322/0.1309, allocations: 164.9 kB / 353.9 MB, free: 8.879 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.053e-06/0.1309, allocations: 3.938 kB / 353.9 MB, free: 8.875 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.4e-05/0.1309, allocations: 7.984 kB / 353.9 MB, free: 8.867 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.1309, allocations: 3.953 kB / 353.9 MB, free: 8.863 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001162/0.131, allocations: 31.98 kB / 353.9 MB, free: 8.832 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001987/0.1312, allocations: 186.5 kB / 354.1 MB, free: 8.598 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002585/0.1315, allocations: 166.4 kB / 354.3 MB, free: 8.398 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.86e-05/0.1315, allocations: 7.984 kB / 354.3 MB, free: 8.391 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.12e-05/0.1316, allocations: 30.56 kB / 354.3 MB, free: 8.352 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.403e-06/0.1316, allocations: 7.938 kB / 354.3 MB, free: 8.344 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003694/0.132, allocations: 198.7 kB / 354.5 MB, free: 8.125 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.91e-05/0.132, allocations: 81.11 kB / 354.6 MB, free: 8.027 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.077e-05/0.1321, allocations: 125.8 kB / 354.7 MB, free: 7.895 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.113e-05/0.1322, allocations: 29.7 kB / 354.7 MB, free: 7.859 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.04e-05/0.1322, allocations: 92.27 kB / 354.8 MB, free: 7.766 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.08e-05/0.1322, allocations: 11.89 kB / 354.8 MB, free: 7.754 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.925e-06/0.1322, allocations: 3.938 kB / 354.8 MB, free: 7.75 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.1324, allocations: 318.8 kB / 355.1 MB, free: 7.43 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.051e-05/0.1324, allocations: 11.98 kB / 355.2 MB, free: 7.418 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.221e-05/0.1325, allocations: 66 kB / 355.2 MB, free: 7.332 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.844e-05/0.1326, allocations: 23.98 kB / 355.2 MB, free: 7.309 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1326, allocations: 0 / 355.2 MB, free: 7.309 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001747/0.1328, allocations: 105.6 kB / 355.3 MB, free: 7.199 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.1328, allocations: 8 kB / 355.4 MB, free: 7.191 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.1328, allocations: 3.938 kB / 355.4 MB, free: 7.188 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.1328, allocations: 4 kB / 355.4 MB, free: 7.184 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.082e-05/0.1329, allocations: 19.98 kB / 355.4 MB, free: 7.164 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.1329, allocations: 8.219 kB / 355.4 MB, free: 7.156 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.008e-05/0.133, allocations: 4 kB / 355.4 MB, free: 7.152 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.786e-06/0.133, allocations: 8.203 kB / 355.4 MB, free: 7.145 MB / 286.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 (sine.startOutput,$CLKPRE.sine.startOutput,sine.counter,$CLKPRE.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.73e-05/0.1331, allocations: 117.8 kB / 355.5 MB, free: 7.02 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001141/0.1332, allocations: 77.58 kB / 355.6 MB, free: 6.938 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.259e-05/0.1332, allocations: 12.38 kB / 355.6 MB, free: 6.922 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.1333, allocations: 0 / 355.6 MB, free: 6.922 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.1333, allocations: 0 / 355.6 MB, free: 6.922 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.1333, allocations: 0 / 355.6 MB, free: 6.922 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001332/0.1334, allocations: 189.5 kB / 355.8 MB, free: 6.688 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-06/0.1334, allocations: 0 / 355.8 MB, free: 6.688 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.481e-05/0.1335, allocations: 15.92 kB / 355.8 MB, free: 6.672 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.1335, allocations: 3.938 kB / 355.8 MB, free: 6.668 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.1335, allocations: 7.984 kB / 355.8 MB, free: 6.66 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.1335, allocations: 0 / 355.8 MB, free: 6.66 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.1335, allocations: 0 / 355.8 MB, free: 6.66 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002211/0.1338, allocations: 143.5 kB / 356 MB, free: 6.492 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.128e-05/0.1338, allocations: 89 kB / 356 MB, free: 6.387 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.192e-05/0.1339, allocations: 4 kB / 356 MB, free: 6.383 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.845e-05/0.1339, allocations: 7.984 kB / 356.1 MB, free: 6.375 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.044e-05/0.134, allocations: 4 kB / 356.1 MB, free: 6.371 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.257e-06/0.134, allocations: 0 / 356.1 MB, free: 6.371 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.355e-05/0.1341, allocations: 106.3 kB / 356.2 MB, free: 6.27 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.413e-06/0.1341, allocations: 0 / 356.2 MB, free: 6.27 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001961/0.1343, allocations: 11.94 kB / 356.2 MB, free: 6.258 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001094/0.1344, allocations: 111.2 kB / 356.3 MB, free: 6.141 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001717/0.1346, allocations: 52.3 kB / 356.3 MB, free: 6.09 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1346, allocations: 4.062 kB / 356.3 MB, free: 6.086 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.241e-05/0.1346, allocations: 15.98 kB / 356.4 MB, free: 6.07 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005893/0.1352, allocations: 0.7024 MB / 357.1 MB, free: 5.344 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003829/0.1356, allocations: 197.5 kB / 357.2 MB, free: 5.121 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00024/0.1359, allocations: 0.6965 MB / 357.9 MB, free: 4.398 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.186e-05/0.1359, allocations: 12.16 kB / 358 MB, free: 4.387 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.548e-05/0.1359, allocations: 15.38 kB / 358 MB, free: 4.371 MB / 286.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1359, allocations: 4 kB / 358 MB, free: 4.367 MB / 286.1 MB Notification: Performance of Templates: time 0.002688/0.1386, allocations: 0.6451 MB / 358.6 MB, free: 3.73 MB / 286.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches