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.001173/0.001173, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001791/0.002964, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.001015/0.001015, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001385/0.0024, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.098/1.098, allocations: 177.2 MB / 189.8 MB, free: 5.27 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1163/1.215, allocations: 53.66 MB / 243.4 MB, free: 15.53 MB / 250.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 2.405e-06/2.405e-06, allocations: 0 / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.689e-05/1.93e-05, allocations: 2.312 kB / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002046/0.002066, allocations: 1.708 MB / 246.4 MB, free: 12.52 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007158/0.002781, allocations: 0.5071 MB / 246.9 MB, free: 12 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.809e-05/0.00287, allocations: 0 / 246.9 MB, free: 12 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.374e-05/0.002903, allocations: 11.86 kB / 246.9 MB, free: 11.99 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.485e-05/0.002978, allocations: 19.81 kB / 247 MB, free: 11.97 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001837/0.003162, allocations: 51.86 kB / 247 MB, free: 11.92 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001284/0.00329, allocations: 67.78 kB / 247.1 MB, free: 11.86 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.425e-05/0.003384, allocations: 4 kB / 247.1 MB, free: 11.85 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001998/0.003584, allocations: 71.75 kB / 247.1 MB, free: 11.78 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.717e-05/0.003631, allocations: 19.97 kB / 247.2 MB, free: 11.76 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.709e-05/0.003649, allocations: 4 kB / 247.2 MB, free: 11.76 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.297e-05/0.003701, allocations: 11.98 kB / 247.2 MB, free: 11.75 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.657e-05/0.003728, allocations: 11.94 kB / 247.2 MB, free: 11.73 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.761e-05/0.003756, allocations: 19.94 kB / 247.2 MB, free: 11.71 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001254/0.003881, allocations: 43.78 kB / 247.3 MB, free: 11.67 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.002e-05/0.003891, allocations: 0 / 247.3 MB, free: 11.67 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.02e-07/0.003892, allocations: 0 / 247.3 MB, free: 11.67 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.455e-06/0.0039, allocations: 0 / 247.3 MB, free: 11.67 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.0004155/0.004316, allocations: 296.3 kB / 247.5 MB, free: 11.36 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.004348, allocations: 12.03 kB / 247.6 MB, free: 11.35 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001927/0.004541, allocations: 98.02 kB / 247.7 MB, free: 11.23 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001545/0.004696, allocations: 133.7 kB / 247.8 MB, free: 11.08 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.773e-05/0.004793, allocations: 46.17 kB / 247.8 MB, free: 11.03 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.464e-05/0.004808, allocations: 12.31 kB / 247.8 MB, free: 11.02 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002147/0.005023, allocations: 142.2 kB / 248 MB, free: 10.86 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.005029, allocations: 192 / 248 MB, free: 10.86 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.005042, allocations: 12.11 kB / 248 MB, free: 10.84 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.005049, allocations: 4 kB / 248 MB, free: 10.84 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.029e-05/0.005089, allocations: 15.92 kB / 248 MB, free: 10.82 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001071/0.005196, allocations: 73.86 kB / 248.1 MB, free: 10.73 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001716/0.005368, allocations: 69.2 kB / 248.2 MB, free: 10.65 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.35e-05/0.005401, allocations: 25.7 kB / 248.2 MB, free: 10.62 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.043e-05/0.005422, allocations: 7.938 kB / 248.2 MB, free: 10.61 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.115e-05/0.005443, allocations: 34.56 kB / 248.2 MB, free: 10.57 MB / 250.7 MB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.005444, allocations: 0 / 248.2 MB, free: 10.57 MB / 250.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001506/0.005595, allocations: 73.61 kB / 248.3 MB, free: 10.49 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.069e-05/0.005655, allocations: 85.09 kB / 248.4 MB, free: 10.39 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.609e-05/0.005731, allocations: 130.6 kB / 248.5 MB, free: 10.25 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.234e-05/0.005744, allocations: 29.83 kB / 248.5 MB, free: 10.21 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.098e-05/0.005775, allocations: 92.11 kB / 248.6 MB, free: 10.12 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.702e-05/0.005802, allocations: 7.891 kB / 248.6 MB, free: 10.11 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.669e-05/0.005828, allocations: 17.72 kB / 248.6 MB, free: 10.09 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.88e-05/0.005917, allocations: 322.8 kB / 249 MB, free: 9.762 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.064e-05/0.005928, allocations: 0 / 249 MB, free: 9.762 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.167e-05/0.005949, allocations: 22.58 kB / 249 MB, free: 9.73 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.32e-05/0.005993, allocations: 34.48 kB / 249 MB, free: 9.688 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.005995, allocations: 4 kB / 249 MB, free: 9.684 MB / 250.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.255e-05/0.006057, allocations: 53.62 kB / 249.1 MB, free: 9.625 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/0.00607, allocations: 4 kB / 249.1 MB, free: 9.621 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.006074, allocations: 0 / 249.1 MB, free: 9.621 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.006087, allocations: 4 kB / 249.1 MB, free: 9.617 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.906e-05/0.006146, allocations: 7.984 kB / 249.1 MB, free: 9.609 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.006152, allocations: 3.938 kB / 249.1 MB, free: 9.605 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.947e-05/0.006171, allocations: 11.88 kB / 249.1 MB, free: 9.594 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.236e-06/0.006175, allocations: 0 / 249.1 MB, free: 9.594 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 6.845e-05/0.006243, allocations: 117.9 kB / 249.2 MB, free: 9.469 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.817e-05/0.006291, allocations: 53.67 kB / 249.3 MB, free: 9.41 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.423e-05/0.006325, allocations: 16.42 kB / 249.3 MB, free: 9.395 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.006328, allocations: 0 / 249.3 MB, free: 9.395 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.355e-06/0.00633, allocations: 0 / 249.3 MB, free: 9.395 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.006337, allocations: 7.938 kB / 249.3 MB, free: 9.387 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.847e-05/0.006405, allocations: 70.33 kB / 249.4 MB, free: 9.301 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.006407, allocations: 0 / 249.4 MB, free: 9.301 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.792e-05/0.006445, allocations: 15.92 kB / 249.4 MB, free: 9.285 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.637e-05/0.006471, allocations: 15.94 kB / 249.4 MB, free: 9.27 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.006473, allocations: 0 / 249.4 MB, free: 9.27 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.006484, allocations: 15.98 kB / 249.4 MB, free: 9.254 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.006485, allocations: 0 / 249.4 MB, free: 9.254 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.006486, allocations: 0 / 249.4 MB, free: 9.254 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.03e-05/0.006546, allocations: 69.91 kB / 249.5 MB, free: 9.164 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.945e-05/0.006566, allocations: 8 kB / 249.5 MB, free: 9.156 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.538e-05/0.006591, allocations: 4 kB / 249.5 MB, free: 9.152 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.572e-05/0.006627, allocations: 0 / 249.5 MB, free: 9.152 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.472e-06/0.006633, allocations: 3.984 kB / 249.5 MB, free: 9.148 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.015e-05/0.006653, allocations: 24.66 kB / 249.5 MB, free: 9.125 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.006653, allocations: 0 / 249.5 MB, free: 9.125 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001017/0.006755, allocations: 12.03 kB / 249.5 MB, free: 9.113 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 8.027e-05/0.006835, allocations: 88.34 kB / 249.6 MB, free: 9.02 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.428e-05/0.00692, allocations: 36.7 kB / 249.7 MB, free: 8.98 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.006924, allocations: 4 kB / 249.7 MB, free: 8.977 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.64e-05/0.00694, allocations: 4.859 kB / 249.7 MB, free: 8.969 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000418/0.007358, allocations: 0.7375 MB / 250.4 MB, free: 8.199 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007154/0.008074, allocations: 203 kB / 250.6 MB, free: 7.973 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.115e-05/0.008115, allocations: 63.34 kB / 250.7 MB, free: 7.891 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.005e-05/0.008135, allocations: 0 / 250.7 MB, free: 7.891 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.738e-05/0.008192, allocations: 59.36 kB / 250.7 MB, free: 7.832 MB / 250.7 MB Notification: Performance of SimCode: time 9.52e-07/0.008193, allocations: 0 / 250.7 MB, free: 7.832 MB / 250.7 MB Notification: Performance of Templates: time 0.002348/0.01054, allocations: 0.8226 MB / 251.5 MB, free: 7.02 MB / 250.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5885129682719707]