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.001143/0.001143, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.001176/0.001176, allocations: 138.6 kB / 24.97 MB, free: 9.309 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.9829/0.9829, allocations: 173.4 MB / 201.5 MB, free: 9.27 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.804e-06/1.804e-06, allocations: 0 / 268.1 MB, free: 6.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.954e-05/2.134e-05, allocations: 2.312 kB / 268.1 MB, free: 6.656 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002155/0.002177, allocations: 1.631 MB / 269.7 MB, free: 5.012 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005922/0.002769, allocations: 438.8 kB / 270.1 MB, free: 4.578 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.615e-05/0.002845, allocations: 3.938 kB / 270.2 MB, free: 4.574 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.682e-05/0.002872, allocations: 7.922 kB / 270.2 MB, free: 4.566 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001437/0.003015, allocations: 15.81 kB / 270.2 MB, free: 4.551 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001528/0.003168, allocations: 31.95 kB / 270.2 MB, free: 4.52 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001018/0.00327, allocations: 79.7 kB / 270.3 MB, free: 4.441 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.699e-05/0.003347, allocations: 7.984 kB / 270.3 MB, free: 4.434 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001107/0.003458, allocations: 43.89 kB / 270.3 MB, free: 4.391 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.14e-05/0.003499, allocations: 23.91 kB / 270.4 MB, free: 4.367 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.085e-05/0.00352, allocations: 8 kB / 270.4 MB, free: 4.359 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.03e-05/0.00353, allocations: 4 kB / 270.4 MB, free: 4.355 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.168e-05/0.003552, allocations: 15.92 kB / 270.4 MB, free: 4.34 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.302e-05/0.003585, allocations: 19.92 kB / 270.4 MB, free: 4.32 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 9.504e-05/0.00368, allocations: 43.88 kB / 270.4 MB, free: 4.277 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.533e-06/0.003681, allocations: 4 kB / 270.4 MB, free: 4.273 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.51e-07/0.003682, allocations: 0 / 270.4 MB, free: 4.273 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.677e-06/0.003686, allocations: 3.938 kB / 270.5 MB, free: 4.27 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.0003771/0.004063, allocations: 396.4 kB / 270.8 MB, free: 3.848 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.075e-05/0.004093, allocations: 8.922 kB / 270.8 MB, free: 3.84 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.377e-05/0.004137, allocations: 20.83 kB / 270.9 MB, free: 3.82 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001483/0.004286, allocations: 139.5 kB / 271 MB, free: 3.66 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 7.425e-05/0.00436, allocations: 34.25 kB / 271 MB, free: 3.621 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.218e-05/0.004372, allocations: 8.375 kB / 271 MB, free: 3.613 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000262/0.004634, allocations: 177.4 kB / 271.2 MB, free: 3.414 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.963e-06/0.004641, allocations: 192 / 271.2 MB, free: 3.414 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.191e-05/0.004653, allocations: 12.12 kB / 271.2 MB, free: 3.402 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/0.00466, allocations: 0 / 271.2 MB, free: 3.402 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.806e-05/0.004708, allocations: 11.98 kB / 271.2 MB, free: 3.391 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001113/0.004819, allocations: 132.3 kB / 271.4 MB, free: 3.223 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001865/0.005006, allocations: 94.22 kB / 271.5 MB, free: 3.105 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.771e-05/0.005054, allocations: 31.36 kB / 271.5 MB, free: 3.066 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.566e-05/0.005069, allocations: 4 kB / 271.5 MB, free: 3.062 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.641e-05/0.005096, allocations: 41.39 kB / 271.5 MB, free: 3.012 MB / 250.7 MB Notification: Performance of pre-optimization done (n=7): time 1.012e-06/0.005097, allocations: 0 / 271.5 MB, free: 3.012 MB / 250.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001959/0.005293, allocations: 89.55 kB / 271.6 MB, free: 2.918 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.476e-05/0.005347, allocations: 88.98 kB / 271.7 MB, free: 2.812 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.727e-05/0.005435, allocations: 181.9 kB / 271.9 MB, free: 2.617 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.353e-05/0.005448, allocations: 29.7 kB / 271.9 MB, free: 2.582 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.105e-05/0.005489, allocations: 134.9 kB / 272.1 MB, free: 2.445 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.055e-05/0.00551, allocations: 7.891 kB / 272.1 MB, free: 2.438 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.9e-05/0.005539, allocations: 27.48 kB / 272.1 MB, free: 2.402 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.005651, allocations: 0.4962 MB / 272.6 MB, free: 1.895 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.577e-05/0.005667, allocations: 7.984 kB / 272.6 MB, free: 1.887 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.345e-05/0.00569, allocations: 27.06 kB / 272.6 MB, free: 1.848 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.174e-05/0.005732, allocations: 39 kB / 272.7 MB, free: 1.797 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.005733, allocations: 0 / 272.7 MB, free: 1.797 MB / 250.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 7.507e-05/0.005808, allocations: 61.58 kB / 272.7 MB, free: 1.73 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.849e-06/0.005818, allocations: 4.094 kB / 272.7 MB, free: 1.727 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.005823, allocations: 8 kB / 272.7 MB, free: 1.719 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.979e-06/0.005833, allocations: 384 / 272.7 MB, free: 1.719 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.261e-05/0.005886, allocations: 11.92 kB / 272.7 MB, free: 1.707 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/0.005891, allocations: 4 kB / 272.7 MB, free: 1.703 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.263e-05/0.005914, allocations: 8 kB / 272.8 MB, free: 1.695 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.639e-06/0.005918, allocations: 4 kB / 272.8 MB, free: 1.691 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.781e-05/0.005986, allocations: 152.6 kB / 272.9 MB, free: 1.531 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.356e-05/0.00606, allocations: 77.56 kB / 273 MB, free: 1.449 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.623e-05/0.006086, allocations: 8.438 kB / 273 MB, free: 1.438 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.006088, allocations: 4 kB / 273 MB, free: 1.434 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.006094, allocations: 7.938 kB / 273 MB, free: 1.426 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.006097, allocations: 0 / 273 MB, free: 1.426 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.128e-05/0.006168, allocations: 124.6 kB / 273.1 MB, free: 1.27 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.00617, allocations: 0 / 273.1 MB, free: 1.27 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.9e-05/0.006209, allocations: 11.98 kB / 273.1 MB, free: 1.258 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.00621, allocations: 0 / 273.1 MB, free: 1.258 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.043e-05/0.00622, allocations: 7.984 kB / 273.1 MB, free: 1.25 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.01e-07/0.006221, allocations: 0 / 273.1 MB, free: 1.25 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.006222, allocations: 0 / 273.1 MB, free: 1.25 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000113/0.006335, allocations: 127.9 kB / 273.3 MB, free: 1.098 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.858e-05/0.006363, allocations: 19.89 kB / 273.3 MB, free: 1.078 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.609e-05/0.006379, allocations: 0 / 273.3 MB, free: 1.078 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.278e-05/0.006412, allocations: 7.984 kB / 273.3 MB, free: 1.07 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.494e-05/0.006437, allocations: 11.88 kB / 273.3 MB, free: 1.059 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.021e-05/0.006447, allocations: 4 kB / 273.3 MB, free: 1.055 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.899e-05/0.006496, allocations: 135.2 kB / 273.4 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.006496, allocations: 0 / 273.4 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001247/0.006621, allocations: 8 kB / 273.4 MB, free: 0.9141 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 6.833e-05/0.006689, allocations: 106.6 kB / 273.6 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001057/0.006795, allocations: 43.61 kB / 273.6 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.006797, allocations: 0 / 273.6 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.206e-05/0.006809, allocations: 7.688 kB / 273.6 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004938/0.007303, allocations: 1.061 MB / 274.7 MB, free: 15.66 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004001/0.007703, allocations: 183.3 kB / 274.8 MB, free: 15.45 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.285e-05/0.007736, allocations: 63.34 kB / 274.9 MB, free: 15.36 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.5e-05/0.007751, allocations: 4.312 kB / 274.9 MB, free: 15.36 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.626e-05/0.007777, allocations: 12.5 kB / 274.9 MB, free: 15.34 MB / 266.7 MB Notification: Performance of SimCode: time 6.31e-07/0.007778, allocations: 0 / 274.9 MB, free: 15.34 MB / 266.7 MB Notification: Performance of Templates: time 0.002466/0.01024, allocations: 0.8004 MB / 275.7 MB, free: 14.55 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.9711428550072014]