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.001531/0.001531, allocations: 82.59 kB / 21.43 MB, free: 3.07 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.001875/0.001875, allocations: 171.8 kB / 24.82 MB, free: 9.254 MB / 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.079/1.079, allocations: 177 MB / 205.1 MB, free: 5.473 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.873e-06/1.873e-06, allocations: 0 / 273.3 MB, free: 1.215 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.424e-05/2.611e-05, allocations: 5.266 kB / 273.3 MB, free: 1.211 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002613/0.002639, allocations: 1.646 MB / 275 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008533/0.003493, allocations: 0.5025 MB / 275.5 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.936e-05/0.003582, allocations: 4 kB / 275.5 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.617e-05/0.003618, allocations: 7.875 kB / 275.5 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001665/0.003785, allocations: 15.86 kB / 275.5 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002597/0.004044, allocations: 55.75 kB / 275.6 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001208/0.004165, allocations: 67.77 kB / 275.6 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.82e-05/0.004253, allocations: 8 kB / 275.6 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001835/0.004437, allocations: 47.89 kB / 275.7 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.394e-05/0.004491, allocations: 23.91 kB / 275.7 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.82e-05/0.004509, allocations: 4 kB / 275.7 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.205e-05/0.004551, allocations: 15.98 kB / 275.7 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.089e-05/0.004572, allocations: 15.98 kB / 275.7 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.802e-05/0.0046, allocations: 15.92 kB / 275.8 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001253/0.004725, allocations: 59.73 kB / 275.8 MB, free: 14.71 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.004727, allocations: 0 / 275.8 MB, free: 14.71 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.004728, allocations: 0 / 275.8 MB, free: 14.71 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.306e-06/0.004731, allocations: 0 / 275.8 MB, free: 14.71 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.0004098/0.005141, allocations: 408.3 kB / 276.2 MB, free: 14.27 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.005181, allocations: 15.98 kB / 276.2 MB, free: 14.26 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001653/0.005346, allocations: 20.88 kB / 276.3 MB, free: 14.24 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001426/0.005489, allocations: 132.6 kB / 276.4 MB, free: 14.08 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 7.208e-05/0.005561, allocations: 45.38 kB / 276.4 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.056e-05/0.005572, allocations: 8.312 kB / 276.4 MB, free: 14.03 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002338/0.005805, allocations: 161.4 kB / 276.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.005813, allocations: 192 / 276.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.428e-06/0.005823, allocations: 4.125 kB / 276.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.094e-06/0.00583, allocations: 4 kB / 276.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.393e-05/0.005874, allocations: 23.98 kB / 276.6 MB, free: 13.81 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000123/0.005997, allocations: 120.8 kB / 276.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001689/0.006165, allocations: 90.3 kB / 276.8 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.771e-05/0.006203, allocations: 31.36 kB / 276.9 MB, free: 13.51 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.898e-05/0.006222, allocations: 7.922 kB / 276.9 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.033e-05/0.006243, allocations: 37.39 kB / 276.9 MB, free: 13.46 MB / 266.7 MB Notification: Performance of pre-optimization done (n=7): time 9.92e-07/0.006243, allocations: 0 / 276.9 MB, free: 13.46 MB / 266.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001757/0.006419, allocations: 85.56 kB / 277 MB, free: 13.37 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.859e-05/0.006468, allocations: 89.23 kB / 277.1 MB, free: 13.26 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.639e-05/0.006554, allocations: 188.9 kB / 277.3 MB, free: 13.06 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.298e-05/0.006567, allocations: 29.7 kB / 277.3 MB, free: 13.03 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.364e-05/0.006611, allocations: 134.9 kB / 277.4 MB, free: 12.89 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.992e-05/0.006631, allocations: 7.938 kB / 277.4 MB, free: 12.88 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.461e-05/0.006665, allocations: 23.36 kB / 277.5 MB, free: 12.85 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.006785, allocations: 0.4884 MB / 277.9 MB, free: 12.35 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.339e-05/0.006798, allocations: 3.984 kB / 277.9 MB, free: 12.35 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.869e-05/0.006827, allocations: 35.06 kB / 278 MB, free: 12.3 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.504e-05/0.006872, allocations: 39 kB / 278 MB, free: 12.25 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.006874, allocations: 0 / 278 MB, free: 12.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.112e-05/0.006955, allocations: 57.58 kB / 278.1 MB, free: 12.19 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.006967, allocations: 8 kB / 278.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.087e-06/0.006971, allocations: 0 / 278.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.006982, allocations: 0 / 278.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.636e-05/0.007029, allocations: 11.98 kB / 278.1 MB, free: 12.17 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.878e-06/0.007033, allocations: 3.938 kB / 278.1 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.307e-05/0.007056, allocations: 11.97 kB / 278.1 MB, free: 12.15 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-06/0.007065, allocations: 4 kB / 278.1 MB, free: 12.15 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.247e-05/0.007148, allocations: 160.6 kB / 278.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.396e-05/0.007232, allocations: 65.62 kB / 278.3 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.497e-05/0.007267, allocations: 12.44 kB / 278.3 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.007269, allocations: 0 / 278.3 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.007272, allocations: 4 kB / 278.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.007276, allocations: 3.938 kB / 278.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.291e-05/0.007358, allocations: 105.2 kB / 278.5 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.00736, allocations: 0 / 278.5 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.795e-05/0.007408, allocations: 19.92 kB / 278.5 MB, free: 11.74 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.00741, allocations: 0 / 278.5 MB, free: 11.74 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.007419, allocations: 4.438 kB / 278.5 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.007423, allocations: 7.984 kB / 278.5 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.007426, allocations: 4 kB / 278.5 MB, free: 11.72 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.489e-05/0.007501, allocations: 80.03 kB / 278.6 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.156e-05/0.007532, allocations: 15.94 kB / 278.6 MB, free: 11.6 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.774e-05/0.00755, allocations: 4 kB / 278.6 MB, free: 11.6 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.371e-05/0.007584, allocations: 0 / 278.6 MB, free: 11.6 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.201e-05/0.007606, allocations: 7.984 kB / 278.6 MB, free: 11.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.353e-06/0.007613, allocations: 4.031 kB / 278.6 MB, free: 11.59 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.014e-05/0.007663, allocations: 143.2 kB / 278.7 MB, free: 11.45 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007663, allocations: 0 / 278.7 MB, free: 11.45 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000183/0.007846, allocations: 8 kB / 278.8 MB, free: 11.44 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 8.262e-05/0.007929, allocations: 103.1 kB / 278.9 MB, free: 11.33 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.966e-05/0.008019, allocations: 31.67 kB / 278.9 MB, free: 11.29 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.00802, allocations: 0 / 278.9 MB, free: 11.29 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.47e-05/0.008035, allocations: 15.61 kB / 278.9 MB, free: 11.27 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005402/0.008575, allocations: 1.068 MB / 280 MB, free: 10.18 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004118/0.008987, allocations: 187.2 kB / 280.1 MB, free: 9.965 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.872e-05/0.009036, allocations: 63.34 kB / 280.2 MB, free: 9.883 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.316e-05/0.009059, allocations: 4 kB / 280.2 MB, free: 9.879 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.924e-05/0.009118, allocations: 74.14 kB / 280.3 MB, free: 9.805 MB / 266.7 MB Notification: Performance of SimCode: time 7.41e-07/0.009119, allocations: 0 / 280.3 MB, free: 9.805 MB / 266.7 MB Notification: Performance of Templates: time 0.003608/0.01273, allocations: 0.8486 MB / 281.1 MB, free: 8.969 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.8229229440912604]