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.001391/0.001391, allocations: 101.6 kB / 17.59 MB, free: 5.426 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.001376/0.001376, allocations: 191.6 kB / 18.51 MB, free: 4.504 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.436/1.436, allocations: 222.9 MB / 242.2 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 51.14 kB / 301.3 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1219, allocations: 49.44 MB / 350.7 MB, free: 4.441 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003621/0.1256, allocations: 1.577 MB / 352.3 MB, free: 2.844 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009619/0.1266, allocations: 456.3 kB / 352.8 MB, free: 2.395 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001181/0.1267, allocations: 0 / 352.8 MB, free: 2.395 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.054e-05/0.1268, allocations: 3.938 kB / 352.8 MB, free: 2.391 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002176/0.127, allocations: 15.88 kB / 352.8 MB, free: 2.375 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003032/0.1273, allocations: 51.86 kB / 352.8 MB, free: 2.324 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001494/0.1275, allocations: 63.8 kB / 352.9 MB, free: 2.262 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001504/0.1276, allocations: 11.98 kB / 352.9 MB, free: 2.25 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001573/0.1278, allocations: 23.92 kB / 352.9 MB, free: 2.227 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.8e-05/0.1279, allocations: 43.77 kB / 353 MB, free: 2.184 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.802e-05/0.1279, allocations: 4 kB / 353 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.78e-05/0.128, allocations: 4 kB / 353 MB, free: 2.176 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.925e-05/0.128, allocations: 19.92 kB / 353 MB, free: 2.156 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.009e-05/0.1281, allocations: 27.81 kB / 353 MB, free: 2.129 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001662/0.1283, allocations: 63.78 kB / 353.1 MB, free: 2.066 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.1283, allocations: 0 / 353.1 MB, free: 2.066 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1283, allocations: 0 / 353.1 MB, free: 2.066 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.277e-05/0.1283, allocations: 3.984 kB / 353.1 MB, free: 2.062 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.0007482/0.1291, allocations: 371.5 kB / 353.4 MB, free: 1.652 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.512e-05/0.1291, allocations: 8.031 kB / 353.5 MB, free: 1.645 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.76e-05/0.1292, allocations: 8.844 kB / 353.5 MB, free: 1.637 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002924/0.1295, allocations: 195.2 kB / 353.7 MB, free: 1.41 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.0002306/0.1297, allocations: 42.25 kB / 353.7 MB, free: 1.363 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.374e-05/0.1298, allocations: 4.375 kB / 353.7 MB, free: 1.359 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004566/0.1302, allocations: 165 kB / 353.9 MB, free: 1.18 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.1302, allocations: 0 / 353.9 MB, free: 1.18 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.633e-05/0.1303, allocations: 8 kB / 353.9 MB, free: 1.172 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.1303, allocations: 0 / 353.9 MB, free: 1.172 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001434/0.1304, allocations: 31.98 kB / 353.9 MB, free: 1.141 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002671/0.1307, allocations: 178.5 kB / 354.1 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003484/0.1311, allocations: 166.4 kB / 354.2 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001243/0.1312, allocations: 49.62 kB / 354.3 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.909e-05/0.1312, allocations: 4 kB / 354.3 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/0.1313, allocations: 46.38 kB / 354.3 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.303e-06/0.1313, allocations: 0 / 354.3 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004422/0.1317, allocations: 113.6 kB / 354.4 MB, free: 496 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/0.1319, allocations: 89.14 kB / 354.5 MB, free: 388 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000139/0.132, allocations: 121.8 kB / 354.7 MB, free: 256 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.923e-05/0.132, allocations: 25.7 kB / 354.7 MB, free: 224 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.444e-05/0.1321, allocations: 92.14 kB / 354.8 MB, free: 128 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.955e-05/0.1321, allocations: 3.906 kB / 354.8 MB, free: 124 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.933e-05/0.1322, allocations: 25.7 kB / 354.8 MB, free: 92 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.1323, allocations: 318.8 kB / 355.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.726e-05/0.1324, allocations: 20 kB / 355.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.552e-05/0.1325, allocations: 57.94 kB / 355.2 MB, free: 15.67 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001447/0.1326, allocations: 81.92 kB / 355.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.1327, allocations: 0 / 355.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002016/0.1329, allocations: 105.5 kB / 355.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.1329, allocations: 4 kB / 355.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.1329, allocations: 4 kB / 355.4 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.013e-05/0.1329, allocations: 0 / 355.4 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.403e-05/0.133, allocations: 19.92 kB / 355.4 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.133, allocations: 4 kB / 355.4 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.332e-05/0.1331, allocations: 7.938 kB / 355.4 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.987e-06/0.1331, allocations: 4 kB / 355.4 MB, free: 15.42 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.0001326/0.1333, allocations: 130.2 kB / 355.5 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001452/0.1334, allocations: 81.52 kB / 355.6 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.878e-05/0.1335, allocations: 12.38 kB / 355.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.586e-06/0.1335, allocations: 0 / 355.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.1335, allocations: 0 / 355.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.1335, allocations: 0 / 355.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001745/0.1337, allocations: 177.5 kB / 355.8 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.1337, allocations: 0 / 355.8 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.323e-05/0.1338, allocations: 20.05 kB / 355.8 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.1338, allocations: 0 / 355.8 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.572e-05/0.1338, allocations: 11.92 kB / 355.8 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.1338, allocations: 4 kB / 355.8 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1338, allocations: 0 / 355.8 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002596/0.1341, allocations: 121.9 kB / 356 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.104e-05/0.1342, allocations: 92.94 kB / 356 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.952e-05/0.1342, allocations: 4 kB / 356 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.011e-05/0.1343, allocations: 7.984 kB / 356.1 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.917e-05/0.1344, allocations: 8 kB / 356.1 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.407e-05/0.1344, allocations: 0 / 356.1 MB, free: 14.65 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.358e-05/0.1345, allocations: 99.27 kB / 356.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1345, allocations: 0 / 356.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002291/0.1347, allocations: 8 kB / 356.2 MB, free: 14.55 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.0001814/0.1349, allocations: 107.7 kB / 356.3 MB, free: 14.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002772/0.1352, allocations: 68.09 kB / 356.3 MB, free: 14.37 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1352, allocations: 0 / 356.3 MB, free: 14.37 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.342e-05/0.1353, allocations: 7.984 kB / 356.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008214/0.1361, allocations: 0.7168 MB / 357.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005849/0.1367, allocations: 209.3 kB / 357.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003934/0.1371, allocations: 0.6963 MB / 358 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.172e-05/0.1372, allocations: 15.42 kB / 358 MB, free: 12.64 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1372, allocations: 0 / 358 MB, free: 12.64 MB / 302.1 MB Notification: Performance of Templates: time 0.003592/0.1408, allocations: 0.9561 MB / 358.9 MB, free: 11.69 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/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