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.001111/0.001111, allocations: 87.58 kB / 21.19 MB, free: 3.371 MB / 18.57 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.001789/0.001789, allocations: 165 kB / 24.56 MB, free: 4 kB / 18.57 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.097/1.097, allocations: 177.1 MB / 205 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] 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 3.496e-06/3.496e-06, allocations: 4 kB / 273 MB, free: 1.535 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.007e-05/4.356e-05, allocations: 2.312 kB / 273 MB, free: 1.531 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003664/0.003708, allocations: 1.652 MB / 274.6 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00105/0.004758, allocations: 0.5025 MB / 275.1 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001063/0.004864, allocations: 0 / 275.1 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 5.169e-05/0.004916, allocations: 11.86 kB / 275.2 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002403/0.005156, allocations: 15.88 kB / 275.2 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003579/0.005514, allocations: 47.81 kB / 275.2 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001555/0.005669, allocations: 71.77 kB / 275.3 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001312/0.005801, allocations: 15.98 kB / 275.3 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002301/0.006031, allocations: 43.89 kB / 275.3 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.646e-05/0.006107, allocations: 27.91 kB / 275.4 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.81e-05/0.006135, allocations: 4 kB / 275.4 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.198e-05/0.006197, allocations: 8 kB / 275.4 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.589e-05/0.006233, allocations: 19.91 kB / 275.4 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.022e-05/0.006283, allocations: 12 kB / 275.4 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001742/0.006458, allocations: 55.75 kB / 275.5 MB, free: 15.04 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.006462, allocations: 3.984 kB / 275.5 MB, free: 15.04 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.006463, allocations: 0 / 275.5 MB, free: 15.04 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.006469, allocations: 4 kB / 275.5 MB, free: 15.03 MB / 266.7 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.0005645/0.007034, allocations: 412.2 kB / 275.9 MB, free: 14.59 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.007073, allocations: 8.031 kB / 275.9 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00019/0.007263, allocations: 24.88 kB / 275.9 MB, free: 14.56 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000191/0.007454, allocations: 132.5 kB / 276 MB, free: 14.41 MB / 266.7 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.000101/0.007555, allocations: 42.19 kB / 276.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.789e-05/0.007573, allocations: 4.375 kB / 276.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002994/0.007873, allocations: 169.5 kB / 276.3 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.007881, allocations: 192 / 276.3 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.007894, allocations: 4.125 kB / 276.3 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.137e-06/0.007903, allocations: 0 / 276.3 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.571e-05/0.007959, allocations: 23.92 kB / 276.3 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001489/0.008108, allocations: 144.2 kB / 276.4 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002156/0.008324, allocations: 82.3 kB / 276.5 MB, free: 13.85 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.096e-05/0.008374, allocations: 39.3 kB / 276.5 MB, free: 13.8 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.159e-05/0.008396, allocations: 4 kB / 276.5 MB, free: 13.8 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.429e-05/0.00842, allocations: 37.39 kB / 276.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of pre-optimization done (n=7): time 2.905e-06/0.008423, allocations: 3.984 kB / 276.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002012/0.008624, allocations: 89.75 kB / 276.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.161e-05/0.008686, allocations: 89.11 kB / 276.8 MB, free: 13.55 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.008789, allocations: 181.9 kB / 276.9 MB, free: 13.36 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.66e-05/0.008805, allocations: 25.7 kB / 277 MB, free: 13.32 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.475e-05/0.00886, allocations: 138.9 kB / 277.1 MB, free: 13.18 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.478e-05/0.008885, allocations: 7.953 kB / 277.1 MB, free: 13.18 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.233e-05/0.008917, allocations: 19.38 kB / 277.1 MB, free: 13.15 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.009056, allocations: 0.4963 MB / 277.6 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.964e-05/0.009076, allocations: 7.938 kB / 277.6 MB, free: 12.63 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.218e-05/0.009108, allocations: 39.05 kB / 277.7 MB, free: 12.58 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.184e-05/0.00916, allocations: 39 kB / 277.7 MB, free: 12.53 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.009162, allocations: 0 / 277.7 MB, free: 12.53 MB / 266.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.552e-05/0.009248, allocations: 61.58 kB / 277.8 MB, free: 12.46 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.009262, allocations: 4 kB / 277.8 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-06/0.009268, allocations: 8.078 kB / 277.8 MB, free: 12.45 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.252e-05/0.009291, allocations: 4 kB / 277.8 MB, free: 12.45 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.494e-05/0.009356, allocations: 7.938 kB / 277.8 MB, free: 12.44 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.009361, allocations: 3.938 kB / 277.8 MB, free: 12.44 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.226e-05/0.009383, allocations: 4 kB / 277.8 MB, free: 12.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-06/0.009391, allocations: 3.984 kB / 277.8 MB, free: 12.43 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 5 * 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 8.787e-05/0.009479, allocations: 160.6 kB / 278 MB, free: 12.26 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.023e-05/0.009559, allocations: 65.64 kB / 278 MB, free: 12.19 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.162e-05/0.009601, allocations: 12.44 kB / 278 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.009604, allocations: 3.984 kB / 278 MB, free: 12.17 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.009611, allocations: 7.938 kB / 278 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.009616, allocations: 4 kB / 278.1 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.838e-05/0.009704, allocations: 120.6 kB / 278.2 MB, free: 12.01 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.009706, allocations: 0 / 278.2 MB, free: 12.01 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.945e-05/0.009755, allocations: 19.92 kB / 278.2 MB, free: 11.99 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.009757, allocations: 0 / 278.2 MB, free: 11.99 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.009767, allocations: 0 / 278.2 MB, free: 11.99 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.00977, allocations: 4 kB / 278.2 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.009771, allocations: 0 / 278.2 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001263/0.009898, allocations: 124.2 kB / 278.3 MB, free: 11.84 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.184e-05/0.00993, allocations: 15.94 kB / 278.3 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.276e-05/0.009952, allocations: 12 kB / 278.3 MB, free: 11.81 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.957e-05/0.009982, allocations: 4 kB / 278.3 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.124e-05/0.01001, allocations: 7.922 kB / 278.4 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.795e-06/0.01002, allocations: 4 kB / 278.4 MB, free: 11.79 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.39e-05/0.01007, allocations: 142.6 kB / 278.5 MB, free: 11.66 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01007, allocations: 3.938 kB / 278.5 MB, free: 11.65 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001328/0.01021, allocations: 12 kB / 278.5 MB, free: 11.64 MB / 266.7 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 9.19e-05/0.0103, allocations: 95.25 kB / 278.6 MB, free: 11.54 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001074/0.01041, allocations: 43.67 kB / 278.6 MB, free: 11.49 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.01041, allocations: 0 / 278.6 MB, free: 11.49 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.551e-05/0.01042, allocations: 7.688 kB / 278.7 MB, free: 11.48 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005663/0.01099, allocations: 1.069 MB / 279.7 MB, free: 10.38 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005184/0.01151, allocations: 187.3 kB / 279.9 MB, free: 10.17 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.881e-05/0.01155, allocations: 63.34 kB / 280 MB, free: 10.09 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.538e-05/0.01157, allocations: 4.25 kB / 280 MB, free: 10.08 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.459e-05/0.01161, allocations: 12.5 kB / 280 MB, free: 10.07 MB / 266.7 MB Notification: Performance of SimCode: time 9.52e-07/0.01161, allocations: 0 / 280 MB, free: 10.07 MB / 266.7 MB Notification: Performance of Templates: time 0.002776/0.01438, allocations: 0.8017 MB / 280.8 MB, free: 9.273 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.169453836977482]