Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001767/0.001767, allocations: 116.5 kB / 18.45 MB, free: 4.562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002248/0.002248, allocations: 215.2 kB / 21.42 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.613/1.613, allocations: 230.6 MB / 254.8 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001579/0.001579, allocations: 47.94 kB / 374.2 MB, free: 9.699 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1339, allocations: 53.33 MB / 427.5 MB, free: 4.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.00331/0.1373, allocations: 1.603 MB / 429.1 MB, free: 2.656 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001098/0.1384, allocations: 0.5182 MB / 429.6 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.178e-05/0.1384, allocations: 0 / 429.6 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.579e-05/0.1385, allocations: 7.922 kB / 429.6 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001721/0.1386, allocations: 11.88 kB / 429.6 MB, free: 2.113 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002973/0.1389, allocations: 55.86 kB / 429.7 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001419/0.1391, allocations: 67.78 kB / 429.8 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.1392, allocations: 15.92 kB / 429.8 MB, free: 1.977 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001766/0.1394, allocations: 35.91 kB / 429.8 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.825e-05/0.1394, allocations: 35.78 kB / 429.8 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.764e-05/0.1395, allocations: 4 kB / 429.8 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.029e-05/0.1395, allocations: 12 kB / 429.9 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.673e-05/0.1395, allocations: 15.97 kB / 429.9 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.626e-05/0.1396, allocations: 23.81 kB / 429.9 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001731/0.1398, allocations: 75.64 kB / 430 MB, free: 1.777 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.1398, allocations: 4 kB / 430 MB, free: 1.773 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1398, allocations: 0 / 430 MB, free: 1.773 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.1398, allocations: 3.938 kB / 430 MB, free: 1.77 MB / 350.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.0006683/0.1404, allocations: 383.1 kB / 430.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.1405, allocations: 8.031 kB / 430.4 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000235/0.1407, allocations: 20.88 kB / 430.4 MB, free: 1.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003061/0.141, allocations: 194.5 kB / 430.6 MB, free: 1.094 MB / 350.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.0001079/0.1411, allocations: 34.27 kB / 430.6 MB, free: 1.055 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.358e-05/0.1412, allocations: 4.375 kB / 430.6 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004325/0.1416, allocations: 177 kB / 430.8 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.1416, allocations: 0 / 430.8 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.284e-05/0.1416, allocations: 0 / 430.8 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.347e-05/0.1416, allocations: 7.984 kB / 430.8 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001334/0.1418, allocations: 31.97 kB / 430.8 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002264/0.142, allocations: 182.5 kB / 431 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003389/0.1423, allocations: 166.4 kB / 431.2 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001037/0.1424, allocations: 37.7 kB / 431.2 MB, free: 356 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.998e-05/0.1424, allocations: 0 / 431.2 MB, free: 356 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.887e-05/0.1425, allocations: 46.42 kB / 431.2 MB, free: 300 kB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.193e-06/0.1425, allocations: 0 / 431.2 MB, free: 300 kB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.000373/0.1429, allocations: 109.6 kB / 431.3 MB, free: 184 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.6e-05/0.1429, allocations: 89.05 kB / 431.4 MB, free: 76 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001564/0.1431, allocations: 125.8 kB / 431.6 MB, free: 15.94 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.305e-05/0.1431, allocations: 29.7 kB / 431.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.993e-05/0.1432, allocations: 88.27 kB / 431.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.911e-05/0.1432, allocations: 11.95 kB / 431.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.514e-05/0.1433, allocations: 21.7 kB / 431.7 MB, free: 15.78 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001719/0.1434, allocations: 318.8 kB / 432 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.517e-05/0.1435, allocations: 15.98 kB / 432 MB, free: 15.44 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.603e-05/0.1436, allocations: 61.94 kB / 432.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000147/0.1437, allocations: 77.88 kB / 432.2 MB, free: 15.26 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.1437, allocations: 7.938 kB / 432.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001911/0.1439, allocations: 101.4 kB / 432.3 MB, free: 15.15 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.1439, allocations: 8 kB / 432.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.1439, allocations: 0 / 432.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.144, allocations: 4 kB / 432.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.717e-05/0.144, allocations: 20.16 kB / 432.3 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.1441, allocations: 7.984 kB / 432.3 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.852e-05/0.1441, allocations: 7.938 kB / 432.3 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.688e-06/0.1441, allocations: 4.25 kB / 432.3 MB, free: 15.1 MB / 366.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.000116/0.1442, allocations: 117.8 kB / 432.4 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001408/0.1444, allocations: 81.52 kB / 432.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.111e-05/0.1444, allocations: 12.36 kB / 432.5 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.1444, allocations: 4 kB / 432.5 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.1444, allocations: 0 / 432.5 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.1444, allocations: 4 kB / 432.5 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001639/0.1446, allocations: 173.6 kB / 432.7 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.085e-06/0.1446, allocations: 4 kB / 432.7 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.64e-05/0.1447, allocations: 15.92 kB / 432.7 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.1447, allocations: 0 / 432.7 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.1447, allocations: 0 / 432.7 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.1447, allocations: 3.984 kB / 432.7 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1447, allocations: 4 kB / 432.7 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002574/0.1449, allocations: 121.9 kB / 432.9 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.182e-05/0.145, allocations: 96.98 kB / 433 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.282e-05/0.145, allocations: 4 kB / 433 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.955e-05/0.1451, allocations: 7.984 kB / 433 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.471e-05/0.1451, allocations: 0 / 433 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.08e-05/0.1452, allocations: 4 kB / 433 MB, free: 14.35 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.02e-05/0.1452, allocations: 100.7 kB / 433.1 MB, free: 14.25 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1452, allocations: 0 / 433.1 MB, free: 14.25 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002061/0.1454, allocations: 12 kB / 433.1 MB, free: 14.24 MB / 366.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.0001309/0.1456, allocations: 103.8 kB / 433.2 MB, free: 14.13 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002297/0.1458, allocations: 59.78 kB / 433.2 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1458, allocations: 0 / 433.2 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.222e-05/0.1458, allocations: 11.98 kB / 433.2 MB, free: 14.06 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008025/0.1466, allocations: 0.7289 MB / 434 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004529/0.1471, allocations: 205 kB / 434.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003746/0.1475, allocations: 0.7001 MB / 434.9 MB, free: 12.35 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.577e-05/0.1475, allocations: 7.438 kB / 434.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1475, allocations: 4.062 kB / 434.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of Templates: time 0.002752/0.1503, allocations: 0.9888 MB / 435.9 MB, free: 11.35 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.149899447977077]