Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002298/0.002298, allocations: 95.86 kB / 20.96 MB, free: 3.465 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002512/0.002512, allocations: 149.5 kB / 24.26 MB, free: 168 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.541/1.541, allocations: 173.3 MB / 200.8 MB, free: 9.32 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.754e-06/1.754e-06, allocations: 0 / 267.3 MB, free: 6.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.85e-05/3.026e-05, allocations: 2.312 kB / 267.3 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003091/0.003121, allocations: 1.6 MB / 268.9 MB, free: 5.113 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008653/0.003986, allocations: 442.6 kB / 269.4 MB, free: 4.676 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.188e-05/0.004048, allocations: 0 / 269.4 MB, free: 4.676 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.853e-05/0.004077, allocations: 7.875 kB / 269.4 MB, free: 4.668 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001511/0.004228, allocations: 15.86 kB / 269.4 MB, free: 4.652 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000193/0.004421, allocations: 35.89 kB / 269.4 MB, free: 4.617 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001303/0.004551, allocations: 67.78 kB / 269.5 MB, free: 4.551 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.906e-05/0.00464, allocations: 15.98 kB / 269.5 MB, free: 4.535 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001369/0.004777, allocations: 47.83 kB / 269.5 MB, free: 4.488 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.53e-05/0.004842, allocations: 27.89 kB / 269.6 MB, free: 4.461 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.879e-05/0.004871, allocations: 8 kB / 269.6 MB, free: 4.453 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.563e-05/0.004886, allocations: 4 kB / 269.6 MB, free: 4.449 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.206e-05/0.004919, allocations: 7.984 kB / 269.6 MB, free: 4.441 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.083e-05/0.004959, allocations: 15.94 kB / 269.6 MB, free: 4.426 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001543/0.005114, allocations: 71.75 kB / 269.7 MB, free: 4.355 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.005116, allocations: 0 / 269.7 MB, free: 4.355 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.005117, allocations: 0 / 269.7 MB, free: 4.355 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.005121, allocations: 0 / 269.7 MB, free: 4.355 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.0006001/0.005721, allocations: 408 kB / 270.1 MB, free: 3.922 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.005762, allocations: 12.92 kB / 270.1 MB, free: 3.91 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.636e-05/0.005819, allocations: 12.89 kB / 270.1 MB, free: 3.898 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002263/0.006045, allocations: 140.4 kB / 270.2 MB, free: 3.734 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 0.0001075/0.006153, allocations: 38.25 kB / 270.3 MB, free: 3.691 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.532e-05/0.006168, allocations: 4.375 kB / 270.3 MB, free: 3.688 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006389/0.006807, allocations: 188.7 kB / 270.5 MB, free: 3.48 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.006816, allocations: 192 / 270.5 MB, free: 3.48 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.509e-05/0.006841, allocations: 8.125 kB / 270.5 MB, free: 3.473 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.006848, allocations: 4 kB / 270.5 MB, free: 3.469 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001197/0.006967, allocations: 27.92 kB / 270.5 MB, free: 3.441 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001962/0.007163, allocations: 136.3 kB / 270.6 MB, free: 3.27 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003169/0.00748, allocations: 106.2 kB / 270.7 MB, free: 3.141 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001028/0.007583, allocations: 43.36 kB / 270.8 MB, free: 3.09 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.247e-05/0.007605, allocations: 4 kB / 270.8 MB, free: 3.086 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.849e-05/0.007634, allocations: 37.39 kB / 270.8 MB, free: 3.039 MB / 250.7 MB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.007635, allocations: 0 / 270.8 MB, free: 3.039 MB / 250.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003645/0.008, allocations: 113.5 kB / 270.9 MB, free: 2.922 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.48e-05/0.008084, allocations: 89.05 kB / 271 MB, free: 2.816 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001607/0.008245, allocations: 189.9 kB / 271.2 MB, free: 2.613 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.23e-05/0.008267, allocations: 25.7 kB / 271.2 MB, free: 2.582 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.186e-05/0.008359, allocations: 138.9 kB / 271.4 MB, free: 2.441 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.271e-05/0.008382, allocations: 7.953 kB / 271.4 MB, free: 2.434 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.104e-05/0.008433, allocations: 27.36 kB / 271.4 MB, free: 2.398 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000253/0.008686, allocations: 0.4884 MB / 271.9 MB, free: 1.898 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.772e-05/0.008734, allocations: 20.05 kB / 271.9 MB, free: 1.879 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.263e-05/0.008796, allocations: 39.06 kB / 272 MB, free: 1.828 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.687e-05/0.008893, allocations: 47.05 kB / 272 MB, free: 1.77 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.008895, allocations: 0 / 272 MB, free: 1.77 MB / 250.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001442/0.009039, allocations: 69.58 kB / 272.1 MB, free: 1.695 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.009055, allocations: 8 kB / 272.1 MB, free: 1.688 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.00906, allocations: 8.031 kB / 272.1 MB, free: 1.68 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.009075, allocations: 3.984 kB / 272.1 MB, free: 1.676 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.982e-05/0.009145, allocations: 15.92 kB / 272.1 MB, free: 1.66 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.009151, allocations: 0 / 272.1 MB, free: 1.66 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.631e-05/0.009187, allocations: 4 kB / 272.1 MB, free: 1.656 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.634e-06/0.009195, allocations: 7.938 kB / 272.1 MB, free: 1.648 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 0.0001248/0.009319, allocations: 160.6 kB / 272.3 MB, free: 1.48 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001469/0.009466, allocations: 77.95 kB / 272.3 MB, free: 1.398 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.381e-05/0.00951, allocations: 16.42 kB / 272.4 MB, free: 1.379 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.009512, allocations: 0 / 272.4 MB, free: 1.379 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.268e-06/0.009521, allocations: 12 kB / 272.4 MB, free: 1.367 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.726e-06/0.009524, allocations: 0 / 272.4 MB, free: 1.367 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001481/0.009672, allocations: 128.6 kB / 272.5 MB, free: 1.207 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.009673, allocations: 0 / 272.5 MB, free: 1.207 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.348e-05/0.009747, allocations: 11.98 kB / 272.5 MB, free: 1.195 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.009749, allocations: 0 / 272.5 MB, free: 1.195 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.389e-05/0.009763, allocations: 4 kB / 272.5 MB, free: 1.191 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.009767, allocations: 3.984 kB / 272.5 MB, free: 1.188 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.009768, allocations: 0 / 272.5 MB, free: 1.188 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000258/0.01003, allocations: 147.9 kB / 272.7 MB, free: 1.016 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.686e-05/0.01006, allocations: 15.94 kB / 272.7 MB, free: 1 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.357e-05/0.01009, allocations: 4 kB / 272.7 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.379e-05/0.01015, allocations: 4 kB / 272.7 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.461e-05/0.01018, allocations: 3.938 kB / 272.7 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.463e-05/0.0102, allocations: 7.984 kB / 272.7 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of sorting global known variables: time 9.975e-05/0.0103, allocations: 143.2 kB / 272.8 MB, free: 0.8398 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0103, allocations: 0 / 272.8 MB, free: 0.8398 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001858/0.01048, allocations: 8 kB / 272.8 MB, free: 0.832 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 0.0001329/0.01062, allocations: 103.2 kB / 272.9 MB, free: 0.7227 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001844/0.0108, allocations: 55.61 kB / 273 MB, free: 0.6641 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.0108, allocations: 0 / 273 MB, free: 0.6641 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.043e-05/0.01084, allocations: 15.67 kB / 273 MB, free: 0.6445 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009737/0.01182, allocations: 1.069 MB / 274.1 MB, free: 15.55 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000416/0.01223, allocations: 183.3 kB / 274.3 MB, free: 15.34 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.798e-05/0.01231, allocations: 75.64 kB / 274.3 MB, free: 15.24 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.959e-05/0.01234, allocations: 11.98 kB / 274.3 MB, free: 15.23 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.908e-05/0.01238, allocations: 8.5 kB / 274.4 MB, free: 15.22 MB / 266.7 MB Notification: Performance of SimCode: time 4.41e-07/0.01238, allocations: 0 / 274.4 MB, free: 15.22 MB / 266.7 MB Notification: Performance of Templates: time 0.003729/0.01611, allocations: 0.7974 MB / 275.2 MB, free: 14.44 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.387998285936192]