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.001687/0.001687, allocations: 108.6 kB / 21.18 MB, free: 0.7539 MB / 14.72 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.001838/0.001838, allocations: 193.1 kB / 24.47 MB, free: 4.156 MB / 14.72 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.46/1.46, allocations: 225.6 MB / 253.3 MB, free: 13 MB / 206.1 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 0.001518/0.001518, allocations: 47.92 kB / 371.7 MB, free: 9.426 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2267/0.2282, allocations: 52.18 MB / 423.9 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.00283/0.231, allocations: 1.616 MB / 425.5 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007627/0.2318, allocations: 447 kB / 425.9 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.269e-05/0.2319, allocations: 3.938 kB / 425.9 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.923e-05/0.2319, allocations: 3.938 kB / 425.9 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001547/0.232, allocations: 23.86 kB / 426 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001963/0.2322, allocations: 38.89 kB / 426 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001225/0.2324, allocations: 71.77 kB / 426.1 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.676e-05/0.2324, allocations: 11.98 kB / 426.1 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001048/0.2326, allocations: 27.92 kB / 426.1 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.661e-05/0.2326, allocations: 35.83 kB / 426.1 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.883e-05/0.2326, allocations: 8 kB / 426.2 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.353e-05/0.2327, allocations: 4 kB / 426.2 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.492e-05/0.2327, allocations: 11.94 kB / 426.2 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.503e-05/0.2327, allocations: 31.8 kB / 426.2 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001259/0.2329, allocations: 67.38 kB / 426.3 MB, free: 12.29 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.2329, allocations: 0 / 426.3 MB, free: 12.29 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.2329, allocations: 0 / 426.3 MB, free: 12.29 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.2329, allocations: 0 / 426.3 MB, free: 12.29 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.0005348/0.2334, allocations: 299.7 kB / 426.6 MB, free: 11.96 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.167e-05/0.2334, allocations: 8.031 kB / 426.6 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.971e-05/0.2335, allocations: 8.891 kB / 426.6 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002338/0.2337, allocations: 146.3 kB / 426.7 MB, free: 11.78 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.0001087/0.2338, allocations: 38.25 kB / 426.8 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.558e-05/0.2338, allocations: 4.375 kB / 426.8 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003906/0.2342, allocations: 173 kB / 426.9 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.2342, allocations: 0 / 426.9 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.068e-05/0.2343, allocations: 0 / 426.9 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.2343, allocations: 0 / 426.9 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001238/0.2344, allocations: 35.97 kB / 427 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001907/0.2346, allocations: 153.6 kB / 427.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002654/0.2348, allocations: 97.12 kB / 427.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.442e-05/0.2349, allocations: 37.7 kB / 427.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.527e-05/0.235, allocations: 0 / 427.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.412e-05/0.235, allocations: 46.44 kB / 427.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.002e-06/0.235, allocations: 0 / 427.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.000329/0.2353, allocations: 109.8 kB / 427.4 MB, free: 10.99 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.091e-05/0.2354, allocations: 89.11 kB / 427.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/0.2355, allocations: 121.8 kB / 427.6 MB, free: 10.76 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.981e-05/0.2355, allocations: 29.7 kB / 427.6 MB, free: 10.72 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.823e-05/0.2356, allocations: 88.27 kB / 427.7 MB, free: 10.63 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.509e-05/0.2356, allocations: 15.94 kB / 427.7 MB, free: 10.62 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.846e-05/0.2356, allocations: 17.72 kB / 427.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.2358, allocations: 318.8 kB / 428.1 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.527e-05/0.2358, allocations: 23.98 kB / 428.1 MB, free: 10.25 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.961e-05/0.2359, allocations: 58 kB / 428.1 MB, free: 10.17 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001457/0.2361, allocations: 77.88 kB / 428.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.2361, allocations: 0 / 428.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001884/0.2363, allocations: 105.4 kB / 428.3 MB, free: 9.965 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.2363, allocations: 11.28 kB / 428.3 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.2363, allocations: 0 / 428.3 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.815e-05/0.2363, allocations: 4 kB / 428.3 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.635e-05/0.2364, allocations: 24.14 kB / 428.4 MB, free: 9.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.77e-06/0.2364, allocations: 0 / 428.4 MB, free: 9.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.429e-05/0.2364, allocations: 7.938 kB / 428.4 MB, free: 9.922 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.967e-06/0.2364, allocations: 4 kB / 428.4 MB, free: 9.918 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.0001051/0.2366, allocations: 117.8 kB / 428.5 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001348/0.2367, allocations: 85.5 kB / 428.6 MB, free: 9.703 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.642e-05/0.2367, allocations: 8.375 kB / 428.6 MB, free: 9.691 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.2367, allocations: 0 / 428.6 MB, free: 9.691 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.2367, allocations: 0 / 428.6 MB, free: 9.691 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.2367, allocations: 8 kB / 428.6 MB, free: 9.684 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001474/0.2369, allocations: 156.6 kB / 428.7 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.2369, allocations: 192 / 428.7 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.78e-05/0.237, allocations: 11.94 kB / 428.8 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.237, allocations: 7.938 kB / 428.8 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.237, allocations: 3.984 kB / 428.8 MB, free: 9.465 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.237, allocations: 0 / 428.8 MB, free: 9.465 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.237, allocations: 0 / 428.8 MB, free: 9.465 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002332/0.2372, allocations: 125.9 kB / 428.9 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.065e-05/0.2373, allocations: 15.88 kB / 428.9 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.656e-05/0.2373, allocations: 8 kB / 428.9 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.107e-05/0.2373, allocations: 8.109 kB / 428.9 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.574e-05/0.2374, allocations: 4 kB / 428.9 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/0.2374, allocations: 4 kB / 428.9 MB, free: 9.281 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.326e-05/0.2375, allocations: 95.27 kB / 429 MB, free: 9.188 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2375, allocations: 0 / 429 MB, free: 9.188 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002126/0.2377, allocations: 16 kB / 429 MB, free: 9.172 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.0001197/0.2378, allocations: 103.2 kB / 429.1 MB, free: 9.062 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001869/0.238, allocations: 51.86 kB / 429.2 MB, free: 9.012 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.238, allocations: 0 / 429.2 MB, free: 9.012 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.836e-05/0.238, allocations: 11.98 kB / 429.2 MB, free: 9 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007202/0.2387, allocations: 0.7215 MB / 429.9 MB, free: 8.258 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004143/0.2392, allocations: 208.8 kB / 430.1 MB, free: 8.023 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003485/0.2395, allocations: 0.7 MB / 430.8 MB, free: 7.297 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.703e-05/0.2395, allocations: 11.44 kB / 430.8 MB, free: 7.285 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2395, allocations: 4.062 kB / 430.8 MB, free: 7.281 MB / 334.1 MB Notification: Performance of Templates: time 0.002682/0.2422, allocations: 0.9607 MB / 431.8 MB, free: 6.324 MB / 334.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins1/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: 6.673868509940803]