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.001155/0.001155, allocations: 113.6 kB / 17.69 MB, free: 5.309 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.001041/0.001041, allocations: 192 kB / 18.63 MB, free: 4.375 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.505/1.505, allocations: 222.9 MB / 242.3 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001652/0.001653, allocations: 52.98 kB / 302.1 MB, free: 5.191 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1456/0.1473, allocations: 49.44 MB / 351.5 MB, free: 3.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.004108/0.1514, allocations: 1.584 MB / 353.1 MB, free: 2.125 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001009/0.1525, allocations: 448.4 kB / 353.5 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001485/0.1527, allocations: 4 kB / 353.5 MB, free: 1.68 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001552/0.1529, allocations: 7.875 kB / 353.5 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002698/0.1532, allocations: 11.86 kB / 353.6 MB, free: 1.66 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003413/0.1535, allocations: 43.45 kB / 353.6 MB, free: 1.621 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002037/0.1537, allocations: 59.84 kB / 353.7 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001888/0.1539, allocations: 19.98 kB / 353.7 MB, free: 1.543 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001857/0.1541, allocations: 39.78 kB / 353.7 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.303e-05/0.1542, allocations: 23.86 kB / 353.7 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.773e-05/0.1543, allocations: 7.984 kB / 353.7 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.957e-05/0.1543, allocations: 8 kB / 353.8 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.367e-05/0.1544, allocations: 11.98 kB / 353.8 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.11e-05/0.1544, allocations: 35.8 kB / 353.8 MB, free: 1.418 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001932/0.1546, allocations: 55.78 kB / 353.9 MB, free: 1.363 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.1547, allocations: 4 kB / 353.9 MB, free: 1.359 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.1547, allocations: 0 / 353.9 MB, free: 1.359 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.442e-05/0.1547, allocations: 0 / 353.9 MB, free: 1.359 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.0008354/0.1555, allocations: 379.2 kB / 354.2 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.423e-05/0.1556, allocations: 11.97 kB / 354.2 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.879e-05/0.1557, allocations: 8.844 kB / 354.2 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004094/0.1561, allocations: 200.1 kB / 354.4 MB, free: 0.6875 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.0001519/0.1562, allocations: 34.27 kB / 354.5 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.27e-05/0.1563, allocations: 384 / 354.5 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004978/0.1568, allocations: 169 kB / 354.6 MB, free: 476 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.1568, allocations: 0 / 354.6 MB, free: 476 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.53e-05/0.1568, allocations: 8 kB / 354.7 MB, free: 468 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.1568, allocations: 0 / 354.7 MB, free: 468 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001443/0.157, allocations: 39.91 kB / 354.7 MB, free: 428 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002647/0.1573, allocations: 178.5 kB / 354.9 MB, free: 196 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000384/0.1577, allocations: 174.3 kB / 355 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001082/0.1578, allocations: 41.7 kB / 355.1 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.555e-05/0.1578, allocations: 4 kB / 355.1 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.088e-05/0.1579, allocations: 34.5 kB / 355.1 MB, free: 15.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.533e-06/0.1579, allocations: 0 / 355.1 MB, free: 15.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003974/0.1583, allocations: 117.6 kB / 355.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.52e-05/0.1584, allocations: 89.14 kB / 355.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001245/0.1585, allocations: 117.8 kB / 355.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.325e-05/0.1585, allocations: 29.7 kB / 355.5 MB, free: 15.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.105e-05/0.1586, allocations: 92.12 kB / 355.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.131e-05/0.1586, allocations: 3.906 kB / 355.6 MB, free: 15.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.948e-05/0.1587, allocations: 29.7 kB / 355.6 MB, free: 15.37 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.1589, allocations: 314.8 kB / 355.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.563e-05/0.1589, allocations: 19.92 kB / 355.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.602e-05/0.159, allocations: 58 kB / 356 MB, free: 14.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001505/0.1592, allocations: 77.94 kB / 356 MB, free: 14.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.1592, allocations: 3.938 kB / 356 MB, free: 14.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002296/0.1594, allocations: 109.4 kB / 356.2 MB, free: 14.74 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.1595, allocations: 7.984 kB / 356.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.435e-06/0.1595, allocations: 4.25 kB / 356.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/0.1595, allocations: 0 / 356.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.043e-05/0.1596, allocations: 16 kB / 356.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.282e-05/0.1596, allocations: 7.938 kB / 356.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.022e-05/0.1597, allocations: 15.92 kB / 356.2 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.128e-05/0.1597, allocations: 4 kB / 356.2 MB, free: 14.69 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.0001296/0.1598, allocations: 121.9 kB / 356.3 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001308/0.16, allocations: 73.53 kB / 356.4 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.292e-05/0.16, allocations: 16.36 kB / 356.4 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.16, allocations: 0 / 356.4 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.16, allocations: 0 / 356.4 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.1601, allocations: 0 / 356.4 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001732/0.1602, allocations: 173.5 kB / 356.6 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1602, allocations: 8.125 kB / 356.6 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.161e-05/0.1603, allocations: 15.92 kB / 356.6 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.1604, allocations: 3.938 kB / 356.6 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.521e-05/0.1604, allocations: 8 kB / 356.6 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.1604, allocations: 4 kB / 356.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.1604, allocations: 0 / 356.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002431/0.1606, allocations: 117.9 kB / 356.7 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.122e-05/0.1607, allocations: 96.94 kB / 356.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.497e-05/0.1608, allocations: 0 / 356.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.212e-05/0.1608, allocations: 12 kB / 356.8 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.87e-05/0.1609, allocations: 7.922 kB / 356.9 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-05/0.1609, allocations: 4 kB / 356.9 MB, free: 13.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.64e-05/0.161, allocations: 95.27 kB / 356.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.161, allocations: 0 / 356.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000239/0.1613, allocations: 12 kB / 357 MB, free: 13.82 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.0001601/0.1614, allocations: 95.78 kB / 357.1 MB, free: 13.72 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002257/0.1617, allocations: 64.03 kB / 357.1 MB, free: 13.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1617, allocations: 3.938 kB / 357.1 MB, free: 13.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.156e-05/0.1617, allocations: 7.984 kB / 357.1 MB, free: 13.65 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007713/0.1625, allocations: 0.7144 MB / 357.8 MB, free: 12.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005282/0.163, allocations: 189.7 kB / 358 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003621/0.1634, allocations: 0.6924 MB / 358.7 MB, free: 11.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.228e-05/0.1635, allocations: 0 / 358.7 MB, free: 11.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.23e-05/0.1635, allocations: 15.42 kB / 358.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1635, allocations: 0 / 358.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of Templates: time 0.003606/0.1671, allocations: 0.7639 MB / 359.5 MB, free: 11.2 MB / 302.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 -s cvode -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/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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches