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.0009183/0.0009183, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001247/0.002166, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.0009017/0.0009017, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001157/0.002059, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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 0.9923/0.9923, allocations: 177.4 MB / 189.9 MB, free: 4.844 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09881/1.091, allocations: 53.88 MB / 243.8 MB, free: 14.91 MB / 250.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.363e-06/1.363e-06, allocations: 0 / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.94e-05/2.076e-05, allocations: 2.312 kB / 245 MB, free: 13.65 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002511/0.002531, allocations: 1.704 MB / 246.7 MB, free: 11.94 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006886/0.00322, allocations: 0.5103 MB / 247.2 MB, free: 11.42 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.055e-05/0.003291, allocations: 0 / 247.2 MB, free: 11.42 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.877e-05/0.003319, allocations: 7.875 kB / 247.2 MB, free: 11.41 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.984e-05/0.003399, allocations: 19.8 kB / 247.3 MB, free: 11.39 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000184/0.003583, allocations: 47.88 kB / 247.3 MB, free: 11.35 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001196/0.003703, allocations: 63.78 kB / 247.4 MB, free: 11.29 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.429e-05/0.003797, allocations: 11.98 kB / 247.4 MB, free: 11.27 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002105/0.004007, allocations: 67.75 kB / 247.4 MB, free: 11.21 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.569e-05/0.004063, allocations: 23.97 kB / 247.5 MB, free: 11.18 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.282e-05/0.004086, allocations: 7.938 kB / 247.5 MB, free: 11.18 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.221e-05/0.004148, allocations: 8 kB / 247.5 MB, free: 11.17 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.915e-05/0.004167, allocations: 8 kB / 247.5 MB, free: 11.16 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.658e-05/0.004194, allocations: 15.94 kB / 247.5 MB, free: 11.14 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001241/0.004318, allocations: 51.77 kB / 247.6 MB, free: 11.09 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.457e-05/0.004333, allocations: 0 / 247.6 MB, free: 11.09 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.004334, allocations: 0 / 247.6 MB, free: 11.09 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.327e-05/0.004347, allocations: 0 / 247.6 MB, free: 11.09 MB / 250.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.0004186/0.004766, allocations: 284.3 kB / 247.8 MB, free: 10.79 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.487e-05/0.004801, allocations: 16.62 kB / 247.9 MB, free: 10.78 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000194/0.004995, allocations: 106 kB / 248 MB, free: 10.66 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00018/0.005175, allocations: 137.6 kB / 248.1 MB, free: 10.5 MB / 250.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.193e-05/0.005267, allocations: 41.34 kB / 248.1 MB, free: 10.45 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.209e-05/0.005279, allocations: 4.375 kB / 248.1 MB, free: 10.45 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002294/0.005508, allocations: 158.1 kB / 248.3 MB, free: 10.27 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.005517, allocations: 4.188 kB / 248.3 MB, free: 10.27 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.375e-05/0.00553, allocations: 4.125 kB / 248.3 MB, free: 10.27 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.005537, allocations: 7.984 kB / 248.3 MB, free: 10.26 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.864e-05/0.005575, allocations: 15.98 kB / 248.3 MB, free: 10.24 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001059/0.005681, allocations: 65.86 kB / 248.4 MB, free: 10.16 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001693/0.00585, allocations: 69.16 kB / 248.5 MB, free: 10.07 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.138e-05/0.005882, allocations: 29.69 kB / 248.5 MB, free: 10.04 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.615e-05/0.005898, allocations: 0 / 248.5 MB, free: 10.04 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.182e-05/0.00592, allocations: 38.5 kB / 248.5 MB, free: 9.992 MB / 250.7 MB Notification: Performance of pre-optimization done (n=7): time 1.001e-06/0.005921, allocations: 4 kB / 248.5 MB, free: 9.988 MB / 250.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001441/0.006065, allocations: 77.66 kB / 248.6 MB, free: 9.906 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.777e-05/0.006123, allocations: 89.05 kB / 248.7 MB, free: 9.801 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.143e-05/0.006194, allocations: 126.6 kB / 248.8 MB, free: 9.664 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.33e-05/0.006207, allocations: 29.7 kB / 248.8 MB, free: 9.629 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.756e-05/0.006235, allocations: 88.12 kB / 248.9 MB, free: 9.539 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.189e-05/0.006257, allocations: 7.891 kB / 248.9 MB, free: 9.531 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.675e-05/0.006284, allocations: 17.7 kB / 249 MB, free: 9.508 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.074e-05/0.006364, allocations: 322.8 kB / 249.3 MB, free: 9.184 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.807e-06/0.006373, allocations: 0 / 249.3 MB, free: 9.184 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.972e-05/0.006393, allocations: 30.7 kB / 249.3 MB, free: 9.145 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.755e-05/0.00643, allocations: 30.5 kB / 249.3 MB, free: 9.105 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.006433, allocations: 0 / 249.3 MB, free: 9.105 MB / 250.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.618e-05/0.006499, allocations: 49.62 kB / 249.4 MB, free: 9.051 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.006512, allocations: 4 kB / 249.4 MB, free: 9.047 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.006516, allocations: 3.938 kB / 249.4 MB, free: 9.043 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.706e-06/0.006525, allocations: 4 kB / 249.4 MB, free: 9.039 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.557e-05/0.006581, allocations: 12.08 kB / 249.4 MB, free: 9.027 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.455e-06/0.006583, allocations: 0 / 249.4 MB, free: 9.027 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.052e-05/0.006604, allocations: 7.938 kB / 249.4 MB, free: 9.02 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.687e-06/0.006607, allocations: 0 / 249.4 MB, free: 9.02 MB / 250.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.875e-05/0.006676, allocations: 117.8 kB / 249.5 MB, free: 8.895 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.277e-05/0.006729, allocations: 57.67 kB / 249.6 MB, free: 8.832 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.401e-05/0.006763, allocations: 16.42 kB / 249.6 MB, free: 8.816 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.006765, allocations: 0 / 249.6 MB, free: 8.816 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-06/0.006766, allocations: 0 / 249.6 MB, free: 8.816 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.952e-06/0.006772, allocations: 7.938 kB / 249.6 MB, free: 8.809 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.025e-05/0.006833, allocations: 77.88 kB / 249.7 MB, free: 8.715 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.006834, allocations: 0 / 249.7 MB, free: 8.715 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.465e-05/0.006878, allocations: 11.98 kB / 249.7 MB, free: 8.703 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.334e-05/0.006902, allocations: 7.953 kB / 249.7 MB, free: 8.695 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.006904, allocations: 0 / 249.7 MB, free: 8.695 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.726e-06/0.006912, allocations: 8.422 kB / 249.7 MB, free: 8.688 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.006914, allocations: 0 / 249.7 MB, free: 8.688 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/0.006918, allocations: 4 kB / 249.7 MB, free: 8.684 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.875e-05/0.006976, allocations: 73.86 kB / 249.8 MB, free: 8.59 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.594e-05/0.006992, allocations: 4 kB / 249.8 MB, free: 8.586 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.849e-05/0.007021, allocations: 8.031 kB / 249.8 MB, free: 8.578 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.163e-05/0.007042, allocations: 4 kB / 249.8 MB, free: 8.574 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.033e-06/0.007049, allocations: 3.984 kB / 249.8 MB, free: 8.57 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.875e-05/0.007068, allocations: 27.92 kB / 249.8 MB, free: 8.543 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007068, allocations: 0 / 249.8 MB, free: 8.543 MB / 250.7 MB Notification: Performance of remove unused functions: time 9.993e-05/0.007168, allocations: 12 kB / 249.8 MB, free: 8.531 MB / 250.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.142e-05/0.007259, allocations: 76.42 kB / 249.9 MB, free: 8.449 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.467e-05/0.007344, allocations: 36.72 kB / 250 MB, free: 8.41 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.007349, allocations: 0 / 250 MB, free: 8.41 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.479e-05/0.007364, allocations: 13.05 kB / 250 MB, free: 8.395 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004315/0.007795, allocations: 0.7123 MB / 250.7 MB, free: 7.656 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000707/0.008502, allocations: 190.6 kB / 250.9 MB, free: 7.441 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.565e-05/0.008538, allocations: 63.34 kB / 250.9 MB, free: 7.359 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.388e-05/0.008562, allocations: 7.969 kB / 250.9 MB, free: 7.352 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.037e-05/0.008612, allocations: 63.48 kB / 251 MB, free: 7.289 MB / 250.7 MB Notification: Performance of SimCode: time 9.72e-07/0.008613, allocations: 4 kB / 251 MB, free: 7.285 MB / 250.7 MB Notification: Performance of Templates: time 0.002495/0.01111, allocations: 0.8198 MB / 251.8 MB, free: 6.473 MB / 250.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 -ignoreHideResult -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.528577510267496]