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.0008658/0.0008655, allocations: 98.34 kB / 17 MB, free: 6.031 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008608/0.0008609, allocations: 198 kB / 17.91 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.564/1.564, allocations: 227.7 MB / 246.4 MB, free: 11.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002721/0.0002724, allocations: 4 kB / 307.1 MB, free: 1.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1336, allocations: 51.53 MB / 358.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002669/0.1363, allocations: 1.301 MB / 359.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00121/0.1376, allocations: 499.1 kB / 360.4 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001143/0.1377, allocations: 0 / 360.4 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.668e-05/0.1378, allocations: 3.938 kB / 360.4 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002185/0.138, allocations: 11.92 kB / 360.4 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000325/0.1383, allocations: 43.94 kB / 360.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001591/0.1385, allocations: 55.78 kB / 360.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000124/0.1386, allocations: 11.98 kB / 360.5 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002197/0.1389, allocations: 35.84 kB / 360.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.558e-05/0.139, allocations: 35.84 kB / 360.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.987e-05/0.139, allocations: 0 / 360.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.866e-05/0.139, allocations: 4 kB / 360.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.406e-05/0.1391, allocations: 15.97 kB / 360.6 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.94e-05/0.1391, allocations: 33.64 kB / 360.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001469/0.1393, allocations: 47.86 kB / 360.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.585e-06/0.1393, allocations: 0 / 360.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.986e-06/0.1393, allocations: 0 / 360.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.1393, allocations: 0 / 360.7 MB, free: 11.55 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.0006333/0.14, allocations: 375.4 kB / 361.1 MB, free: 11.13 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.292e-05/0.14, allocations: 8.031 kB / 361.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002719/0.1403, allocations: 23.89 kB / 361.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002643/0.1406, allocations: 186.9 kB / 361.3 MB, free: 10.88 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.0001687/0.1408, allocations: 37.62 kB / 361.3 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.156e-05/0.1408, allocations: 8 kB / 361.3 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004579/0.1412, allocations: 168.9 kB / 361.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.1413, allocations: 0 / 361.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.791e-05/0.1413, allocations: 4 kB / 361.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.1413, allocations: 0 / 361.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001337/0.1414, allocations: 39.91 kB / 361.5 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002698/0.1417, allocations: 182.5 kB / 361.7 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003701/0.1421, allocations: 178.3 kB / 361.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00011/0.1422, allocations: 41.7 kB / 361.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.299e-05/0.1423, allocations: 4 kB / 361.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.559e-05/0.1423, allocations: 38.52 kB / 362 MB, free: 10.06 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.823e-06/0.1423, allocations: 0 / 362 MB, free: 10.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004432/0.1428, allocations: 117.6 kB / 362.1 MB, free: 9.941 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001094/0.1429, allocations: 93.09 kB / 362.2 MB, free: 9.832 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001488/0.1431, allocations: 128.1 kB / 362.3 MB, free: 9.699 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.362e-05/0.1431, allocations: 29.64 kB / 362.3 MB, free: 9.664 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.437e-05/0.1432, allocations: 96.12 kB / 362.4 MB, free: 9.566 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.143e-05/0.1432, allocations: 0 / 362.4 MB, free: 9.566 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.689e-06/0.1432, allocations: 4 kB / 362.4 MB, free: 9.562 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001878/0.1434, allocations: 318.8 kB / 362.7 MB, free: 9.242 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.169e-05/0.1435, allocations: 20 kB / 362.8 MB, free: 9.223 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.478e-05/0.1436, allocations: 61.92 kB / 362.8 MB, free: 9.141 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.774e-05/0.1437, allocations: 28 kB / 362.9 MB, free: 9.113 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1437, allocations: 0 / 362.9 MB, free: 9.113 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002063/0.1439, allocations: 101.6 kB / 363 MB, free: 9.008 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.144, allocations: 8.031 kB / 363 MB, free: 9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.46e-05/0.144, allocations: 7.953 kB / 363 MB, free: 8.992 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.144, allocations: 3.938 kB / 363 MB, free: 8.988 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.065e-05/0.1441, allocations: 15.98 kB / 363 MB, free: 8.973 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.1441, allocations: 4 kB / 363 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.16e-05/0.1442, allocations: 11.89 kB / 363 MB, free: 8.957 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.206e-05/0.1442, allocations: 8 kB / 363 MB, free: 8.949 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 (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 0.0001469/0.1444, allocations: 117.8 kB / 363.1 MB, free: 8.824 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001333/0.1445, allocations: 73.59 kB / 363.2 MB, free: 8.746 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.012e-05/0.1446, allocations: 16.36 kB / 363.2 MB, free: 8.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.1446, allocations: 3.953 kB / 363.2 MB, free: 8.727 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/0.1446, allocations: 4 kB / 363.2 MB, free: 8.723 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.1446, allocations: 0 / 363.2 MB, free: 8.723 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001931/0.1448, allocations: 169.6 kB / 363.4 MB, free: 8.508 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.1448, allocations: 192 / 363.4 MB, free: 8.508 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.904e-05/0.1449, allocations: 15.98 kB / 363.4 MB, free: 8.492 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.1449, allocations: 3.938 kB / 363.4 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.718e-05/0.1449, allocations: 4 kB / 363.4 MB, free: 8.484 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.145, allocations: 4 kB / 363.4 MB, free: 8.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.145, allocations: 7.953 kB / 363.4 MB, free: 8.473 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00027/0.1452, allocations: 130.1 kB / 363.6 MB, free: 8.324 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.395e-05/0.1453, allocations: 96.94 kB / 363.6 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.133e-05/0.1454, allocations: 8.062 kB / 363.7 MB, free: 8.203 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.198e-05/0.1454, allocations: 8 kB / 363.7 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.143e-05/0.1455, allocations: 3.953 kB / 363.7 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.575e-05/0.1455, allocations: 11.98 kB / 363.7 MB, free: 8.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.281e-05/0.1456, allocations: 99.2 kB / 363.8 MB, free: 8.082 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1456, allocations: 0 / 363.8 MB, free: 8.082 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002386/0.1459, allocations: 12 kB / 363.8 MB, free: 8.07 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 (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.0001529/0.146, allocations: 95.25 kB / 363.9 MB, free: 7.965 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002295/0.1463, allocations: 67.84 kB / 363.9 MB, free: 7.898 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.1463, allocations: 0 / 363.9 MB, free: 7.898 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.126e-05/0.1463, allocations: 8 kB / 364 MB, free: 7.891 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008962/0.1472, allocations: 0.7186 MB / 364.7 MB, free: 7.148 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005558/0.1478, allocations: 189.4 kB / 364.9 MB, free: 6.934 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004603/0.1483, allocations: 0.6976 MB / 365.6 MB, free: 6.211 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.092e-05/0.1483, allocations: 8.172 kB / 365.6 MB, free: 6.203 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.377e-05/0.1484, allocations: 15.38 kB / 365.6 MB, free: 6.188 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1484, allocations: 4 kB / 365.6 MB, free: 6.184 MB / 302.1 MB Notification: Performance of Templates: time 0.003529/0.1519, allocations: 0.6595 MB / 366.2 MB, free: 5.535 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins/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