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.001272/0.001272, allocations: 107.6 kB / 21.18 MB, free: 0.5273 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.001427/0.001427, allocations: 207.5 kB / 24.48 MB, free: 3.695 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.661/1.661, allocations: 230.6 MB / 258.3 MB, free: 7.809 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.001495/0.001495, allocations: 43.94 kB / 379 MB, free: 2.449 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2449/0.2464, allocations: 53.36 MB / 432.3 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003001/0.2494, allocations: 1.604 MB / 433.9 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000948/0.2503, allocations: 486.8 kB / 434.4 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.442e-05/0.2504, allocations: 3.938 kB / 434.4 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.269e-05/0.2504, allocations: 3.938 kB / 434.4 MB, free: 4.617 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000159/0.2506, allocations: 19.86 kB / 434.4 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002463/0.2508, allocations: 55.81 kB / 434.5 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001293/0.251, allocations: 67.78 kB / 434.6 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.679e-05/0.2511, allocations: 11.98 kB / 434.6 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001522/0.2512, allocations: 43.78 kB / 434.6 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.607e-05/0.2513, allocations: 31.84 kB / 434.6 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.552e-05/0.2513, allocations: 8 kB / 434.7 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.038e-05/0.2513, allocations: 11.98 kB / 434.7 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.293e-05/0.2514, allocations: 7.984 kB / 434.7 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.684e-05/0.2514, allocations: 27.86 kB / 434.7 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001432/0.2516, allocations: 74.33 kB / 434.8 MB, free: 4.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.2516, allocations: 0 / 434.8 MB, free: 4.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2516, allocations: 0 / 434.8 MB, free: 4.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.2516, allocations: 0 / 434.8 MB, free: 4.27 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.0005818/0.2521, allocations: 306 kB / 435.1 MB, free: 3.941 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.2522, allocations: 8.031 kB / 435.1 MB, free: 3.934 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002326/0.2524, allocations: 20.88 kB / 435.1 MB, free: 3.914 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002556/0.2527, allocations: 138.3 kB / 435.2 MB, free: 3.754 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 0.0001055/0.2528, allocations: 38.25 kB / 435.3 MB, free: 3.711 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.755e-05/0.2528, allocations: 8.375 kB / 435.3 MB, free: 3.703 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003987/0.2532, allocations: 165 kB / 435.4 MB, free: 3.523 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.2532, allocations: 3.938 kB / 435.4 MB, free: 3.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.44e-05/0.2532, allocations: 4 kB / 435.4 MB, free: 3.516 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.2532, allocations: 4 kB / 435.5 MB, free: 3.512 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001343/0.2534, allocations: 31.97 kB / 435.5 MB, free: 3.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001588/0.2535, allocations: 130.2 kB / 435.6 MB, free: 3.32 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002754/0.2538, allocations: 85.25 kB / 435.7 MB, free: 3.219 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.895e-05/0.2539, allocations: 37.7 kB / 435.7 MB, free: 3.176 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.571e-05/0.2539, allocations: 0 / 435.7 MB, free: 3.176 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.46e-05/0.2539, allocations: 34.56 kB / 435.8 MB, free: 3.133 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.042e-06/0.2539, allocations: 0 / 435.8 MB, free: 3.133 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003459/0.2543, allocations: 117.5 kB / 435.9 MB, free: 3.012 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.62e-05/0.2544, allocations: 93.16 kB / 436 MB, free: 2.902 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001162/0.2545, allocations: 125.8 kB / 436.1 MB, free: 2.77 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.412e-05/0.2545, allocations: 33.7 kB / 436.1 MB, free: 2.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.11e-05/0.2545, allocations: 88.12 kB / 436.2 MB, free: 2.641 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.831e-05/0.2546, allocations: 11.95 kB / 436.2 MB, free: 2.629 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.884e-05/0.2546, allocations: 17.72 kB / 436.2 MB, free: 2.605 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.2548, allocations: 322.8 kB / 436.6 MB, free: 2.281 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.33e-05/0.2548, allocations: 15.98 kB / 436.6 MB, free: 2.266 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.331e-05/0.2549, allocations: 54 kB / 436.6 MB, free: 2.191 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001326/0.255, allocations: 81.88 kB / 436.7 MB, free: 2.09 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.255, allocations: 0 / 436.7 MB, free: 2.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001943/0.2552, allocations: 101.7 kB / 436.8 MB, free: 1.984 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.2552, allocations: 13.97 kB / 436.8 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.2553, allocations: 3.984 kB / 436.8 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.838e-05/0.2553, allocations: 4 kB / 436.8 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.406e-05/0.2554, allocations: 19.94 kB / 436.8 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.74e-06/0.2554, allocations: 192 / 436.8 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.323e-05/0.2554, allocations: 7.984 kB / 436.9 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-06/0.2554, allocations: 7.938 kB / 436.9 MB, free: 1.93 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.0001162/0.2555, allocations: 121.7 kB / 437 MB, free: 1.801 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001389/0.2557, allocations: 81.52 kB / 437.1 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.918e-05/0.2557, allocations: 16.42 kB / 437.1 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.2557, allocations: 0 / 437.1 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.2557, allocations: 4 kB / 437.1 MB, free: 1.691 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.2557, allocations: 0 / 437.1 MB, free: 1.691 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001171/0.2558, allocations: 117.3 kB / 437.2 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.2558, allocations: 320 / 437.2 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.711e-05/0.2559, allocations: 11.98 kB / 437.2 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.721e-06/0.2559, allocations: 4 kB / 437.2 MB, free: 1.531 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.2559, allocations: 7.938 kB / 437.2 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.2559, allocations: 3.938 kB / 437.2 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2559, allocations: 4 kB / 437.2 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002465/0.2562, allocations: 129.8 kB / 437.4 MB, free: 1.367 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.078e-05/0.2562, allocations: 11.94 kB / 437.4 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.621e-05/0.2563, allocations: 7.938 kB / 437.4 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.182e-05/0.2563, allocations: 4 kB / 437.4 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.228e-05/0.2564, allocations: 3.984 kB / 437.4 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.405e-05/0.2564, allocations: 8 kB / 437.4 MB, free: 1.332 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.395e-05/0.2564, allocations: 98.5 kB / 437.5 MB, free: 1.238 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2564, allocations: 0 / 437.5 MB, free: 1.238 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002068/0.2566, allocations: 12 kB / 437.5 MB, free: 1.227 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.0001229/0.2568, allocations: 99.25 kB / 437.6 MB, free: 1.121 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001896/0.257, allocations: 55.91 kB / 437.6 MB, free: 1.066 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.257, allocations: 0 / 437.6 MB, free: 1.066 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.4e-05/0.257, allocations: 15.92 kB / 437.7 MB, free: 1.051 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007203/0.2577, allocations: 0.7185 MB / 438.4 MB, free: 316 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004122/0.2581, allocations: 213.3 kB / 438.6 MB, free: 68 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.25e-05/0.2582, allocations: 75.33 kB / 438.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.893e-05/0.2583, allocations: 19.42 kB / 438.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2583, allocations: 0 / 438.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of Templates: time 0.0026/0.2609, allocations: 0.989 MB / 439.7 MB, free: 14.96 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.902901619992917]