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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001558/0.001558, allocations: 109.4 kB / 17.06 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001533/0.001533, allocations: 200 kB / 18.01 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.544/1.544, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 51.92 kB / 351.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4383/0.4396, allocations: 49.43 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.003195/0.4429, allocations: 1.605 MB / 402.3 MB, free: 7.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005577/0.4435, allocations: 191.3 kB / 402.5 MB, free: 7.082 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001013/0.4436, allocations: 0 / 402.5 MB, free: 7.082 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001261/0.4437, allocations: 19.86 kB / 402.5 MB, free: 7.062 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001353/0.4439, allocations: 7.875 kB / 402.5 MB, free: 7.055 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002535/0.4441, allocations: 55.81 kB / 402.6 MB, free: 7 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001374/0.4443, allocations: 59.84 kB / 402.7 MB, free: 6.941 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001579/0.4444, allocations: 43.92 kB / 402.7 MB, free: 6.898 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.337e-05/0.4445, allocations: 27.91 kB / 402.7 MB, free: 6.871 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.55e-05/0.4446, allocations: 39.78 kB / 402.8 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.387e-05/0.4446, allocations: 4 kB / 402.8 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.312e-05/0.4446, allocations: 4 kB / 402.8 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.549e-05/0.4447, allocations: 27.92 kB / 402.8 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.122e-05/0.4448, allocations: 43.67 kB / 402.8 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001617/0.4449, allocations: 87.58 kB / 402.9 MB, free: 6.668 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.4449, allocations: 4 kB / 402.9 MB, free: 6.664 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.4449, allocations: 4 kB / 402.9 MB, free: 6.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.445, allocations: 0 / 402.9 MB, free: 6.66 MB / 318.1 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.000666/0.4456, allocations: 406.7 kB / 403.3 MB, free: 6.219 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.4457, allocations: 19.83 kB / 403.3 MB, free: 6.199 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.633e-05/0.4457, allocations: 12.75 kB / 403.4 MB, free: 6.188 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002438/0.446, allocations: 211.7 kB / 403.6 MB, free: 5.945 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.361e-05/0.446, allocations: 8.375 kB / 403.6 MB, free: 5.938 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.568e-05/0.446, allocations: 8.375 kB / 403.6 MB, free: 5.93 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004381/0.4465, allocations: 209.3 kB / 403.8 MB, free: 5.707 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.4465, allocations: 192 / 403.8 MB, free: 5.707 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.653e-05/0.4465, allocations: 7.938 kB / 403.8 MB, free: 5.699 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.631e-06/0.4465, allocations: 4 kB / 403.8 MB, free: 5.695 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000129/0.4467, allocations: 55.91 kB / 403.9 MB, free: 5.641 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005093/0.4472, allocations: 381.8 kB / 404.2 MB, free: 5.211 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002028/0.4474, allocations: 135.8 kB / 404.4 MB, free: 5.051 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001223/0.4475, allocations: 70.61 kB / 404.4 MB, free: 4.973 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.002e-05/0.4476, allocations: 3.984 kB / 404.4 MB, free: 4.969 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.495e-05/0.4476, allocations: 34.56 kB / 404.5 MB, free: 4.926 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.624e-06/0.4476, allocations: 4 kB / 404.5 MB, free: 4.922 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004114/0.448, allocations: 169.3 kB / 404.6 MB, free: 4.75 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.688e-05/0.4481, allocations: 118.7 kB / 404.8 MB, free: 4.609 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001427/0.4483, allocations: 150.2 kB / 404.9 MB, free: 4.453 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.977e-05/0.4483, allocations: 29.7 kB / 404.9 MB, free: 4.418 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.011e-05/0.4484, allocations: 96.41 kB / 405 MB, free: 4.316 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.624e-05/0.4484, allocations: 12.09 kB / 405 MB, free: 4.305 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.629e-05/0.4484, allocations: 33.7 kB / 405.1 MB, free: 4.266 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.4486, allocations: 318.8 kB / 405.4 MB, free: 3.945 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.532e-05/0.4486, allocations: 19.98 kB / 405.4 MB, free: 3.926 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.246e-05/0.4487, allocations: 89.42 kB / 405.5 MB, free: 3.805 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001367/0.4489, allocations: 113.2 kB / 405.6 MB, free: 3.66 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.274e-05/0.4489, allocations: 3.938 kB / 405.6 MB, free: 3.656 MB / 318.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001999/0.4491, allocations: 125.4 kB / 405.7 MB, free: 3.527 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.4491, allocations: 4 kB / 405.7 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.4491, allocations: 4 kB / 405.7 MB, free: 3.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.4491, allocations: 7.984 kB / 405.7 MB, free: 3.512 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001114/0.4493, allocations: 23.94 kB / 405.8 MB, free: 3.488 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.073e-05/0.4493, allocations: 3.984 kB / 405.8 MB, free: 3.484 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.702e-05/0.4493, allocations: 19.84 kB / 405.8 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.114e-05/0.4494, allocations: 8.344 kB / 405.8 MB, free: 3.457 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 12 (sample1.u,integerConstant.y,sum2.y,sum2.u[2],sum2.u[1],sum1.y,sum1.u[2],sum1.u[1],sample2.y,hold1.y,hold1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 0.0001548/0.4495, allocations: 137.7 kB / 405.9 MB, free: 3.312 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001675/0.4497, allocations: 105.5 kB / 406 MB, free: 3.203 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.261e-05/0.4498, allocations: 20.7 kB / 406 MB, free: 3.18 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.4498, allocations: 0 / 406 MB, free: 3.18 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.4498, allocations: 0 / 406 MB, free: 3.18 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.4498, allocations: 7.984 kB / 406.1 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002494/0.45, allocations: 197.4 kB / 406.2 MB, free: 2.93 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.4501, allocations: 7.984 kB / 406.3 MB, free: 2.922 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001111/0.4502, allocations: 27.98 kB / 406.3 MB, free: 2.895 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.4502, allocations: 3.938 kB / 406.3 MB, free: 2.891 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.988e-06/0.4502, allocations: 480 / 406.3 MB, free: 2.891 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.4502, allocations: 4 kB / 406.3 MB, free: 2.887 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.4502, allocations: 0 / 406.3 MB, free: 2.887 MB / 318.1 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:332:7-332: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:342:7-342: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:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:8011:5-8011: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.0004424/0.4507, allocations: 384.8 kB / 406.7 MB, free: 2.492 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.337e-05/0.4508, allocations: 104.9 kB / 406.8 MB, free: 2.371 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.902e-05/0.4508, allocations: 4 kB / 406.8 MB, free: 2.367 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.4509, allocations: 8 kB / 406.8 MB, free: 2.359 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.006e-05/0.4509, allocations: 4 kB / 406.8 MB, free: 2.355 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.456e-06/0.451, allocations: 4 kB / 406.8 MB, free: 2.352 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.711e-05/0.4511, allocations: 122.1 kB / 406.9 MB, free: 2.234 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4511, allocations: 0 / 406.9 MB, free: 2.234 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003001/0.4514, allocations: 12 kB / 406.9 MB, free: 2.223 MB / 318.1 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.0001164/0.4515, allocations: 111.1 kB / 407 MB, free: 2.105 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002329/0.4517, allocations: 91.77 kB / 407.1 MB, free: 2.016 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.4517, allocations: 0 / 407.1 MB, free: 2.016 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.836e-05/0.4518, allocations: 8 kB / 407.1 MB, free: 2.008 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004775/0.4523, allocations: 71.47 kB / 407.2 MB, free: 1.941 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005234/0.4528, allocations: 248.7 kB / 407.4 MB, free: 1.668 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003073/0.4531, allocations: 0.7117 MB / 408.2 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.09e-05/0.4532, allocations: 12.48 kB / 408.2 MB, free: 0.918 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.067e-05/0.4532, allocations: 11.44 kB / 408.2 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4532, allocations: 0 / 408.2 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of Templates: time 0.003796/0.457, allocations: 0.9444 MB / 409.1 MB, free: 15.97 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) 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) Reference file matches