Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001372/0.001372, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001601/0.001601, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 227.4 MB / 246.9 MB, free: 9.059 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001307, allocations: 58.38 kB / 306.9 MB, free: 0.8438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1149, allocations: 50.53 MB / 357.4 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.003645/0.1186, allocations: 1.671 MB / 359.1 MB, free: 12.63 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005318/0.1191, allocations: 179.5 kB / 359.3 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001283/0.1193, allocations: 4 kB / 359.3 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001238/0.1195, allocations: 3.938 kB / 359.3 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001516/0.1196, allocations: 7.922 kB / 359.3 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000292/0.1199, allocations: 51.78 kB / 359.3 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001334/0.1201, allocations: 63.78 kB / 359.4 MB, free: 12.33 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001519/0.1202, allocations: 43.95 kB / 359.4 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.581e-05/0.1203, allocations: 27.86 kB / 359.5 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001058/0.1204, allocations: 35.84 kB / 359.5 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.499e-05/0.1205, allocations: 4 kB / 359.5 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.8e-05/0.1205, allocations: 4 kB / 359.5 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.021e-05/0.1205, allocations: 19.92 kB / 359.5 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.796e-05/0.1206, allocations: 47.67 kB / 359.6 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001095/0.1207, allocations: 59.89 kB / 359.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1208, allocations: 0 / 359.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1208, allocations: 0 / 359.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.54e-06/0.1208, allocations: 0 / 359.6 MB, free: 12.09 MB / 302.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.0006549/0.1214, allocations: 417.4 kB / 360.1 MB, free: 11.63 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.1215, allocations: 8.031 kB / 360.1 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.344e-05/0.1215, allocations: 20.83 kB / 360.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002354/0.1218, allocations: 207.5 kB / 360.3 MB, free: 11.37 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.1218, allocations: 8.375 kB / 360.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.175e-05/0.1218, allocations: 8.375 kB / 360.3 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00046/0.1223, allocations: 206.2 kB / 360.5 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.1223, allocations: 4.125 kB / 360.5 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.527e-05/0.1223, allocations: 11.94 kB / 360.5 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.635e-06/0.1224, allocations: 4 kB / 360.5 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000136/0.1225, allocations: 51.95 kB / 360.6 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005123/0.123, allocations: 381.7 kB / 360.9 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002132/0.1232, allocations: 131.8 kB / 361.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001278/0.1234, allocations: 82.66 kB / 361.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.535e-05/0.1234, allocations: 7.938 kB / 361.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.484e-05/0.1235, allocations: 38.5 kB / 361.2 MB, free: 10.33 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.192e-06/0.1235, allocations: 3.938 kB / 361.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004203/0.1239, allocations: 165.4 kB / 361.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.67e-05/0.124, allocations: 110.8 kB / 361.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001395/0.1241, allocations: 154.2 kB / 361.6 MB, free: 9.863 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.741e-05/0.1242, allocations: 33.7 kB / 361.7 MB, free: 9.824 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.066e-05/0.1242, allocations: 96.66 kB / 361.7 MB, free: 9.723 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.428e-05/0.1243, allocations: 4 kB / 361.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.25e-05/0.1243, allocations: 37.61 kB / 361.8 MB, free: 9.676 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.1244, allocations: 318.8 kB / 362.1 MB, free: 9.355 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.924e-05/0.1245, allocations: 19.98 kB / 362.1 MB, free: 9.336 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.202e-05/0.1246, allocations: 89.38 kB / 362.2 MB, free: 9.215 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001605/0.1248, allocations: 113.3 kB / 362.3 MB, free: 9.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.1248, allocations: 3.938 kB / 362.3 MB, free: 9.066 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000215/0.125, allocations: 129.3 kB / 362.4 MB, free: 8.934 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.125, allocations: 8 kB / 362.5 MB, free: 8.926 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.864e-06/0.1251, allocations: 4 kB / 362.5 MB, free: 8.922 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.1251, allocations: 0 / 362.5 MB, free: 8.922 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001136/0.1252, allocations: 23.98 kB / 362.5 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.034e-05/0.1252, allocations: 8.281 kB / 362.5 MB, free: 8.891 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.179e-05/0.1253, allocations: 12 kB / 362.5 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.372e-05/0.1253, allocations: 4 kB / 362.5 MB, free: 8.875 MB / 302.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.0001243/0.1254, allocations: 149.6 kB / 362.7 MB, free: 8.719 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001795/0.1256, allocations: 105.4 kB / 362.8 MB, free: 8.609 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.193e-05/0.1257, allocations: 21.17 kB / 362.8 MB, free: 8.586 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.1257, allocations: 4 kB / 362.8 MB, free: 8.582 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1257, allocations: 0 / 362.8 MB, free: 8.582 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.1257, allocations: 4 kB / 362.8 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002613/0.126, allocations: 197.5 kB / 363 MB, free: 8.336 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.126, allocations: 7.938 kB / 363 MB, free: 8.328 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001154/0.1261, allocations: 23.98 kB / 363 MB, free: 8.305 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.1261, allocations: 3.938 kB / 363 MB, free: 8.301 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.365e-05/0.1262, allocations: 8 kB / 363 MB, free: 8.293 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.1262, allocations: 0 / 363 MB, free: 8.293 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1262, allocations: 0 / 363 MB, free: 8.293 MB / 302.1 MB [/var/lib/jenkins1/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/jenkins1/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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7947:5-7947: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.0004624/0.1266, allocations: 388.3 kB / 363.4 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.308e-05/0.1267, allocations: 97 kB / 363.5 MB, free: 7.777 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.103e-05/0.1268, allocations: 0 / 363.5 MB, free: 7.777 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001153/0.1269, allocations: 19.92 kB / 363.5 MB, free: 7.758 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.386e-05/0.1269, allocations: 3.938 kB / 363.5 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-06/0.1269, allocations: 4 kB / 363.5 MB, free: 7.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001005/0.127, allocations: 126.4 kB / 363.6 MB, free: 7.629 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.127, allocations: 0 / 363.6 MB, free: 7.629 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002916/0.1273, allocations: 8 kB / 363.7 MB, free: 7.621 MB / 302.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.0001264/0.1275, allocations: 113.2 kB / 363.8 MB, free: 7.5 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002233/0.1277, allocations: 84.05 kB / 363.8 MB, free: 7.418 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1277, allocations: 0 / 363.8 MB, free: 7.418 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.151e-05/0.1278, allocations: 15.92 kB / 363.9 MB, free: 7.402 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004762/0.1282, allocations: 64.69 kB / 363.9 MB, free: 7.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005111/0.1288, allocations: 303.2 kB / 364.2 MB, free: 7.004 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003058/0.1291, allocations: 0.7121 MB / 364.9 MB, free: 6.266 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.314e-05/0.1291, allocations: 11.44 kB / 364.9 MB, free: 6.258 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1291, allocations: 4 kB / 364.9 MB, free: 6.254 MB / 302.1 MB Notification: Performance of Templates: time 0.003038/0.1322, allocations: 1.164 MB / 366.1 MB, free: 5.09 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches