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.002277/0.002277, allocations: 103.5 kB / 20.97 MB, free: 3.449 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.001975/0.001975, allocations: 156.8 kB / 24.27 MB, free: 156 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.573/1.573, allocations: 177 MB / 204.5 MB, free: 5.625 MB / 186.7 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 2.023e-06/2.023e-06, allocations: 0 / 272.2 MB, free: 1.812 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.552e-05/3.754e-05, allocations: 2.312 kB / 272.2 MB, free: 1.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003406/0.003443, allocations: 1.619 MB / 273.8 MB, free: 180 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001127/0.00457, allocations: 0.4986 MB / 274.3 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.031e-05/0.004651, allocations: 0 / 274.3 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.763e-05/0.004688, allocations: 7.875 kB / 274.3 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001905/0.004879, allocations: 15.88 kB / 274.3 MB, free: 15.65 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000288/0.005167, allocations: 55.8 kB / 274.4 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001609/0.005328, allocations: 67.78 kB / 274.5 MB, free: 15.53 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.736e-05/0.005425, allocations: 7.984 kB / 274.5 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002137/0.005639, allocations: 43.89 kB / 274.5 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.329e-05/0.005732, allocations: 35.89 kB / 274.5 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.517e-05/0.005757, allocations: 4 kB / 274.6 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.033e-05/0.005808, allocations: 8 kB / 274.6 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.143e-05/0.005839, allocations: 11.92 kB / 274.6 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.224e-05/0.005891, allocations: 15.98 kB / 274.6 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000201/0.006092, allocations: 79.7 kB / 274.7 MB, free: 15.32 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.006098, allocations: 0 / 274.7 MB, free: 15.32 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.0061, allocations: 0 / 274.7 MB, free: 15.32 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.006106, allocations: 0 / 274.7 MB, free: 15.32 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.0007143/0.00682, allocations: 411.9 kB / 275.1 MB, free: 14.89 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.006866, allocations: 11.98 kB / 275.1 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002332/0.007099, allocations: 24.88 kB / 275.1 MB, free: 14.85 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000248/0.007347, allocations: 135.3 kB / 275.2 MB, free: 14.7 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 0.0001127/0.00746, allocations: 38.25 kB / 275.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.77e-05/0.007477, allocations: 12.31 kB / 275.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004249/0.007902, allocations: 180.8 kB / 275.5 MB, free: 14.44 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.899e-06/0.007912, allocations: 192 / 275.5 MB, free: 14.44 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.603e-05/0.007928, allocations: 8.125 kB / 275.5 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/0.007936, allocations: 3.984 kB / 275.5 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001244/0.00806, allocations: 31.92 kB / 275.5 MB, free: 14.4 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002793/0.008339, allocations: 144.3 kB / 275.6 MB, free: 14.22 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003054/0.008645, allocations: 106.3 kB / 275.8 MB, free: 14.09 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000102/0.008747, allocations: 43.36 kB / 275.8 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.743e-05/0.008764, allocations: 3.938 kB / 275.8 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.736e-05/0.008802, allocations: 41.39 kB / 275.8 MB, free: 13.98 MB / 266.7 MB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.008803, allocations: 0 / 275.8 MB, free: 13.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=7): time 0.000376/0.009179, allocations: 113.7 kB / 275.9 MB, free: 13.87 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.391e-05/0.009263, allocations: 89.11 kB / 276 MB, free: 13.76 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001691/0.009432, allocations: 197.8 kB / 276.2 MB, free: 13.55 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.281e-05/0.009455, allocations: 29.83 kB / 276.3 MB, free: 13.52 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.699e-05/0.009542, allocations: 138.9 kB / 276.4 MB, free: 13.38 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.737e-05/0.009569, allocations: 7.938 kB / 276.4 MB, free: 13.37 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.807e-05/0.009617, allocations: 23.38 kB / 276.4 MB, free: 13.34 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002717/0.009889, allocations: 0.4961 MB / 276.9 MB, free: 12.83 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.389e-05/0.009933, allocations: 8 kB / 276.9 MB, free: 12.82 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.326e-05/0.009996, allocations: 43.05 kB / 277 MB, free: 12.77 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001113/0.01011, allocations: 47 kB / 277 MB, free: 12.71 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.01011, allocations: 4 kB / 277 MB, free: 12.7 MB / 266.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001466/0.01026, allocations: 69.58 kB / 277.1 MB, free: 12.63 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.01027, allocations: 7.984 kB / 277.1 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.01028, allocations: 4 kB / 277.1 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.01029, allocations: 0 / 277.1 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.235e-05/0.01035, allocations: 7.938 kB / 277.1 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.315e-05/0.01037, allocations: 7.938 kB / 277.1 MB, free: 12.6 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.282e-05/0.0104, allocations: 0 / 277.1 MB, free: 12.6 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.573e-05/0.01041, allocations: 8 kB / 277.1 MB, free: 12.59 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 0.0002597/0.01067, allocations: 172.6 kB / 277.3 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001494/0.01082, allocations: 73.64 kB / 277.4 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.032e-05/0.01086, allocations: 8.438 kB / 277.4 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.01087, allocations: 4 kB / 277.4 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.01087, allocations: 3.938 kB / 277.4 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.01087, allocations: 0 / 277.4 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001569/0.01103, allocations: 132.6 kB / 277.5 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.01103, allocations: 0 / 277.5 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.55e-05/0.01111, allocations: 15.92 kB / 277.5 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.01111, allocations: 0 / 277.5 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.488e-05/0.01112, allocations: 8 kB / 277.5 MB, free: 12.13 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.01113, allocations: 0 / 277.5 MB, free: 12.13 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.01113, allocations: 0 / 277.5 MB, free: 12.13 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002614/0.01139, allocations: 136.2 kB / 277.7 MB, free: 11.97 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.245e-05/0.01143, allocations: 15.94 kB / 277.7 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.587e-05/0.01146, allocations: 8.062 kB / 277.7 MB, free: 11.95 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.464e-05/0.01152, allocations: 7.984 kB / 277.7 MB, free: 11.94 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.719e-05/0.01156, allocations: 3.938 kB / 277.7 MB, free: 11.94 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.109e-05/0.01157, allocations: 4 kB / 277.7 MB, free: 11.93 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001079/0.01168, allocations: 147.1 kB / 277.8 MB, free: 11.79 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01168, allocations: 4 kB / 277.9 MB, free: 11.79 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001898/0.01187, allocations: 11.94 kB / 277.9 MB, free: 11.77 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 0.0001369/0.012, allocations: 103.1 kB / 278 MB, free: 11.67 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001884/0.01219, allocations: 51.66 kB / 278 MB, free: 11.61 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.01219, allocations: 0 / 278 MB, free: 11.61 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.666e-05/0.01224, allocations: 19.62 kB / 278 MB, free: 11.59 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.01328, allocations: 1.076 MB / 279.1 MB, free: 10.49 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004881/0.01376, allocations: 195.3 kB / 279.3 MB, free: 10.27 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.43e-05/0.01386, allocations: 75.33 kB / 279.4 MB, free: 10.17 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.786e-05/0.01389, allocations: 0 / 279.4 MB, free: 10.17 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.195e-05/0.01393, allocations: 16.48 kB / 279.4 MB, free: 10.16 MB / 266.7 MB Notification: Performance of SimCode: time 4.61e-07/0.01393, allocations: 0 / 279.4 MB, free: 10.16 MB / 266.7 MB Notification: Performance of Templates: time 0.003956/0.01788, allocations: 0.7968 MB / 280.2 MB, free: 9.363 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 4.4045926100807264]