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.001499/0.001499, allocations: 112.2 kB / 21.19 MB, free: 0.7578 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.001645/0.001645, allocations: 209.8 kB / 24.5 MB, free: 4.133 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.395/1.395, allocations: 230.6 MB / 258.3 MB, free: 8.023 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.001578/0.001578, allocations: 51.92 kB / 379 MB, free: 2.648 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.236/0.2376, allocations: 53.37 MB / 432.4 MB, free: 6.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002873/0.2405, allocations: 1.621 MB / 434 MB, free: 5.332 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009241/0.2414, allocations: 0.5142 MB / 434.5 MB, free: 4.812 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.067e-05/0.2415, allocations: 8 kB / 434.5 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.131e-05/0.2415, allocations: 7.875 kB / 434.6 MB, free: 4.797 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001506/0.2417, allocations: 7.875 kB / 434.6 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002489/0.2419, allocations: 51.88 kB / 434.6 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001385/0.2421, allocations: 67.83 kB / 434.7 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.388e-05/0.2422, allocations: 11.98 kB / 434.7 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001536/0.2423, allocations: 39.8 kB / 434.7 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.5e-05/0.2424, allocations: 39.83 kB / 434.8 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.713e-05/0.2424, allocations: 4 kB / 434.8 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.09e-05/0.2425, allocations: 15.94 kB / 434.8 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.455e-05/0.2425, allocations: 15.92 kB / 434.8 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.19e-05/0.2425, allocations: 27.86 kB / 434.8 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000163/0.2427, allocations: 72.91 kB / 434.9 MB, free: 4.453 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.2427, allocations: 0 / 434.9 MB, free: 4.453 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2427, allocations: 0 / 434.9 MB, free: 4.453 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.2427, allocations: 0 / 434.9 MB, free: 4.453 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.0005264/0.2432, allocations: 306 kB / 435.2 MB, free: 4.125 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.2433, allocations: 8.031 kB / 435.2 MB, free: 4.117 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002185/0.2435, allocations: 24.88 kB / 435.2 MB, free: 4.094 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002339/0.2437, allocations: 133.7 kB / 435.4 MB, free: 3.941 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 8.952e-05/0.2438, allocations: 38.19 kB / 435.4 MB, free: 3.898 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.78e-05/0.2438, allocations: 8.375 kB / 435.4 MB, free: 3.891 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003885/0.2442, allocations: 165 kB / 435.6 MB, free: 3.711 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.2442, allocations: 0 / 435.6 MB, free: 3.711 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.2442, allocations: 4 kB / 435.6 MB, free: 3.707 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.2442, allocations: 0 / 435.6 MB, free: 3.707 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000127/0.2444, allocations: 39.91 kB / 435.6 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001955/0.2446, allocations: 149.6 kB / 435.8 MB, free: 3.477 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000263/0.2448, allocations: 93.25 kB / 435.9 MB, free: 3.367 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.826e-05/0.2449, allocations: 41.7 kB / 435.9 MB, free: 3.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.703e-05/0.2449, allocations: 0 / 435.9 MB, free: 3.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.735e-05/0.245, allocations: 34.5 kB / 435.9 MB, free: 3.277 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.122e-06/0.245, allocations: 8 kB / 435.9 MB, free: 3.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003369/0.2453, allocations: 109.5 kB / 436 MB, free: 3.156 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.921e-05/0.2454, allocations: 85.11 kB / 436.1 MB, free: 3.055 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001084/0.2455, allocations: 129.8 kB / 436.3 MB, free: 2.918 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.667e-05/0.2455, allocations: 29.7 kB / 436.3 MB, free: 2.883 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.314e-05/0.2456, allocations: 84.14 kB / 436.4 MB, free: 2.797 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.857e-05/0.2456, allocations: 15.94 kB / 436.4 MB, free: 2.781 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.791e-05/0.2457, allocations: 21.84 kB / 436.4 MB, free: 2.754 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.2458, allocations: 322.8 kB / 436.7 MB, free: 2.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.918e-05/0.2459, allocations: 15.92 kB / 436.7 MB, free: 2.414 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.493e-05/0.246, allocations: 65.92 kB / 436.8 MB, free: 2.328 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001308/0.2461, allocations: 73.94 kB / 436.9 MB, free: 2.234 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.2461, allocations: 4 kB / 436.9 MB, free: 2.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000205/0.2463, allocations: 109.4 kB / 437 MB, free: 2.117 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.2463, allocations: 4 kB / 437 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.2463, allocations: 0 / 437 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.2463, allocations: 4 kB / 437 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.409e-05/0.2464, allocations: 19.98 kB / 437 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.2464, allocations: 4 kB / 437 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.88e-05/0.2465, allocations: 4.219 kB / 437 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.356e-06/0.2465, allocations: 4 kB / 437 MB, free: 2.078 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.0001076/0.2466, allocations: 129.7 kB / 437.1 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000136/0.2467, allocations: 73.58 kB / 437.2 MB, free: 1.863 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.847e-05/0.2468, allocations: 12.36 kB / 437.2 MB, free: 1.848 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.2468, allocations: 4 kB / 437.2 MB, free: 1.844 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.2468, allocations: 0 / 437.2 MB, free: 1.844 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.2468, allocations: 3.984 kB / 437.2 MB, free: 1.84 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001462/0.2469, allocations: 148.7 kB / 437.4 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.2469, allocations: 4 kB / 437.4 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.565e-05/0.247, allocations: 15.92 kB / 437.4 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.247, allocations: 0 / 437.4 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.798e-06/0.247, allocations: 4.25 kB / 437.4 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.247, allocations: 4 kB / 437.4 MB, free: 1.625 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.247, allocations: 4 kB / 437.4 MB, free: 1.621 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002291/0.2473, allocations: 129.8 kB / 437.5 MB, free: 1.473 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.936e-05/0.2473, allocations: 15.89 kB / 437.6 MB, free: 1.457 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.683e-05/0.2473, allocations: 7.984 kB / 437.6 MB, free: 1.449 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.452e-05/0.2474, allocations: 4 kB / 437.6 MB, free: 1.445 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.318e-05/0.2474, allocations: 4 kB / 437.6 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.714e-06/0.2474, allocations: 0 / 437.6 MB, free: 1.441 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.648e-05/0.2475, allocations: 103.2 kB / 437.7 MB, free: 1.34 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2475, allocations: 192 / 437.7 MB, free: 1.34 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002233/0.2477, allocations: 8 kB / 437.7 MB, free: 1.332 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.0001171/0.2479, allocations: 111.1 kB / 437.8 MB, free: 1.215 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002052/0.2481, allocations: 51.91 kB / 437.8 MB, free: 1.164 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2481, allocations: 0 / 437.8 MB, free: 1.164 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.862e-05/0.2481, allocations: 12 kB / 437.8 MB, free: 1.152 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007394/0.2488, allocations: 0.7213 MB / 438.6 MB, free: 420 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004148/0.2493, allocations: 217.2 kB / 438.8 MB, free: 168 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004022/0.2497, allocations: 0.6924 MB / 439.5 MB, free: 15.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.677e-05/0.2497, allocations: 11.44 kB / 439.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2497, allocations: 0 / 439.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of Templates: time 0.0027/0.2524, allocations: 0.9828 MB / 440.5 MB, free: 14.45 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins1/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: 6.526654288871214]