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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009383/0.0009383, allocations: 84 kB / 21.19 MB, free: 3.395 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009874/0.0009874, allocations: 145.1 kB / 24.54 MB, free: 44 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.035/1.035, allocations: 173.3 MB / 201.1 MB, free: 9.34 MB / 186.7 MB " [Timeout remaining time 179] 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=5011,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=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.014e-06/2.014e-06, allocations: 0 / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.788e-05/3.99e-05, allocations: 2.312 kB / 268 MB, free: 6.422 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002327/0.002367, allocations: 1.627 MB / 269.6 MB, free: 4.781 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006291/0.002996, allocations: 438.8 kB / 270.1 MB, free: 4.348 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.659e-05/0.003062, allocations: 0 / 270.1 MB, free: 4.348 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.181e-05/0.003094, allocations: 7.875 kB / 270.1 MB, free: 4.34 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001742/0.003268, allocations: 27.78 kB / 270.1 MB, free: 4.312 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001831/0.003452, allocations: 31.95 kB / 270.1 MB, free: 4.281 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001054/0.003557, allocations: 63.78 kB / 270.2 MB, free: 4.219 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002661/0.003823, allocations: 11.98 kB / 270.2 MB, free: 4.207 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001361/0.003959, allocations: 51.83 kB / 270.3 MB, free: 4.156 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.338e-05/0.004013, allocations: 23.91 kB / 270.3 MB, free: 4.133 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.358e-05/0.004036, allocations: 8 kB / 270.3 MB, free: 4.125 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.196e-05/0.004048, allocations: 4 kB / 270.3 MB, free: 4.121 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.495e-05/0.004073, allocations: 15.92 kB / 270.3 MB, free: 4.105 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.452e-05/0.004118, allocations: 19.91 kB / 270.3 MB, free: 4.086 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001241/0.004242, allocations: 43.88 kB / 270.4 MB, free: 4.043 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.004244, allocations: 3.938 kB / 270.4 MB, free: 4.039 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.004245, allocations: 0 / 270.4 MB, free: 4.039 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.077e-06/0.004249, allocations: 0 / 270.4 MB, free: 4.039 MB / 250.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.000458/0.004707, allocations: 404.4 kB / 270.8 MB, free: 3.609 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.00475, allocations: 8.922 kB / 270.8 MB, free: 3.602 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.504e-05/0.004805, allocations: 20.88 kB / 270.8 MB, free: 3.582 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001723/0.004978, allocations: 136.4 kB / 270.9 MB, free: 3.422 MB / 250.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 9.615e-05/0.005074, allocations: 38.25 kB / 271 MB, free: 3.379 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.614e-05/0.00509, allocations: 4.375 kB / 271 MB, free: 3.375 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000292/0.005382, allocations: 169.5 kB / 271.1 MB, free: 3.184 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.00539, allocations: 8.125 kB / 271.1 MB, free: 3.176 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.005402, allocations: 4.125 kB / 271.1 MB, free: 3.172 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.005409, allocations: 0 / 271.1 MB, free: 3.172 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.943e-05/0.005459, allocations: 15.98 kB / 271.2 MB, free: 3.156 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001276/0.005586, allocations: 132.3 kB / 271.3 MB, free: 2.988 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002003/0.005787, allocations: 90.22 kB / 271.4 MB, free: 2.875 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.538e-05/0.005832, allocations: 31.38 kB / 271.4 MB, free: 2.836 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.161e-05/0.005854, allocations: 0 / 271.4 MB, free: 2.836 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.39e-05/0.005877, allocations: 41.38 kB / 271.5 MB, free: 2.785 MB / 250.7 MB Notification: Performance of pre-optimization done (n=7): time 1.172e-06/0.005879, allocations: 4 kB / 271.5 MB, free: 2.781 MB / 250.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002082/0.006087, allocations: 89.56 kB / 271.5 MB, free: 2.688 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.765e-05/0.006144, allocations: 89.05 kB / 271.6 MB, free: 2.582 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.895e-05/0.006233, allocations: 181.8 kB / 271.8 MB, free: 2.387 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.294e-05/0.006246, allocations: 29.7 kB / 271.8 MB, free: 2.352 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.074e-05/0.006287, allocations: 130.9 kB / 272 MB, free: 2.219 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.347e-05/0.006311, allocations: 15.89 kB / 272 MB, free: 2.203 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.932e-05/0.00634, allocations: 19.38 kB / 272 MB, free: 2.176 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.00646, allocations: 0.4923 MB / 272.5 MB, free: 1.672 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.862e-05/0.006478, allocations: 4 kB / 272.5 MB, free: 1.668 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.812e-05/0.006506, allocations: 39.42 kB / 272.5 MB, free: 1.617 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.121e-05/0.006557, allocations: 43 kB / 272.6 MB, free: 1.562 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.00656, allocations: 0 / 272.6 MB, free: 1.562 MB / 250.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.535e-05/0.006645, allocations: 61.58 kB / 272.6 MB, free: 1.496 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.006659, allocations: 4 kB / 272.6 MB, free: 1.492 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-06/0.006664, allocations: 4 kB / 272.6 MB, free: 1.488 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.006681, allocations: 0 / 272.6 MB, free: 1.488 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.301e-05/0.006764, allocations: 12.03 kB / 272.7 MB, free: 1.477 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.006774, allocations: 7.984 kB / 272.7 MB, free: 1.469 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.144e-05/0.006795, allocations: 0 / 272.7 MB, free: 1.469 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-06/0.006801, allocations: 4 kB / 272.7 MB, free: 1.465 MB / 250.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 9.315e-05/0.006895, allocations: 160.6 kB / 272.8 MB, free: 1.297 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.601e-05/0.006991, allocations: 69.58 kB / 272.9 MB, free: 1.223 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.587e-05/0.007036, allocations: 12.42 kB / 272.9 MB, free: 1.207 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.007041, allocations: 4 kB / 272.9 MB, free: 1.203 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.007048, allocations: 3.938 kB / 272.9 MB, free: 1.199 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.007052, allocations: 0 / 272.9 MB, free: 1.199 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.817e-05/0.00714, allocations: 124.6 kB / 273 MB, free: 1.043 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.007141, allocations: 0 / 273 MB, free: 1.043 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.815e-05/0.00719, allocations: 15.98 kB / 273.1 MB, free: 1.027 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.007191, allocations: 0 / 273.1 MB, free: 1.027 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.073e-05/0.007202, allocations: 4 kB / 273.1 MB, free: 1.023 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.007203, allocations: 0 / 273.1 MB, free: 1.023 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.007205, allocations: 3.984 kB / 273.1 MB, free: 1.02 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001291/0.007335, allocations: 131.9 kB / 273.2 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.235e-05/0.007367, allocations: 15.88 kB / 273.2 MB, free: 0.8477 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.117e-05/0.007388, allocations: 7.938 kB / 273.2 MB, free: 0.8398 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.133e-05/0.007419, allocations: 4.25 kB / 273.2 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.675e-05/0.007456, allocations: 11.92 kB / 273.2 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.078e-05/0.007467, allocations: 8 kB / 273.2 MB, free: 0.8164 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.997e-05/0.007517, allocations: 138 kB / 273.4 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.007517, allocations: 0 / 273.4 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000132/0.007649, allocations: 16 kB / 273.4 MB, free: 0.668 MB / 250.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.796e-05/0.007747, allocations: 95.25 kB / 273.5 MB, free: 0.5664 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001134/0.00786, allocations: 35.61 kB / 273.5 MB, free: 0.5273 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.007862, allocations: 0 / 273.5 MB, free: 0.5273 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.527e-05/0.007877, allocations: 15.86 kB / 273.5 MB, free: 0.5078 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006323/0.00851, allocations: 1.065 MB / 274.6 MB, free: 15.41 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005654/0.009075, allocations: 183.3 kB / 274.8 MB, free: 15.2 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.065e-05/0.009116, allocations: 67.34 kB / 274.8 MB, free: 15.12 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.037e-05/0.009136, allocations: 0 / 274.8 MB, free: 15.12 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.451e-05/0.009171, allocations: 12.5 kB / 274.8 MB, free: 15.1 MB / 266.7 MB Notification: Performance of SimCode: time 1.092e-06/0.009172, allocations: 4.125 kB / 274.9 MB, free: 15.1 MB / 266.7 MB Notification: Performance of Templates: time 0.002707/0.01188, allocations: 0.797 MB / 275.7 MB, free: 14.31 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9894973961636424]