Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00178/0.00178, allocations: 112.8 kB / 19.17 MB, free: 3.871 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002093/0.002093, allocations: 210.5 kB / 22.13 MB, free: 0.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.508/1.508, allocations: 230.2 MB / 255.2 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001862/0.001862, allocations: 63.89 kB / 374.5 MB, free: 9.906 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1074, allocations: 53.32 MB / 427.8 MB, free: 4.488 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003129/0.1105, allocations: 1.612 MB / 429.5 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009817/0.1115, allocations: 0.5143 MB / 430 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.252e-05/0.1116, allocations: 4 kB / 430 MB, free: 2.348 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.442e-05/0.1116, allocations: 3.938 kB / 430 MB, free: 2.344 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000175/0.1118, allocations: 11.86 kB / 430 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002516/0.1121, allocations: 51.88 kB / 430 MB, free: 2.281 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000159/0.1122, allocations: 71.77 kB / 430.1 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.926e-05/0.1123, allocations: 12 kB / 430.1 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001653/0.1125, allocations: 39.84 kB / 430.2 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.688e-05/0.1126, allocations: 47.7 kB / 430.2 MB, free: 2.113 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.879e-05/0.1126, allocations: 4 kB / 430.2 MB, free: 2.109 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.268e-05/0.1126, allocations: 8 kB / 430.2 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.238e-05/0.1126, allocations: 7.984 kB / 430.2 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.173e-05/0.1127, allocations: 31.81 kB / 430.3 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001646/0.1129, allocations: 67.7 kB / 430.3 MB, free: 1.996 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1129, allocations: 0 / 430.3 MB, free: 1.996 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1129, allocations: 0 / 430.3 MB, free: 1.996 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.1129, allocations: 4 kB / 430.3 MB, free: 1.992 MB / 350.1 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.0006034/0.1135, allocations: 383 kB / 430.7 MB, free: 1.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.1135, allocations: 12.03 kB / 430.7 MB, free: 1.559 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002388/0.1137, allocations: 24.88 kB / 430.7 MB, free: 1.535 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002738/0.114, allocations: 184.2 kB / 430.9 MB, free: 1.316 MB / 350.1 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.0001181/0.1141, allocations: 45 kB / 431 MB, free: 1.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.331e-05/0.1141, allocations: 4.375 kB / 431 MB, free: 1.266 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004115/0.1146, allocations: 169 kB / 431.1 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.1146, allocations: 4 kB / 431.1 MB, free: 1.078 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.1146, allocations: 0 / 431.1 MB, free: 1.078 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.1146, allocations: 0 / 431.1 MB, free: 1.078 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001562/0.1147, allocations: 39.97 kB / 431.2 MB, free: 1.039 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002143/0.115, allocations: 182.5 kB / 431.4 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000326/0.1153, allocations: 158.4 kB / 431.5 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001139/0.1154, allocations: 37.7 kB / 431.5 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.307e-05/0.1154, allocations: 4 kB / 431.5 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.836e-05/0.1155, allocations: 42.5 kB / 431.6 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.512e-06/0.1155, allocations: 0 / 431.6 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003725/0.1158, allocations: 117.5 kB / 431.7 MB, free: 408 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.606e-05/0.1159, allocations: 85.05 kB / 431.8 MB, free: 304 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.116, allocations: 127.4 kB / 431.9 MB, free: 168 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.791e-05/0.1161, allocations: 25.7 kB / 431.9 MB, free: 136 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.34e-05/0.1161, allocations: 92.12 kB / 432 MB, free: 40 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.427e-05/0.1161, allocations: 7.953 kB / 432 MB, free: 32 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.236e-05/0.1162, allocations: 29.64 kB / 432.1 MB, free: 16 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.1163, allocations: 314.8 kB / 432.4 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.534e-05/0.1164, allocations: 15.98 kB / 432.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.607e-05/0.1165, allocations: 62 kB / 432.4 MB, free: 15.58 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001433/0.1166, allocations: 81.88 kB / 432.5 MB, free: 15.48 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.1166, allocations: 3.938 kB / 432.5 MB, free: 15.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002049/0.1168, allocations: 105.4 kB / 432.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.1169, allocations: 4 kB / 432.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.1169, allocations: 12.2 kB / 432.6 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.1169, allocations: 0 / 432.6 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.648e-05/0.117, allocations: 15.94 kB / 432.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.117, allocations: 4 kB / 432.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.558e-05/0.117, allocations: 11.92 kB / 432.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.336e-06/0.117, allocations: 4.25 kB / 432.7 MB, free: 15.32 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (9): * Single equations (assignments): 9 * 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 0.0001067/0.1171, allocations: 117.8 kB / 432.8 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000148/0.1173, allocations: 81.52 kB / 432.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.785e-05/0.1173, allocations: 20.36 kB / 432.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.1173, allocations: 0 / 432.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.1174, allocations: 0 / 432.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.1174, allocations: 0 / 432.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000164/0.1175, allocations: 177.6 kB / 433.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.1175, allocations: 0 / 433.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.229e-05/0.1176, allocations: 15.92 kB / 433.1 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.1176, allocations: 0 / 433.1 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.384e-05/0.1176, allocations: 4 kB / 433.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.1176, allocations: 0 / 433.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1176, allocations: 0 / 433.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002619/0.1179, allocations: 129.8 kB / 433.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.519e-05/0.118, allocations: 92.98 kB / 433.3 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.671e-05/0.118, allocations: 8 kB / 433.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.596e-05/0.118, allocations: 0 / 433.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.188e-05/0.1181, allocations: 7.984 kB / 433.3 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.086e-05/0.1181, allocations: 4.188 kB / 433.3 MB, free: 14.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.558e-05/0.1182, allocations: 101 kB / 433.4 MB, free: 14.47 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1182, allocations: 3.938 kB / 433.4 MB, free: 14.46 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002242/0.1184, allocations: 16 kB / 433.4 MB, free: 14.45 MB / 366.1 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.0001386/0.1185, allocations: 95.25 kB / 433.5 MB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002139/0.1188, allocations: 59.84 kB / 433.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1188, allocations: 448 / 433.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.122e-05/0.1188, allocations: 15.92 kB / 433.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007655/0.1196, allocations: 0.718 MB / 434.3 MB, free: 13.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004331/0.12, allocations: 205 kB / 434.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003404/0.1203, allocations: 0.6964 MB / 435.2 MB, free: 12.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.361e-05/0.1204, allocations: 19.42 kB / 435.2 MB, free: 12.55 MB / 366.1 MB Notification: Performance of SimCode: time 6.02e-07/0.1204, allocations: 0 / 435.2 MB, free: 12.55 MB / 366.1 MB Notification: Performance of Templates: time 0.002805/0.1232, allocations: 0.9761 MB / 436.2 MB, free: 11.57 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.779084364883602]