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.0009899/0.0009898, allocations: 94.7 kB / 17.35 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001281/0.001281, allocations: 200.3 kB / 18.28 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.601/1.601, allocations: 227.7 MB / 246.8 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000385/0.000385, allocations: 8 kB / 307.7 MB, free: 0.8125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1357/0.1361, allocations: 51.52 MB / 359.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002402/0.1385, allocations: 1.316 MB / 360.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00118/0.1397, allocations: 0.491 MB / 361.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001144/0.1399, allocations: 0 / 361.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.826e-05/0.1399, allocations: 7.938 kB / 361.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002381/0.1402, allocations: 15.92 kB / 361.1 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003371/0.1405, allocations: 39.89 kB / 361.1 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002482/0.1408, allocations: 63.84 kB / 361.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001395/0.141, allocations: 7.984 kB / 361.2 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002548/0.1412, allocations: 47.83 kB / 361.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.019e-05/0.1413, allocations: 23.86 kB / 361.3 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.248e-05/0.1413, allocations: 4 kB / 361.3 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.5e-05/0.1414, allocations: 8 kB / 361.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.985e-05/0.1414, allocations: 19.91 kB / 361.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.449e-05/0.1415, allocations: 49.5 kB / 361.3 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002352/0.1417, allocations: 63.77 kB / 361.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1418, allocations: 0 / 361.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1418, allocations: 0 / 361.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.766e-06/0.1418, allocations: 0 / 361.4 MB, free: 11.11 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.0006711/0.1425, allocations: 363.6 kB / 361.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.1425, allocations: 12.03 kB / 361.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002711/0.1428, allocations: 28.83 kB / 361.8 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002229/0.143, allocations: 192.1 kB / 362 MB, free: 10.45 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.0001615/0.1432, allocations: 38.25 kB / 362 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.089e-05/0.1432, allocations: 4.375 kB / 362 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004162/0.1437, allocations: 180.9 kB / 362.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.888e-06/0.1437, allocations: 0 / 362.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.478e-05/0.1437, allocations: 0 / 362.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.1437, allocations: 0 / 362.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001458/0.1439, allocations: 35.98 kB / 362.2 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002107/0.1441, allocations: 186.5 kB / 362.4 MB, free: 9.934 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003242/0.1444, allocations: 174.3 kB / 362.6 MB, free: 9.727 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002134/0.1446, allocations: 41.7 kB / 362.6 MB, free: 9.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.329e-05/0.1447, allocations: 4 kB / 362.6 MB, free: 9.676 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.094e-05/0.1447, allocations: 42.44 kB / 362.7 MB, free: 9.625 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.613e-06/0.1447, allocations: 0 / 362.7 MB, free: 9.625 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004116/0.1451, allocations: 113.6 kB / 362.8 MB, free: 9.508 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.432e-05/0.1452, allocations: 93.17 kB / 362.9 MB, free: 9.398 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001164/0.1454, allocations: 132.6 kB / 363 MB, free: 9.262 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.652e-05/0.1454, allocations: 29.7 kB / 363 MB, free: 9.227 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.466e-05/0.1454, allocations: 88.14 kB / 363.1 MB, free: 9.137 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.195e-05/0.1455, allocations: 15.83 kB / 363.1 MB, free: 9.121 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.223e-05/0.1455, allocations: 13.72 kB / 363.2 MB, free: 9.102 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002247/0.1457, allocations: 318.8 kB / 363.5 MB, free: 8.781 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.815e-05/0.1458, allocations: 16 kB / 363.5 MB, free: 8.766 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.993e-05/0.1459, allocations: 58 kB / 363.5 MB, free: 8.688 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001483/0.1461, allocations: 93.86 kB / 363.6 MB, free: 8.574 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1461, allocations: 0 / 363.6 MB, free: 8.574 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000284/0.1464, allocations: 109.4 kB / 363.7 MB, free: 8.461 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.1464, allocations: 4 kB / 363.7 MB, free: 8.457 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.1464, allocations: 0 / 363.7 MB, free: 8.457 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.1464, allocations: 4 kB / 363.7 MB, free: 8.453 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.004e-05/0.1465, allocations: 19.92 kB / 363.8 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.1465, allocations: 4 kB / 363.8 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.371e-05/0.1466, allocations: 4.219 kB / 363.8 MB, free: 8.426 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.157e-06/0.1466, allocations: 8 kB / 363.8 MB, free: 8.418 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.0001825/0.1468, allocations: 121.8 kB / 363.9 MB, free: 8.289 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001353/0.1469, allocations: 81.64 kB / 364 MB, free: 8.203 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.864e-05/0.147, allocations: 12.38 kB / 364 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.147, allocations: 3.938 kB / 364 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.147, allocations: 0 / 364 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.147, allocations: 4 kB / 364 MB, free: 8.184 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001414/0.1472, allocations: 169.6 kB / 364.2 MB, free: 7.969 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.165e-06/0.1472, allocations: 0 / 364.2 MB, free: 7.969 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.904e-05/0.1473, allocations: 19.92 kB / 364.2 MB, free: 7.949 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.1473, allocations: 4 kB / 364.2 MB, free: 7.945 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/0.1473, allocations: 3.984 kB / 364.2 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.1473, allocations: 0 / 364.2 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1473, allocations: 0 / 364.2 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002493/0.1476, allocations: 129.8 kB / 364.3 MB, free: 7.793 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.105e-05/0.1477, allocations: 92.94 kB / 364.4 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.589e-05/0.1477, allocations: 8.375 kB / 364.4 MB, free: 7.676 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.428e-05/0.1478, allocations: 7.984 kB / 364.4 MB, free: 7.668 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.269e-05/0.1478, allocations: 3.938 kB / 364.4 MB, free: 7.664 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.416e-05/0.1478, allocations: 8 kB / 364.4 MB, free: 7.656 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.2e-05/0.1479, allocations: 103.2 kB / 364.5 MB, free: 7.555 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1479, allocations: 0 / 364.5 MB, free: 7.555 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002141/0.1481, allocations: 12 kB / 364.5 MB, free: 7.543 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.0001272/0.1483, allocations: 103.2 kB / 364.6 MB, free: 7.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000206/0.1485, allocations: 55.92 kB / 364.7 MB, free: 7.375 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1485, allocations: 7.938 kB / 364.7 MB, free: 7.367 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.266e-05/0.1485, allocations: 8.422 kB / 364.7 MB, free: 7.359 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000709/0.1493, allocations: 0.7248 MB / 365.4 MB, free: 6.613 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005159/0.1498, allocations: 213.4 kB / 365.7 MB, free: 6.375 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004767/0.1503, allocations: 0.6937 MB / 366.3 MB, free: 5.656 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.081e-05/0.1503, allocations: 0 / 366.3 MB, free: 5.656 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.691e-05/0.1504, allocations: 15.44 kB / 366.4 MB, free: 5.641 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1504, allocations: 0 / 366.4 MB, free: 5.641 MB / 302.1 MB Notification: Performance of Templates: time 0.003379/0.1537, allocations: 0.6929 MB / 367.1 MB, free: 4.953 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