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.001077/0.001077, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001656/0.002733, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.001005/0.001005, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001432/0.002437, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.8923/0.8923, allocations: 173.4 MB / 186 MB, free: 7.531 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1454/1.038, allocations: 52.48 MB / 238.5 MB, free: 7.641 MB / 234.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.893e-06/1.893e-06, allocations: 0 / 239.7 MB, free: 6.371 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.551e-05/2.74e-05, allocations: 2.312 kB / 239.8 MB, free: 6.367 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003252/0.003279, allocations: 1.688 MB / 241.4 MB, free: 4.684 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008328/0.004112, allocations: 446.7 kB / 241.9 MB, free: 4.246 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.409e-05/0.004176, allocations: 4 kB / 241.9 MB, free: 4.242 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 3.028e-05/0.004206, allocations: 7.875 kB / 241.9 MB, free: 4.234 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 8.76e-05/0.004294, allocations: 15.84 kB / 241.9 MB, free: 4.219 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001968/0.004491, allocations: 39.89 kB / 241.9 MB, free: 4.18 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001332/0.004624, allocations: 73.16 kB / 242 MB, free: 4.109 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.071e-05/0.004705, allocations: 7.984 kB / 242 MB, free: 4.102 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001846/0.004889, allocations: 51.89 kB / 242.1 MB, free: 4.051 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.353e-05/0.004953, allocations: 23.91 kB / 242.1 MB, free: 4.027 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.816e-05/0.004981, allocations: 4.812 kB / 242.1 MB, free: 4.023 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.77e-05/0.004999, allocations: 8 kB / 242.1 MB, free: 4.016 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 2.774e-05/0.005026, allocations: 13.02 kB / 242.1 MB, free: 4.004 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 3.196e-05/0.005058, allocations: 15.94 kB / 242.1 MB, free: 3.988 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001457/0.005204, allocations: 43.83 kB / 242.2 MB, free: 3.945 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.408e-05/0.005218, allocations: 3.125 kB / 242.2 MB, free: 3.945 MB / 234.7 MB Notification: Performance of FrontEnd: time 7.51e-07/0.005219, allocations: 0 / 242.2 MB, free: 3.945 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.278e-05/0.005232, allocations: 0 / 242.2 MB, free: 3.945 MB / 234.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.0004849/0.005716, allocations: 292.2 kB / 242.5 MB, free: 3.637 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.00576, allocations: 12.03 kB / 242.5 MB, free: 3.625 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.5e-05/0.005805, allocations: 4.938 kB / 242.5 MB, free: 3.621 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001797/0.005984, allocations: 125.7 kB / 242.6 MB, free: 3.473 MB / 234.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.0001065/0.006091, allocations: 43.56 kB / 242.6 MB, free: 3.426 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.809e-05/0.006109, allocations: 4.375 kB / 242.7 MB, free: 3.422 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002841/0.006393, allocations: 155.1 kB / 242.8 MB, free: 3.25 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.006403, allocations: 3.219 kB / 242.8 MB, free: 3.25 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.006415, allocations: 4.125 kB / 242.8 MB, free: 3.246 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.006422, allocations: 0 / 242.8 MB, free: 3.246 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.837e-05/0.006481, allocations: 15.98 kB / 242.8 MB, free: 3.23 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001022/0.006583, allocations: 73.84 kB / 242.9 MB, free: 3.141 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000197/0.00678, allocations: 77.14 kB / 243 MB, free: 3.047 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.176e-05/0.006821, allocations: 25.7 kB / 243 MB, free: 3.016 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.557e-05/0.006837, allocations: 0.9688 kB / 243 MB, free: 3.016 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.401e-05/0.006861, allocations: 34.56 kB / 243 MB, free: 2.973 MB / 234.7 MB Notification: Performance of pre-optimization done (n=7): time 1.834e-06/0.006863, allocations: 0.9062 kB / 243 MB, free: 2.973 MB / 234.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001702/0.007033, allocations: 73.59 kB / 243.1 MB, free: 2.895 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.117e-05/0.007094, allocations: 90.83 kB / 243.2 MB, free: 2.789 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.401e-05/0.007168, allocations: 129.9 kB / 243.3 MB, free: 2.652 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.819e-05/0.007186, allocations: 37.62 kB / 243.4 MB, free: 2.609 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.12e-05/0.007218, allocations: 84.14 kB / 243.4 MB, free: 2.523 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.365e-05/0.007241, allocations: 7.938 kB / 243.4 MB, free: 2.516 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.331e-05/0.007275, allocations: 14.38 kB / 243.5 MB, free: 2.496 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 9.078e-05/0.007365, allocations: 323.5 kB / 243.8 MB, free: 2.172 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.708e-05/0.007382, allocations: 4 kB / 243.8 MB, free: 2.168 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.505e-05/0.007407, allocations: 28.53 kB / 243.8 MB, free: 2.133 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.495e-05/0.007452, allocations: 26.52 kB / 243.8 MB, free: 2.098 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.007455, allocations: 0 / 243.8 MB, free: 2.098 MB / 234.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 7.217e-05/0.007527, allocations: 51.09 kB / 243.9 MB, free: 2.043 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.007541, allocations: 4 kB / 243.9 MB, free: 2.039 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.007546, allocations: 0.625 kB / 243.9 MB, free: 2.039 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.007561, allocations: 7.984 kB / 243.9 MB, free: 2.031 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.824e-05/0.00763, allocations: 4.594 kB / 243.9 MB, free: 2.027 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.007634, allocations: 4 kB / 243.9 MB, free: 2.023 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.79e-05/0.007662, allocations: 4.5 kB / 243.9 MB, free: 2.02 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.142e-06/0.007668, allocations: 5.656 kB / 243.9 MB, free: 2.016 MB / 234.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 6.907e-05/0.007738, allocations: 113.8 kB / 244 MB, free: 1.895 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.507e-05/0.007813, allocations: 57.62 kB / 244.1 MB, free: 1.832 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.359e-05/0.007846, allocations: 12.42 kB / 244.1 MB, free: 1.816 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.007849, allocations: 1.625 kB / 244.1 MB, free: 1.816 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.007852, allocations: 4 kB / 244.1 MB, free: 1.812 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.762e-06/0.007859, allocations: 7.922 kB / 244.1 MB, free: 1.805 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.979e-05/0.007938, allocations: 86.33 kB / 244.2 MB, free: 1.703 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.00794, allocations: 0.8438 kB / 244.2 MB, free: 1.703 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.942e-05/0.008009, allocations: 11.98 kB / 244.2 MB, free: 1.691 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.974e-05/0.008039, allocations: 9.625 kB / 244.2 MB, free: 1.684 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.008042, allocations: 7.938 kB / 244.2 MB, free: 1.676 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-06/0.008051, allocations: 3.984 kB / 244.2 MB, free: 1.672 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.008054, allocations: 0 / 244.2 MB, free: 1.672 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.008055, allocations: 0 / 244.2 MB, free: 1.672 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.721e-05/0.008132, allocations: 78.08 kB / 244.3 MB, free: 1.574 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.923e-05/0.008151, allocations: 4 kB / 244.3 MB, free: 1.57 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.788e-05/0.008199, allocations: 8 kB / 244.3 MB, free: 1.562 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.131e-05/0.008221, allocations: 0 / 244.3 MB, free: 1.562 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-06/0.00823, allocations: 3.984 kB / 244.3 MB, free: 1.559 MB / 234.7 MB Notification: Performance of sorting global known variables: time 2.742e-05/0.008257, allocations: 24.83 kB / 244.3 MB, free: 1.531 MB / 234.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.008257, allocations: 0 / 244.3 MB, free: 1.531 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0001477/0.008405, allocations: 12 kB / 244.4 MB, free: 1.52 MB / 234.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.186e-05/0.008497, allocations: 76.42 kB / 244.4 MB, free: 1.438 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 8.948e-05/0.008586, allocations: 36.75 kB / 244.5 MB, free: 1.398 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.008593, allocations: 4 kB / 244.5 MB, free: 1.395 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 1.858e-05/0.008611, allocations: 8.859 kB / 244.5 MB, free: 1.383 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004794/0.009091, allocations: 0.7452 MB / 245.2 MB, free: 0.6016 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008439/0.009934, allocations: 178.7 kB / 245.4 MB, free: 408 kB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.08e-05/0.009975, allocations: 63.78 kB / 245.5 MB, free: 324 kB / 234.7 MB Notification: Performance of simCode: alias equations: time 2.868e-05/0.01, allocations: 11.91 kB / 245.5 MB, free: 312 kB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.001e-05/0.01006, allocations: 59.36 kB / 245.5 MB, free: 252 kB / 234.7 MB Notification: Performance of SimCode: time 7.91e-07/0.01006, allocations: 0 / 245.5 MB, free: 252 kB / 234.7 MB Notification: Performance of Templates: time 0.003042/0.01311, allocations: 0.828 MB / 246.4 MB, free: 15.44 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 -emit_protected -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.375104261562228]