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.001417/0.001417, allocations: 108.2 kB / 16.92 MB, free: 6.145 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.001391/0.001391, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.511/1.511, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 51.39 kB / 300.6 MB, free: 5.859 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1415, allocations: 49.45 MB / 350.1 MB, free: 4.402 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.004757/0.1463, allocations: 1.569 MB / 351.6 MB, free: 2.812 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001293/0.1477, allocations: 456.3 kB / 352.1 MB, free: 2.363 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001638/0.1479, allocations: 0 / 352.1 MB, free: 2.363 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.024e-05/0.148, allocations: 7.875 kB / 352.1 MB, free: 2.355 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003071/0.1483, allocations: 15.86 kB / 352.1 MB, free: 2.34 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003608/0.1487, allocations: 45.52 kB / 352.1 MB, free: 2.297 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002251/0.149, allocations: 67.78 kB / 352.2 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001991/0.1492, allocations: 11.98 kB / 352.2 MB, free: 2.219 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001946/0.1494, allocations: 31.91 kB / 352.3 MB, free: 2.188 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001073/0.1495, allocations: 27.86 kB / 352.3 MB, free: 2.16 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.141e-05/0.1495, allocations: 4 kB / 352.3 MB, free: 2.156 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.641e-05/0.1496, allocations: 4 kB / 352.3 MB, free: 2.152 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.846e-05/0.1496, allocations: 23.91 kB / 352.3 MB, free: 2.129 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.751e-05/0.1497, allocations: 31.8 kB / 352.3 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002393/0.15, allocations: 63.78 kB / 352.4 MB, free: 2.035 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.959e-06/0.15, allocations: 0 / 352.4 MB, free: 2.035 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.128e-06/0.15, allocations: 0 / 352.4 MB, free: 2.035 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.153e-05/0.15, allocations: 0 / 352.4 MB, free: 2.035 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.0008495/0.1509, allocations: 375.5 kB / 352.8 MB, free: 1.621 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.179e-05/0.1509, allocations: 8.031 kB / 352.8 MB, free: 1.613 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.461e-05/0.151, allocations: 12.78 kB / 352.8 MB, free: 1.602 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002982/0.1513, allocations: 180.2 kB / 353 MB, free: 1.387 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.0003164/0.1516, allocations: 46.25 kB / 353 MB, free: 1.336 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.922e-05/0.1517, allocations: 4.375 kB / 353 MB, free: 1.332 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005516/0.1522, allocations: 177 kB / 353.2 MB, free: 1.141 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.1523, allocations: 0 / 353.2 MB, free: 1.141 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.851e-05/0.1523, allocations: 0 / 353.2 MB, free: 1.141 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/0.1523, allocations: 4 kB / 353.2 MB, free: 1.137 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001525/0.1525, allocations: 35.97 kB / 353.2 MB, free: 1.102 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000309/0.1528, allocations: 182.5 kB / 353.4 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004708/0.1533, allocations: 166.4 kB / 353.6 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001213/0.1534, allocations: 45.7 kB / 353.6 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.49e-05/0.1535, allocations: 0 / 353.6 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.548e-05/0.1535, allocations: 34.5 kB / 353.6 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 3.286e-06/0.1535, allocations: 7.922 kB / 353.7 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004368/0.154, allocations: 117.4 kB / 353.8 MB, free: 460 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.514e-05/0.1541, allocations: 93.22 kB / 353.9 MB, free: 348 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001315/0.1542, allocations: 125.4 kB / 354 MB, free: 216 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.795e-05/0.1542, allocations: 25.7 kB / 354 MB, free: 184 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.316e-05/0.1543, allocations: 96.12 kB / 354.1 MB, free: 84 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.1e-05/0.1543, allocations: 3.906 kB / 354.1 MB, free: 80 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.046e-05/0.1544, allocations: 25.72 kB / 354.1 MB, free: 48 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.1545, allocations: 318.8 kB / 354.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.706e-05/0.1546, allocations: 23.98 kB / 354.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.837e-05/0.1547, allocations: 58 kB / 354.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001455/0.1548, allocations: 77.88 kB / 354.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1549, allocations: 0 / 354.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001911/0.1551, allocations: 105.6 kB / 354.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.1551, allocations: 4 kB / 354.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.1551, allocations: 4 kB / 354.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.1551, allocations: 0 / 354.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.442e-05/0.1552, allocations: 19.92 kB / 354.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/0.1552, allocations: 4 kB / 354.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.545e-05/0.1553, allocations: 7.938 kB / 354.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.22e-05/0.1553, allocations: 8 kB / 354.7 MB, free: 15.37 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.0001073/0.1554, allocations: 117.8 kB / 354.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001576/0.1556, allocations: 81.5 kB / 354.9 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.414e-05/0.1557, allocations: 12.38 kB / 355 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.1557, allocations: 0 / 355 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.125e-05/0.1557, allocations: 3.984 kB / 355 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.1557, allocations: 4 kB / 355 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001515/0.1559, allocations: 173.5 kB / 355.1 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.1559, allocations: 0 / 355.1 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.83e-05/0.156, allocations: 16.23 kB / 355.1 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.156, allocations: 3.938 kB / 355.2 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.151e-05/0.156, allocations: 12 kB / 355.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.156, allocations: 4 kB / 355.2 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.156, allocations: 192 / 355.2 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000238/0.1563, allocations: 117.9 kB / 355.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.84e-05/0.1564, allocations: 100.9 kB / 355.4 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.099e-05/0.1564, allocations: 4 kB / 355.4 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.342e-05/0.1565, allocations: 0 / 355.4 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.164e-05/0.1565, allocations: 12 kB / 355.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.655e-05/0.1566, allocations: 3.984 kB / 355.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.713e-05/0.1566, allocations: 95.27 kB / 355.5 MB, free: 14.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1566, allocations: 0 / 355.5 MB, free: 14.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002234/0.1569, allocations: 12 kB / 355.5 MB, free: 14.5 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.0001801/0.1571, allocations: 103.7 kB / 355.6 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002377/0.1573, allocations: 64.28 kB / 355.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.1573, allocations: 0 / 355.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.532e-05/0.1574, allocations: 7.938 kB / 355.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008268/0.1582, allocations: 0.718 MB / 356.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006037/0.1588, allocations: 183.5 kB / 356.6 MB, free: 13.37 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003638/0.1592, allocations: 0.6924 MB / 357.3 MB, free: 12.65 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.361e-05/0.1592, allocations: 4 kB / 357.3 MB, free: 12.65 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.511e-05/0.1593, allocations: 7.438 kB / 357.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of SimCode: time 1.072e-06/0.1593, allocations: 4 kB / 357.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of Templates: time 0.004787/0.1641, allocations: 0.7598 MB / 358 MB, free: 11.88 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 -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","/var/lib/jenkins/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