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.001168/0.001168, allocations: 95.5 kB / 21.2 MB, free: 3.371 MB / 18.57 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.001072/0.001072, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 18.57 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.053/1.053, allocations: 177 MB / 204.8 MB, free: 5.57 MB / 186.7 MB " [Timeout remaining time 179] 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 1.122e-06/1.122e-06, allocations: 0 / 272.9 MB, free: 1.434 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.561e-05/1.673e-05, allocations: 5.125 kB / 272.9 MB, free: 1.43 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.001893/0.00191, allocations: 1.653 MB / 274.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.000602/0.002512, allocations: 0.5025 MB / 275.1 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.191e-05/0.002554, allocations: 4 kB / 275.1 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.012e-05/0.002574, allocations: 7.875 kB / 275.1 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 9.801e-05/0.002672, allocations: 11.88 kB / 275.1 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001669/0.002839, allocations: 47.81 kB / 275.1 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 7.508e-05/0.002914, allocations: 75.7 kB / 275.2 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.056e-05/0.002964, allocations: 11.98 kB / 275.2 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001162/0.003081, allocations: 47.89 kB / 275.3 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.59e-05/0.003117, allocations: 23.97 kB / 275.3 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.375e-05/0.00313, allocations: 8 kB / 275.3 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.182e-05/0.003162, allocations: 8 kB / 275.3 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.548e-05/0.003178, allocations: 15.91 kB / 275.3 MB, free: 15 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.232e-05/0.0032, allocations: 23.92 kB / 275.4 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 9.373e-05/0.003294, allocations: 55.69 kB / 275.4 MB, free: 14.92 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.003298, allocations: 4 kB / 275.4 MB, free: 14.92 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.51e-07/0.003298, allocations: 0 / 275.4 MB, free: 14.92 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.096e-06/0.003301, allocations: 0 / 275.4 MB, free: 14.92 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.0003177/0.003619, allocations: 408.3 kB / 275.8 MB, free: 14.48 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.898e-05/0.003648, allocations: 11.98 kB / 275.8 MB, free: 14.47 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001279/0.003776, allocations: 28.88 kB / 275.9 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001157/0.003892, allocations: 128.6 kB / 276 MB, free: 14.29 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 5.953e-05/0.003951, allocations: 45.36 kB / 276 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.027e-05/0.003961, allocations: 8.312 kB / 276 MB, free: 14.24 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002142/0.004176, allocations: 169.4 kB / 276.2 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.608e-06/0.00418, allocations: 192 / 276.2 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.228e-06/0.004189, allocations: 12.12 kB / 276.2 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.004193, allocations: 0 / 276.2 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.432e-05/0.004238, allocations: 27.86 kB / 276.2 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.938e-05/0.004337, allocations: 136.2 kB / 276.4 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001651/0.004502, allocations: 90.28 kB / 276.5 MB, free: 13.72 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.58e-05/0.004548, allocations: 35.31 kB / 276.5 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.063e-05/0.004559, allocations: 0 / 276.5 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.905e-05/0.004578, allocations: 41.38 kB / 276.5 MB, free: 13.63 MB / 266.7 MB Notification: Performance of pre-optimization done (n=7): time 5.51e-07/0.004578, allocations: 0 / 276.5 MB, free: 13.63 MB / 266.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001416/0.00472, allocations: 89.56 kB / 276.6 MB, free: 13.54 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.128e-05/0.004761, allocations: 89.05 kB / 276.7 MB, free: 13.43 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.364e-05/0.004835, allocations: 184.9 kB / 276.9 MB, free: 13.23 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.137e-06/0.004844, allocations: 29.7 kB / 276.9 MB, free: 13.2 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.942e-05/0.004883, allocations: 130.9 kB / 277 MB, free: 13.07 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.874e-05/0.004902, allocations: 11.95 kB / 277.1 MB, free: 13.05 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.723e-05/0.004929, allocations: 23.36 kB / 277.1 MB, free: 13.02 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.005047, allocations: 496.1 kB / 277.6 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.226e-05/0.00506, allocations: 4 kB / 277.6 MB, free: 12.52 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.471e-05/0.005084, allocations: 35.05 kB / 277.6 MB, free: 12.48 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.974e-05/0.005124, allocations: 43.5 kB / 277.6 MB, free: 12.42 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.005125, allocations: 0 / 277.6 MB, free: 12.42 MB / 266.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 5.71e-05/0.005182, allocations: 61.58 kB / 277.7 MB, free: 12.36 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.032e-05/0.005192, allocations: 8 kB / 277.7 MB, free: 12.35 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.005196, allocations: 4 kB / 277.7 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.414e-06/0.005204, allocations: 0 / 277.7 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.891e-05/0.005243, allocations: 15.92 kB / 277.7 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.005247, allocations: 8.031 kB / 277.7 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.556e-05/0.005263, allocations: 0 / 277.7 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.07e-06/0.005268, allocations: 4 kB / 277.7 MB, free: 12.32 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 6.972e-05/0.005338, allocations: 160.6 kB / 277.9 MB, free: 12.15 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.477e-05/0.005402, allocations: 65.64 kB / 278 MB, free: 12.08 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.67e-05/0.005429, allocations: 12.42 kB / 278 MB, free: 12.06 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.005431, allocations: 7.938 kB / 278 MB, free: 12.05 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.005434, allocations: 3.938 kB / 278 MB, free: 12.05 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.005437, allocations: 0 / 278 MB, free: 12.05 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.045e-05/0.005507, allocations: 124.6 kB / 278.1 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.005508, allocations: 0 / 278.1 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.389e-05/0.005542, allocations: 19.92 kB / 278.1 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.005544, allocations: 4 kB / 278.1 MB, free: 11.87 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.905e-06/0.005552, allocations: 3.984 kB / 278.1 MB, free: 11.87 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.005552, allocations: 0 / 278.1 MB, free: 11.87 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.005553, allocations: 0 / 278.1 MB, free: 11.87 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001007/0.005654, allocations: 128 kB / 278.3 MB, free: 11.71 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.371e-05/0.005677, allocations: 11.94 kB / 278.3 MB, free: 11.7 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.671e-05/0.005694, allocations: 8 kB / 278.3 MB, free: 11.7 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.611e-05/0.00572, allocations: 3.984 kB / 278.3 MB, free: 11.69 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.996e-05/0.00575, allocations: 7.938 kB / 278.3 MB, free: 11.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.962e-06/0.005756, allocations: 4 kB / 278.3 MB, free: 11.68 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.066e-05/0.005807, allocations: 139.2 kB / 278.4 MB, free: 11.54 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.005807, allocations: 3.938 kB / 278.4 MB, free: 11.54 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001216/0.005928, allocations: 12 kB / 278.4 MB, free: 11.53 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 5.861e-05/0.005987, allocations: 103.2 kB / 278.5 MB, free: 11.42 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.821e-05/0.006065, allocations: 35.8 kB / 278.6 MB, free: 11.38 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.21e-07/0.006066, allocations: 3.938 kB / 278.6 MB, free: 11.38 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.339e-05/0.00608, allocations: 11.69 kB / 278.6 MB, free: 11.36 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004784/0.006558, allocations: 1.066 MB / 279.7 MB, free: 10.27 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004187/0.006977, allocations: 183.3 kB / 279.8 MB, free: 10.05 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.215e-05/0.007009, allocations: 63.34 kB / 279.9 MB, free: 9.973 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.643e-05/0.007025, allocations: 4 kB / 279.9 MB, free: 9.969 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.382e-05/0.007049, allocations: 8.5 kB / 279.9 MB, free: 9.961 MB / 266.7 MB Notification: Performance of SimCode: time 3.8e-07/0.00705, allocations: 0 / 279.9 MB, free: 9.961 MB / 266.7 MB Notification: Performance of Templates: time 0.002114/0.009163, allocations: 0.8284 MB / 280.7 MB, free: 9.141 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.763678478077054]