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.001342/0.001342, allocations: 83.58 kB / 21.18 MB, free: 3.383 MB / 18.57 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.001565/0.001565, allocations: 165 kB / 24.56 MB, free: 12 kB / 18.57 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 0.9861/0.9861, allocations: 177.1 MB / 205 MB, free: 5.582 MB / 186.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.124e-06/2.124e-06, allocations: 0 / 273 MB, free: 1.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.029e-05/3.241e-05, allocations: 2.312 kB / 273 MB, free: 1.496 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003074/0.003107, allocations: 1.656 MB / 274.6 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008446/0.003951, allocations: 0.5025 MB / 275.1 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.88e-05/0.00403, allocations: 0 / 275.1 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.977e-05/0.00407, allocations: 7.875 kB / 275.1 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001835/0.004253, allocations: 19.86 kB / 275.2 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002603/0.004514, allocations: 55.8 kB / 275.2 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001238/0.004637, allocations: 63.78 kB / 275.3 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.605e-05/0.004733, allocations: 15.97 kB / 275.3 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001725/0.004906, allocations: 39.91 kB / 275.3 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.298e-05/0.004969, allocations: 31.89 kB / 275.4 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.402e-05/0.004993, allocations: 8 kB / 275.4 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.04e-05/0.005043, allocations: 8 kB / 275.4 MB, free: 15.08 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.38e-05/0.005067, allocations: 15.92 kB / 275.4 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.04e-05/0.005108, allocations: 23.91 kB / 275.4 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001613/0.005269, allocations: 55.75 kB / 275.5 MB, free: 14.98 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.005272, allocations: 3.938 kB / 275.5 MB, free: 14.98 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.32e-07/0.005272, allocations: 0 / 275.5 MB, free: 14.98 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.005278, allocations: 0 / 275.5 MB, free: 14.98 MB / 266.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.0005486/0.005826, allocations: 404.3 kB / 275.9 MB, free: 14.55 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.005872, allocations: 8.031 kB / 275.9 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002348/0.006107, allocations: 24.89 kB / 275.9 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002002/0.006307, allocations: 136.5 kB / 276 MB, free: 14.36 MB / 266.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.58e-05/0.006403, allocations: 38.25 kB / 276.1 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.512e-05/0.006418, allocations: 4.375 kB / 276.1 MB, free: 14.31 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003603/0.006779, allocations: 173.4 kB / 276.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.006789, allocations: 192 / 276.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.475e-05/0.006803, allocations: 4.125 kB / 276.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.006813, allocations: 4 kB / 276.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.55e-05/0.006889, allocations: 23.98 kB / 276.3 MB, free: 14.09 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001782/0.007067, allocations: 136.2 kB / 276.4 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002518/0.007319, allocations: 90.22 kB / 276.5 MB, free: 13.8 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.45e-05/0.007384, allocations: 31.38 kB / 276.5 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.856e-05/0.007402, allocations: 0 / 276.5 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.884e-05/0.007431, allocations: 45.31 kB / 276.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.007432, allocations: 0 / 276.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002568/0.007689, allocations: 89.84 kB / 276.7 MB, free: 13.61 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.806e-05/0.007757, allocations: 93.14 kB / 276.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001134/0.00787, allocations: 181.9 kB / 276.9 MB, free: 13.31 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.392e-05/0.007884, allocations: 25.7 kB / 277 MB, free: 13.28 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.141e-05/0.007936, allocations: 138.8 kB / 277.1 MB, free: 13.14 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.345e-05/0.007959, allocations: 7.953 kB / 277.1 MB, free: 13.13 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.887e-05/0.007998, allocations: 27.36 kB / 277.1 MB, free: 13.09 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.008142, allocations: 496.1 kB / 277.6 MB, free: 12.6 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.869e-05/0.00816, allocations: 4 kB / 277.6 MB, free: 12.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.281e-05/0.008193, allocations: 39.05 kB / 277.7 MB, free: 12.54 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.598e-05/0.008249, allocations: 43 kB / 277.7 MB, free: 12.49 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.008252, allocations: 0 / 277.7 MB, free: 12.49 MB / 266.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.545e-05/0.008347, allocations: 61.58 kB / 277.8 MB, free: 12.42 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.008362, allocations: 4 kB / 277.8 MB, free: 12.42 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.008369, allocations: 3.984 kB / 277.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.008383, allocations: 0 / 277.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.88e-05/0.008452, allocations: 15.92 kB / 277.8 MB, free: 12.4 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.008458, allocations: 0 / 277.8 MB, free: 12.4 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.76e-05/0.008485, allocations: 8.094 kB / 277.8 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.11e-06/0.00849, allocations: 0 / 277.8 MB, free: 12.39 MB / 266.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 8.373e-05/0.008574, allocations: 164.5 kB / 278 MB, free: 12.22 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.025e-05/0.008664, allocations: 65.64 kB / 278 MB, free: 12.15 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.829e-05/0.008703, allocations: 16.42 kB / 278 MB, free: 12.13 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.008705, allocations: 0 / 278 MB, free: 12.13 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.535e-06/0.008712, allocations: 3.938 kB / 278 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.008716, allocations: 0 / 278 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.245e-05/0.008808, allocations: 128.6 kB / 278.2 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.00881, allocations: 0 / 278.2 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.14e-05/0.008861, allocations: 15.98 kB / 278.2 MB, free: 11.95 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.008865, allocations: 3.984 kB / 278.2 MB, free: 11.95 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.008874, allocations: 0 / 278.2 MB, free: 11.95 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.968e-06/0.008878, allocations: 11.92 kB / 278.2 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.008879, allocations: 0 / 278.2 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000133/0.009012, allocations: 116.3 kB / 278.3 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.444e-05/0.009047, allocations: 15.88 kB / 278.3 MB, free: 11.78 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.313e-05/0.00907, allocations: 12 kB / 278.3 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.942e-05/0.009109, allocations: 7.984 kB / 278.3 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.164e-05/0.009141, allocations: 3.938 kB / 278.3 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.307e-06/0.00915, allocations: 8 kB / 278.4 MB, free: 11.75 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.36e-05/0.009204, allocations: 138 kB / 278.5 MB, free: 11.61 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009204, allocations: 0 / 278.5 MB, free: 11.61 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001951/0.009399, allocations: 12 kB / 278.5 MB, free: 11.6 MB / 266.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.43e-05/0.009493, allocations: 107.1 kB / 278.6 MB, free: 11.49 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001158/0.009609, allocations: 35.67 kB / 278.6 MB, free: 11.45 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.009611, allocations: 0 / 278.6 MB, free: 11.45 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.508e-05/0.009626, allocations: 11.62 kB / 278.7 MB, free: 11.43 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006241/0.01025, allocations: 1.065 MB / 279.7 MB, free: 10.34 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005187/0.01077, allocations: 187.3 kB / 279.9 MB, free: 10.12 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.925e-05/0.01082, allocations: 63.34 kB / 280 MB, free: 10.04 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.236e-05/0.01084, allocations: 0 / 280 MB, free: 10.04 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.38e-05/0.01087, allocations: 12.5 kB / 280 MB, free: 10.03 MB / 266.7 MB Notification: Performance of SimCode: time 1.162e-06/0.01088, allocations: 0 / 280 MB, free: 10.03 MB / 266.7 MB Notification: Performance of Templates: time 0.002923/0.0138, allocations: 0.8394 MB / 280.8 MB, free: 9.199 MB / 266.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.76128556067124]