Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001808/0.001808, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002657/0.002657, allocations: 208.9 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.611/1.611, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00163/0.00163, allocations: 39.94 kB / 378.2 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2666/0.2683, allocations: 53.37 MB / 431.6 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003013/0.2713, allocations: 1.602 MB / 433.2 MB, free: 5.277 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009814/0.2723, allocations: 486.7 kB / 433.7 MB, free: 4.797 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.435e-05/0.2723, allocations: 0 / 433.7 MB, free: 4.797 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.498e-05/0.2724, allocations: 11.92 kB / 433.7 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001535/0.2725, allocations: 15.88 kB / 433.7 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002516/0.2728, allocations: 51.88 kB / 433.7 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001251/0.2729, allocations: 71.77 kB / 433.8 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.102e-05/0.273, allocations: 11.97 kB / 433.8 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001682/0.2732, allocations: 35.86 kB / 433.9 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.226e-05/0.2732, allocations: 35.83 kB / 433.9 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.8e-05/0.2732, allocations: 4 kB / 433.9 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.329e-05/0.2733, allocations: 12 kB / 433.9 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.537e-05/0.2733, allocations: 11.92 kB / 433.9 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.516e-05/0.2734, allocations: 31.86 kB / 433.9 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001487/0.2735, allocations: 66.25 kB / 434 MB, free: 4.445 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2735, allocations: 3.938 kB / 434 MB, free: 4.441 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2735, allocations: 3.938 kB / 434 MB, free: 4.438 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.2735, allocations: 4 kB / 434 MB, free: 4.434 MB / 334.1 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.0005665/0.2741, allocations: 306 kB / 434.3 MB, free: 4.105 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.214e-05/0.2741, allocations: 8.031 kB / 434.3 MB, free: 4.098 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00023/0.2743, allocations: 20.88 kB / 434.3 MB, free: 4.078 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002385/0.2746, allocations: 134.4 kB / 434.5 MB, free: 3.922 MB / 334.1 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.768e-05/0.2747, allocations: 38.25 kB / 434.5 MB, free: 3.879 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.139e-05/0.2747, allocations: 8.375 kB / 434.5 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003815/0.2751, allocations: 165 kB / 434.7 MB, free: 3.691 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.2751, allocations: 0 / 434.7 MB, free: 3.691 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.647e-05/0.2751, allocations: 4 kB / 434.7 MB, free: 3.688 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.2751, allocations: 0 / 434.7 MB, free: 3.688 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001253/0.2752, allocations: 27.98 kB / 434.7 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001652/0.2754, allocations: 134.1 kB / 434.8 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002675/0.2757, allocations: 85.25 kB / 434.9 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.254e-05/0.2758, allocations: 37.7 kB / 435 MB, free: 3.352 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.172e-05/0.2758, allocations: 4 kB / 435 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.2758, allocations: 34.5 kB / 435 MB, free: 3.305 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.2758, allocations: 0 / 435 MB, free: 3.305 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.000334/0.2762, allocations: 113.5 kB / 435.1 MB, free: 3.188 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.57e-05/0.2762, allocations: 93.17 kB / 435.2 MB, free: 3.078 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001122/0.2763, allocations: 124.1 kB / 435.3 MB, free: 2.949 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.046e-05/0.2764, allocations: 33.7 kB / 435.4 MB, free: 2.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.766e-05/0.2764, allocations: 84.14 kB / 435.4 MB, free: 2.824 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.47e-05/0.2764, allocations: 11.94 kB / 435.5 MB, free: 2.812 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.012e-05/0.2765, allocations: 21.72 kB / 435.5 MB, free: 2.785 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.2766, allocations: 322.8 kB / 435.8 MB, free: 2.461 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.996e-05/0.2767, allocations: 11.98 kB / 435.8 MB, free: 2.449 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.294e-05/0.2768, allocations: 70.17 kB / 435.9 MB, free: 2.359 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001325/0.2769, allocations: 81.81 kB / 436 MB, free: 2.258 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-06/0.2769, allocations: 4 kB / 436 MB, free: 2.254 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001863/0.2771, allocations: 101.6 kB / 436.1 MB, free: 2.148 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.2771, allocations: 11.94 kB / 436.1 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.2771, allocations: 0 / 436.1 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.2771, allocations: 4 kB / 436.1 MB, free: 2.133 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.29e-05/0.2772, allocations: 19.92 kB / 436.1 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.2772, allocations: 0 / 436.1 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.22e-05/0.2773, allocations: 8 kB / 436.1 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.838e-06/0.2773, allocations: 4 kB / 436.1 MB, free: 2.102 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (9): * Single equations (assignments): 9 * 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.0001005/0.2774, allocations: 121.8 kB / 436.2 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001307/0.2775, allocations: 81.64 kB / 436.3 MB, free: 1.887 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.72e-05/0.2775, allocations: 12.38 kB / 436.3 MB, free: 1.871 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.2775, allocations: 4 kB / 436.3 MB, free: 1.867 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.2775, allocations: 0 / 436.3 MB, free: 1.867 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.2775, allocations: 3.984 kB / 436.3 MB, free: 1.863 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001273/0.2777, allocations: 113.3 kB / 436.4 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.2777, allocations: 0 / 436.4 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.234e-05/0.2777, allocations: 11.98 kB / 436.4 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.2778, allocations: 4 kB / 436.4 MB, free: 1.707 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.355e-05/0.2778, allocations: 7.922 kB / 436.5 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.2778, allocations: 0 / 436.5 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2778, allocations: 4 kB / 436.5 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002281/0.278, allocations: 129.8 kB / 436.6 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.232e-05/0.278, allocations: 11.94 kB / 436.6 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.396e-05/0.2781, allocations: 7.938 kB / 436.6 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.39e-05/0.2781, allocations: 4 kB / 436.6 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.625e-05/0.2782, allocations: 0 / 436.6 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.479e-05/0.2782, allocations: 7.984 kB / 436.6 MB, free: 1.516 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.432e-05/0.2782, allocations: 99.27 kB / 436.7 MB, free: 1.418 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2782, allocations: 0 / 436.7 MB, free: 1.418 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002054/0.2784, allocations: 8 kB / 436.7 MB, free: 1.41 MB / 334.1 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.0001151/0.2786, allocations: 111.3 kB / 436.8 MB, free: 1.293 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001814/0.2787, allocations: 51.91 kB / 436.9 MB, free: 1.242 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.2787, allocations: 8.125 kB / 436.9 MB, free: 1.234 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.775e-05/0.2788, allocations: 8 kB / 436.9 MB, free: 1.227 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006856/0.2795, allocations: 0.736 MB / 437.6 MB, free: 480 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003722/0.2798, allocations: 175.7 kB / 437.8 MB, free: 276 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.742e-05/0.2799, allocations: 75.33 kB / 437.9 MB, free: 180 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.927e-05/0.2799, allocations: 4 kB / 437.9 MB, free: 176 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.415e-05/0.28, allocations: 15.42 kB / 437.9 MB, free: 160 kB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.28, allocations: 0 / 437.9 MB, free: 160 kB / 334.1 MB Notification: Performance of Templates: time 0.003509/0.2835, allocations: 0.847 MB / 438.7 MB, free: 15.32 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.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.545184005051851]