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.001101/0.001101, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.001425/0.001425, allocations: 160 kB / 24.99 MB, free: 8.309 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.2 MB, free: 5.602 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 2.204e-06/2.204e-06, allocations: 0 / 273 MB, free: 1.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.273e-05/2.494e-05, allocations: 2.312 kB / 273 MB, free: 1.758 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.005391/0.005416, allocations: 1.642 MB / 274.6 MB, free: 104 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007982/0.006214, allocations: 0.5025 MB / 275.1 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.367e-05/0.006288, allocations: 3.938 kB / 275.2 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.022e-05/0.006318, allocations: 3.938 kB / 275.2 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001585/0.006476, allocations: 15.8 kB / 275.2 MB, free: 15.57 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000215/0.006691, allocations: 55.83 kB / 275.2 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001109/0.006802, allocations: 71.75 kB / 275.3 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.352e-05/0.006886, allocations: 8 kB / 275.3 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001475/0.007033, allocations: 51.81 kB / 275.4 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.738e-05/0.007081, allocations: 19.98 kB / 275.4 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.723e-05/0.007098, allocations: 7.938 kB / 275.4 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.811e-05/0.007136, allocations: 12 kB / 275.4 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.918e-05/0.007155, allocations: 11.97 kB / 275.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.412e-05/0.007189, allocations: 19.92 kB / 275.4 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001226/0.007312, allocations: 55.81 kB / 275.5 MB, free: 15.26 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.454e-06/0.007314, allocations: 0 / 275.5 MB, free: 15.26 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.01e-07/0.007315, allocations: 0 / 275.5 MB, free: 15.26 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.85e-06/0.00732, allocations: 0 / 275.5 MB, free: 15.26 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.0004428/0.007763, allocations: 412.3 kB / 275.9 MB, free: 14.82 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.007799, allocations: 11.98 kB / 275.9 MB, free: 14.81 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001762/0.007975, allocations: 28.88 kB / 275.9 MB, free: 14.79 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001685/0.008144, allocations: 135.2 kB / 276.1 MB, free: 14.63 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 8.55e-05/0.008229, allocations: 34.25 kB / 276.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.256e-05/0.008242, allocations: 8.375 kB / 276.1 MB, free: 14.58 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002958/0.008537, allocations: 169.4 kB / 276.3 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.008548, allocations: 16.06 kB / 276.3 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.252e-05/0.00856, allocations: 4.125 kB / 276.3 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.595e-06/0.008568, allocations: 0 / 276.3 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.631e-05/0.008624, allocations: 19.98 kB / 276.3 MB, free: 14.35 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001519/0.008776, allocations: 144.2 kB / 276.4 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002093/0.008986, allocations: 94.2 kB / 276.5 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.441e-05/0.00904, allocations: 35.36 kB / 276.6 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.962e-05/0.00906, allocations: 0 / 276.6 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.779e-05/0.009087, allocations: 41.39 kB / 276.6 MB, free: 13.96 MB / 266.7 MB Notification: Performance of pre-optimization done (n=7): time 9.41e-07/0.009088, allocations: 0 / 276.6 MB, free: 13.96 MB / 266.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002208/0.009309, allocations: 85.56 kB / 276.7 MB, free: 13.87 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.862e-05/0.009368, allocations: 92.98 kB / 276.8 MB, free: 13.76 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.329e-05/0.009461, allocations: 181.9 kB / 277 MB, free: 13.57 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.221e-05/0.009473, allocations: 25.7 kB / 277 MB, free: 13.54 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.407e-05/0.009517, allocations: 135 kB / 277.1 MB, free: 13.4 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.924e-05/0.009537, allocations: 15.94 kB / 277.1 MB, free: 13.38 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.295e-05/0.00957, allocations: 23.38 kB / 277.2 MB, free: 13.35 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.009709, allocations: 496.1 kB / 277.6 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.854e-05/0.009727, allocations: 7.984 kB / 277.6 MB, free: 12.85 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.58e-05/0.009753, allocations: 27.06 kB / 277.7 MB, free: 12.81 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.442e-05/0.009797, allocations: 39 kB / 277.7 MB, free: 12.76 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.009799, allocations: 4 kB / 277.7 MB, free: 12.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 7.936e-05/0.009878, allocations: 61.58 kB / 277.8 MB, free: 12.69 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.009891, allocations: 8 kB / 277.8 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.009895, allocations: 0 / 277.8 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.121e-05/0.009906, allocations: 0 / 277.8 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.073e-05/0.009957, allocations: 15.92 kB / 277.8 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.198e-06/0.009961, allocations: 0 / 277.8 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.605e-05/0.009987, allocations: 8 kB / 277.8 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.569e-06/0.009992, allocations: 0 / 277.8 MB, free: 12.66 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 9.923e-05/0.01009, allocations: 160.5 kB / 278 MB, free: 12.49 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003092/0.01318, allocations: 77.94 kB / 278 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.366e-05/0.01322, allocations: 12.53 kB / 278.1 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.01322, allocations: 0 / 278.1 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.01322, allocations: 4 kB / 278.1 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.01323, allocations: 4 kB / 278.1 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.077e-05/0.01331, allocations: 128.6 kB / 278.2 MB, free: 12.22 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.01331, allocations: 4 kB / 278.2 MB, free: 12.22 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.504e-05/0.01336, allocations: 8 kB / 278.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.01336, allocations: 0 / 278.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.498e-06/0.01337, allocations: 3.984 kB / 278.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.01337, allocations: 0 / 278.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.01337, allocations: 8 kB / 278.2 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000131/0.0135, allocations: 127.9 kB / 278.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.963e-05/0.01353, allocations: 15.94 kB / 278.3 MB, free: 12.03 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.97e-05/0.01355, allocations: 4 kB / 278.4 MB, free: 12.03 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.671e-05/0.01359, allocations: 8 kB / 278.4 MB, free: 12.02 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.718e-05/0.01362, allocations: 3.938 kB / 278.4 MB, free: 12.02 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.634e-06/0.01362, allocations: 4 kB / 278.4 MB, free: 12.01 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.279e-05/0.01368, allocations: 142 kB / 278.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01368, allocations: 0 / 278.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001857/0.01386, allocations: 8 kB / 278.5 MB, free: 11.87 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 7.567e-05/0.01394, allocations: 103.2 kB / 278.6 MB, free: 11.76 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.936e-05/0.01404, allocations: 35.61 kB / 278.6 MB, free: 11.72 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.01404, allocations: 4 kB / 278.7 MB, free: 11.71 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.265e-05/0.01405, allocations: 7.688 kB / 278.7 MB, free: 11.7 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006484/0.0147, allocations: 1.07 MB / 279.7 MB, free: 10.61 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000471/0.01517, allocations: 187.6 kB / 279.9 MB, free: 10.39 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.497e-05/0.01521, allocations: 59.34 kB / 280 MB, free: 10.31 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.85e-05/0.01523, allocations: 4 kB / 280 MB, free: 10.31 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.936e-05/0.01526, allocations: 16.48 kB / 280 MB, free: 10.29 MB / 266.7 MB Notification: Performance of SimCode: time 9.72e-07/0.01526, allocations: 0 / 280 MB, free: 10.29 MB / 266.7 MB Notification: Performance of Templates: time 0.005644/0.0209, allocations: 0.8017 MB / 280.8 MB, free: 9.496 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: 3.0184648730792105]