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.001377/0.001377, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.001007/0.001007, allocations: 145 kB / 24.89 MB, free: 8.789 MB / 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 0.9119/0.9119, allocations: 173.4 MB / 201.5 MB, free: 8.246 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 1.613e-06/1.613e-06, allocations: 0 / 268.5 MB, free: 9.738 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.426e-05/2.587e-05, allocations: 5.266 kB / 268.5 MB, free: 9.734 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.00325/0.003275, allocations: 1.691 MB / 270.2 MB, free: 8.047 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000832/0.004107, allocations: 433.2 kB / 270.6 MB, free: 7.621 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.724e-05/0.004185, allocations: 3.938 kB / 270.6 MB, free: 7.617 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.582e-05/0.004221, allocations: 5.562 kB / 270.7 MB, free: 7.613 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001743/0.004395, allocations: 19.84 kB / 270.7 MB, free: 7.594 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002186/0.004613, allocations: 43.83 kB / 270.7 MB, free: 7.551 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001318/0.004745, allocations: 64.31 kB / 270.8 MB, free: 7.488 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.408e-05/0.004829, allocations: 4 kB / 270.8 MB, free: 7.484 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001706/0.005, allocations: 48.75 kB / 270.8 MB, free: 7.438 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.135e-05/0.005071, allocations: 28.66 kB / 270.9 MB, free: 7.41 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.223e-05/0.005093, allocations: 4 kB / 270.9 MB, free: 7.406 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.233e-05/0.005106, allocations: 4.844 kB / 270.9 MB, free: 7.402 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.668e-05/0.005132, allocations: 15.98 kB / 270.9 MB, free: 7.387 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.123e-05/0.005164, allocations: 15.92 kB / 270.9 MB, free: 7.371 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000122/0.005286, allocations: 57.05 kB / 271 MB, free: 7.316 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.005288, allocations: 4 kB / 271 MB, free: 7.312 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.00529, allocations: 0 / 271 MB, free: 7.312 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.005294, allocations: 1.938 kB / 271 MB, free: 7.312 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.0004104/0.005704, allocations: 276.7 kB / 271.2 MB, free: 7.02 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.005741, allocations: 8.031 kB / 271.2 MB, free: 7.012 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.153e-05/0.005782, allocations: 4.938 kB / 271.2 MB, free: 7.008 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001849/0.005967, allocations: 130.5 kB / 271.4 MB, free: 6.855 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.154e-05/0.006059, allocations: 42.25 kB / 271.4 MB, free: 6.809 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.444e-05/0.006073, allocations: 4.375 kB / 271.4 MB, free: 6.805 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002799/0.006353, allocations: 158.6 kB / 271.6 MB, free: 6.629 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.006361, allocations: 192 / 271.6 MB, free: 6.629 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.067e-05/0.006371, allocations: 12.06 kB / 271.6 MB, free: 6.617 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.006377, allocations: 0 / 271.6 MB, free: 6.617 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.645e-05/0.006423, allocations: 15.98 kB / 271.6 MB, free: 6.602 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001007/0.006524, allocations: 65.89 kB / 271.7 MB, free: 6.52 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001791/0.006703, allocations: 69.16 kB / 271.7 MB, free: 6.434 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.427e-05/0.006747, allocations: 29.7 kB / 271.8 MB, free: 6.398 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.348e-05/0.006761, allocations: 0 / 271.8 MB, free: 6.398 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.392e-05/0.006785, allocations: 38.56 kB / 271.8 MB, free: 6.352 MB / 250.7 MB Notification: Performance of pre-optimization done (n=7): time 1.392e-06/0.006786, allocations: 0 / 271.8 MB, free: 6.352 MB / 250.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001756/0.006961, allocations: 69.59 kB / 271.9 MB, free: 6.277 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.29e-05/0.007024, allocations: 89.05 kB / 272 MB, free: 6.172 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.436e-05/0.007109, allocations: 130.6 kB / 272.1 MB, free: 6.031 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.559e-05/0.007124, allocations: 29.7 kB / 272.1 MB, free: 5.996 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.929e-05/0.007154, allocations: 84.14 kB / 272.2 MB, free: 5.91 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.36e-05/0.007177, allocations: 7.938 kB / 272.2 MB, free: 5.902 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.625e-05/0.007213, allocations: 17.84 kB / 272.2 MB, free: 5.879 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.912e-05/0.007313, allocations: 326.8 kB / 272.5 MB, free: 5.551 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.34e-05/0.007326, allocations: 4 kB / 272.5 MB, free: 5.547 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.495e-05/0.007351, allocations: 22.56 kB / 272.6 MB, free: 5.516 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.867e-05/0.0074, allocations: 26.52 kB / 272.6 MB, free: 5.48 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.007402, allocations: 0 / 272.6 MB, free: 5.48 MB / 250.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.264e-05/0.007485, allocations: 49.62 kB / 272.6 MB, free: 5.426 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.007498, allocations: 8.094 kB / 272.6 MB, free: 5.418 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.007505, allocations: 3.984 kB / 272.6 MB, free: 5.414 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.007518, allocations: 4.375 kB / 272.7 MB, free: 5.41 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.93e-05/0.007587, allocations: 4 kB / 272.7 MB, free: 5.406 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.608e-06/0.007592, allocations: 4 kB / 272.7 MB, free: 5.402 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.27e-05/0.007624, allocations: 11.94 kB / 272.7 MB, free: 5.391 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-06/0.00763, allocations: 0 / 272.7 MB, free: 5.391 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 7.178e-05/0.007701, allocations: 113.8 kB / 272.8 MB, free: 5.27 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.586e-05/0.007787, allocations: 69.53 kB / 272.9 MB, free: 5.195 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.94e-05/0.007827, allocations: 16.42 kB / 272.9 MB, free: 5.176 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.007829, allocations: 4 kB / 272.9 MB, free: 5.172 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.007831, allocations: 0 / 272.9 MB, free: 5.172 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.007837, allocations: 7.938 kB / 272.9 MB, free: 5.164 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.236e-05/0.007919, allocations: 73.84 kB / 273 MB, free: 5.074 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.007921, allocations: 0 / 273 MB, free: 5.074 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.193e-05/0.007993, allocations: 11.98 kB / 273 MB, free: 5.062 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.007996, allocations: 0 / 273 MB, free: 5.062 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.988e-06/0.008006, allocations: 4 kB / 273 MB, free: 5.059 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.257e-06/0.008009, allocations: 4 kB / 273 MB, free: 5.055 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.00801, allocations: 0 / 273 MB, free: 5.055 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.654e-05/0.008087, allocations: 73.86 kB / 273 MB, free: 4.961 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.468e-05/0.008121, allocations: 7.984 kB / 273 MB, free: 4.953 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.144e-05/0.008143, allocations: 4 kB / 273.1 MB, free: 4.949 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.923e-05/0.008192, allocations: 4 kB / 273.1 MB, free: 4.945 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.632e-05/0.008218, allocations: 4 kB / 273.1 MB, free: 4.941 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.187e-06/0.008227, allocations: 3.984 kB / 273.1 MB, free: 4.938 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.575e-05/0.008253, allocations: 23.72 kB / 273.1 MB, free: 4.914 MB / 250.7 MB Notification: Performance of sort global known variables: time 1e-07/0.008253, allocations: 0 / 273.1 MB, free: 4.914 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001863/0.00844, allocations: 12 kB / 273.1 MB, free: 4.902 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 0.0001024/0.008542, allocations: 80.41 kB / 273.2 MB, free: 4.816 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 9.292e-05/0.008635, allocations: 40.75 kB / 273.2 MB, free: 4.773 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.008638, allocations: 0 / 273.2 MB, free: 4.773 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.892e-05/0.008657, allocations: 8.859 kB / 273.2 MB, free: 4.762 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000493/0.00915, allocations: 0.7049 MB / 273.9 MB, free: 4.031 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005294/0.00968, allocations: 178.7 kB / 274.1 MB, free: 3.828 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.123e-05/0.009721, allocations: 63.66 kB / 274.2 MB, free: 3.746 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.8e-05/0.009749, allocations: 7.906 kB / 274.2 MB, free: 3.738 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.772e-05/0.009807, allocations: 59.36 kB / 274.2 MB, free: 3.68 MB / 250.7 MB Notification: Performance of SimCode: time 9.51e-07/0.009807, allocations: 0 / 274.2 MB, free: 3.68 MB / 250.7 MB Notification: Performance of Templates: time 0.003152/0.01296, allocations: 0.8237 MB / 275.1 MB, free: 2.879 MB / 250.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 -s gbode -gbm=radauIIA3 -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.4697667700238526]