Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.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.001887/0.001887, allocations: 91.92 kB / 20.96 MB, free: 3.457 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.001956/0.001956, allocations: 145.5 kB / 24.26 MB, free: 164 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.608/1.608, allocations: 173.3 MB / 200.8 MB, free: 9.324 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.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.754e-06/1.754e-06, allocations: 0 / 267.3 MB, free: 6.75 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.84e-05/3.016e-05, allocations: 6.312 kB / 267.3 MB, free: 6.742 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.004945/0.004975, allocations: 1.616 MB / 268.9 MB, free: 5.113 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007804/0.005755, allocations: 179.4 kB / 269.1 MB, free: 4.938 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001167/0.005872, allocations: 7.938 kB / 269.1 MB, free: 4.93 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001368/0.006009, allocations: 11.86 kB / 269.1 MB, free: 4.918 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001716/0.00618, allocations: 15.84 kB / 269.1 MB, free: 4.902 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003316/0.006512, allocations: 51.83 kB / 269.2 MB, free: 4.852 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001971/0.006709, allocations: 67.58 kB / 269.3 MB, free: 4.785 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001524/0.006862, allocations: 31.92 kB / 269.3 MB, free: 4.754 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.764e-05/0.006959, allocations: 35.91 kB / 269.3 MB, free: 4.719 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001283/0.007087, allocations: 31.89 kB / 269.4 MB, free: 4.688 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.469e-05/0.007122, allocations: 4 kB / 269.4 MB, free: 4.684 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.69e-05/0.007149, allocations: 12 kB / 269.4 MB, free: 4.672 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.818e-05/0.007227, allocations: 27.91 kB / 269.4 MB, free: 4.645 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.811e-05/0.007285, allocations: 19.92 kB / 269.4 MB, free: 4.625 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002437/0.007529, allocations: 91.62 kB / 269.5 MB, free: 4.535 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.007532, allocations: 0 / 269.5 MB, free: 4.535 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.007533, allocations: 4 kB / 269.5 MB, free: 4.531 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.201e-06/0.00754, allocations: 0 / 269.5 MB, free: 4.531 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0008723/0.008412, allocations: 435.8 kB / 269.9 MB, free: 4.066 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.008457, allocations: 8.031 kB / 269.9 MB, free: 4.059 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.782e-05/0.008545, allocations: 20.84 kB / 270 MB, free: 4.039 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003453/0.00889, allocations: 160.4 kB / 270.1 MB, free: 3.855 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.426e-05/0.008915, allocations: 12.28 kB / 270.1 MB, free: 3.844 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.269e-05/0.008947, allocations: 8.375 kB / 270.1 MB, free: 3.836 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006003/0.009548, allocations: 191.9 kB / 270.3 MB, free: 3.625 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.009562, allocations: 4.125 kB / 270.3 MB, free: 3.621 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/0.00958, allocations: 4.375 kB / 270.3 MB, free: 3.617 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.00959, allocations: 4.375 kB / 270.3 MB, free: 3.613 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001689/0.009759, allocations: 35.92 kB / 270.4 MB, free: 3.578 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000751/0.01051, allocations: 426.3 kB / 270.8 MB, free: 3.117 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003395/0.01085, allocations: 133.2 kB / 270.9 MB, free: 2.949 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002109/0.01106, allocations: 67.17 kB / 271 MB, free: 2.871 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.794e-05/0.0111, allocations: 0 / 271 MB, free: 2.871 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.843e-05/0.01116, allocations: 45.31 kB / 271 MB, free: 2.816 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 1.382e-06/0.01116, allocations: 0 / 271 MB, free: 2.816 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0006006/0.01176, allocations: 137.5 kB / 271.2 MB, free: 2.676 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001507/0.01191, allocations: 110.8 kB / 271.3 MB, free: 2.543 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000322/0.01223, allocations: 229.1 kB / 271.5 MB, free: 2.305 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.518e-05/0.01227, allocations: 33.64 kB / 271.5 MB, free: 2.266 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001468/0.01241, allocations: 147.1 kB / 271.7 MB, free: 2.113 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.279e-05/0.01243, allocations: 0 / 271.7 MB, free: 2.113 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.966e-05/0.01252, allocations: 35.31 kB / 271.7 MB, free: 2.07 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003786/0.01289, allocations: 0.4923 MB / 272.2 MB, free: 1.566 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.029e-05/0.01295, allocations: 4 kB / 272.2 MB, free: 1.562 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.374e-05/0.01301, allocations: 23.52 kB / 272.2 MB, free: 1.531 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001034/0.01311, allocations: 35.38 kB / 272.3 MB, free: 1.488 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.01311, allocations: 0 / 272.3 MB, free: 1.488 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001831/0.0133, allocations: 57.58 kB / 272.3 MB, free: 1.426 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.613e-05/0.01332, allocations: 10.91 kB / 272.3 MB, free: 1.418 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.01333, allocations: 4 kB / 272.3 MB, free: 1.414 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.01335, allocations: 0 / 272.3 MB, free: 1.414 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.579e-05/0.01343, allocations: 7.984 kB / 272.3 MB, free: 1.406 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.01344, allocations: 4.062 kB / 272.3 MB, free: 1.402 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.624e-05/0.01349, allocations: 0 / 272.3 MB, free: 1.402 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.055e-06/0.01349, allocations: 4 kB / 272.4 MB, free: 1.398 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample1.u,hold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.000186/0.01368, allocations: 160.6 kB / 272.5 MB, free: 1.23 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002681/0.01395, allocations: 85.58 kB / 272.6 MB, free: 1.141 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.262e-05/0.01403, allocations: 24.69 kB / 272.6 MB, free: 1.113 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.01403, allocations: 4 kB / 272.6 MB, free: 1.109 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.01404, allocations: 0 / 272.6 MB, free: 1.109 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.01404, allocations: 0 / 272.6 MB, free: 1.109 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000405/0.01445, allocations: 156.5 kB / 272.8 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.01445, allocations: 4 kB / 272.8 MB, free: 0.918 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001913/0.01464, allocations: 23.98 kB / 272.8 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.509e-06/0.01465, allocations: 0 / 272.8 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.01466, allocations: 0 / 272.8 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-05/0.01467, allocations: 15.88 kB / 272.8 MB, free: 0.8789 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.01467, allocations: 0 / 272.8 MB, free: 0.8789 MB / 250.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:337:7-337:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed (Purely discrete algebraic loops cannot be solved by iterative processes. Try to break them open using the delay() operator.) sum1.y sum2.u[2] sum2.y hold1.u hold1.y sample2.y sum1.u[2] sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum1.u[2] = sample2.y sample2.y = $getPart(hold1.y) hold1.y = $getPart(hold1.u) hold1.u = sum2.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] sum2.u[2] = sum1.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:347:7-347:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: sum1.y sum2.u[2] sum2.y hold1.u hold1.y sample2.y sum1.u[2] equations: sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum1.u[2] = sample2.y sample2.y = $getPart(hold1.y) hold1.y = $getPart(hold1.u) hold1.u = sum2.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] sum2.u[2] = sum1.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:351:7-351:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:202:5-202:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:113:7-113:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:8001:5-8001:89:writable] Error: Internal error Transformation module sort components failed Warning: The optimization module detectJacobianSparsePattern failed. This module will be skipped and the transformation process continued. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007582/0.01543, allocations: 455.5 kB / 273.3 MB, free: 420 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001044/0.01554, allocations: 27.89 kB / 273.3 MB, free: 392 kB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.846e-05/0.01558, allocations: 8 kB / 273.3 MB, free: 384 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001932/0.01577, allocations: 3.938 kB / 273.3 MB, free: 380 kB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.792e-05/0.01582, allocations: 11.92 kB / 273.3 MB, free: 368 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.699e-05/0.01583, allocations: 4 kB / 273.3 MB, free: 364 kB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001967/0.01603, allocations: 155.2 kB / 273.5 MB, free: 208 kB / 250.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.01603, allocations: 0 / 273.5 MB, free: 208 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0005137/0.01654, allocations: 11.98 kB / 273.5 MB, free: 196 kB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (sample1.u,hold1.y,sample1.y,hold1.u,sample2.y,sum1.u[1],sum1.u[2],sum1.y,sum2.u[1],sum2.u[2],sum2.y,integerConstant.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * 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 Backend phase and start with SimCode phase: time 0.0001781/0.01672, allocations: 106.6 kB / 273.6 MB, free: 84 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002345/0.01696, allocations: 47.61 kB / 273.6 MB, free: 32 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.01696, allocations: 0 / 273.6 MB, free: 32 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.513e-05/0.01702, allocations: 15.69 kB / 273.6 MB, free: 12 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008081/0.01783, allocations: 66.7 kB / 273.7 MB, free: 15.95 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000714/0.01855, allocations: 238.8 kB / 273.9 MB, free: 15.67 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001826/0.01873, allocations: 104.4 kB / 274 MB, free: 15.55 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.057e-05/0.01876, allocations: 4 kB / 274 MB, free: 15.55 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.846e-05/0.01881, allocations: 12.5 kB / 274.1 MB, free: 15.54 MB / 266.7 MB Notification: Performance of SimCode: time 6.91e-07/0.01881, allocations: 0 / 274.1 MB, free: 15.54 MB / 266.7 MB Notification: Performance of Templates: time 0.006133/0.02494, allocations: 0.9408 MB / 275 MB, free: 14.61 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample2/Sample2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.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.556516522075981]