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.001473/0.001473, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001654/0.001654, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.588/1.588, allocations: 222.9 MB / 242.2 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001168, allocations: 47.14 kB / 301.3 MB, free: 5.852 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1025, allocations: 49.44 MB / 350.7 MB, free: 4.402 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.003475/0.106, allocations: 1.606 MB / 352.3 MB, free: 2.777 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005431/0.1066, allocations: 179.4 kB / 352.5 MB, free: 2.602 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001341/0.1067, allocations: 3.938 kB / 352.5 MB, free: 2.598 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001167/0.1069, allocations: 7.875 kB / 352.5 MB, free: 2.59 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001641/0.107, allocations: 19.92 kB / 352.5 MB, free: 2.57 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002735/0.1073, allocations: 47.83 kB / 352.6 MB, free: 2.523 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001315/0.1075, allocations: 63.84 kB / 352.7 MB, free: 2.461 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001499/0.1076, allocations: 31.98 kB / 352.7 MB, free: 2.43 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.395e-05/0.1077, allocations: 31.84 kB / 352.7 MB, free: 2.398 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001072/0.1078, allocations: 43.78 kB / 352.8 MB, free: 2.355 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.573e-05/0.1078, allocations: 4 kB / 352.8 MB, free: 2.352 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.781e-05/0.1079, allocations: 4 kB / 352.8 MB, free: 2.348 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.157e-05/0.1079, allocations: 27.92 kB / 352.8 MB, free: 2.32 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.782e-05/0.108, allocations: 43.67 kB / 352.8 MB, free: 2.277 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001606/0.1082, allocations: 87.64 kB / 352.9 MB, free: 2.191 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.1082, allocations: 0 / 352.9 MB, free: 2.191 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1082, allocations: 0 / 352.9 MB, free: 2.191 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.171e-06/0.1082, allocations: 0 / 352.9 MB, free: 2.191 MB / 286.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.0006416/0.1088, allocations: 411.2 kB / 353.3 MB, free: 1.738 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.1089, allocations: 11.89 kB / 353.3 MB, free: 1.727 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.826e-05/0.1089, allocations: 12.84 kB / 353.3 MB, free: 1.715 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002304/0.1092, allocations: 212 kB / 353.6 MB, free: 1.469 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.131e-05/0.1092, allocations: 384 / 353.6 MB, free: 1.469 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.675e-05/0.1092, allocations: 12.31 kB / 353.6 MB, free: 1.457 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004695/0.1097, allocations: 219.8 kB / 353.8 MB, free: 1.223 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.1097, allocations: 192 / 353.8 MB, free: 1.223 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.498e-05/0.1097, allocations: 7.938 kB / 353.8 MB, free: 1.215 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.1098, allocations: 4 kB / 353.8 MB, free: 1.211 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001337/0.1099, allocations: 55.89 kB / 353.8 MB, free: 1.156 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004845/0.1104, allocations: 385.8 kB / 354.2 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001992/0.1106, allocations: 131.8 kB / 354.4 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000124/0.1107, allocations: 78.61 kB / 354.4 MB, free: 492 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.859e-05/0.1108, allocations: 4 kB / 354.4 MB, free: 488 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.49e-05/0.1108, allocations: 30.56 kB / 354.5 MB, free: 448 kB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.233e-06/0.1108, allocations: 0 / 354.5 MB, free: 448 kB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004399/0.1112, allocations: 165.4 kB / 354.6 MB, free: 276 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.093e-05/0.1113, allocations: 115.1 kB / 354.7 MB, free: 136 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001588/0.1115, allocations: 165.8 kB / 354.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.331e-05/0.1115, allocations: 29.7 kB / 354.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.81e-05/0.1116, allocations: 88.42 kB / 355 MB, free: 15.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.379e-05/0.1116, allocations: 7.938 kB / 355 MB, free: 15.83 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.692e-05/0.1117, allocations: 41.61 kB / 355.1 MB, free: 15.78 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.1118, allocations: 318.8 kB / 355.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.216e-05/0.1119, allocations: 23.98 kB / 355.4 MB, free: 15.44 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.37e-05/0.112, allocations: 81.38 kB / 355.5 MB, free: 15.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001664/0.1122, allocations: 125.7 kB / 355.6 MB, free: 15.17 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.1122, allocations: 3.938 kB / 355.6 MB, free: 15.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002103/0.1124, allocations: 121.3 kB / 355.7 MB, free: 15.04 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.1124, allocations: 8.344 kB / 355.7 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.1124, allocations: 7.938 kB / 355.7 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.1124, allocations: 4 kB / 355.7 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.1126, allocations: 31.92 kB / 355.8 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.1126, allocations: 4 kB / 355.8 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.08e-05/0.1126, allocations: 4 kB / 355.8 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.137e-05/0.1127, allocations: 4 kB / 355.8 MB, free: 14.98 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.0001211/0.1128, allocations: 141.6 kB / 355.9 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001679/0.113, allocations: 109.5 kB / 356 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.659e-05/0.113, allocations: 24.69 kB / 356.1 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.113, allocations: 0 / 356.1 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/0.1131, allocations: 4 kB / 356.1 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.1131, allocations: 3.938 kB / 356.1 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002561/0.1133, allocations: 197.5 kB / 356.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.1133, allocations: 0 / 356.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001104/0.1134, allocations: 23.98 kB / 356.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.556e-06/0.1135, allocations: 0 / 356.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.23e-05/0.1135, allocations: 4 kB / 356.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1135, allocations: 4 kB / 356.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.1135, allocations: 0 / 356.3 MB, free: 14.41 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:7956:5-7956: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.000454/0.1139, allocations: 397.2 kB / 356.7 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.429e-05/0.114, allocations: 97 kB / 356.8 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.922e-05/0.1141, allocations: 0 / 356.8 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001137/0.1142, allocations: 11.98 kB / 356.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.883e-05/0.1142, allocations: 0 / 356.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.817e-06/0.1142, allocations: 4 kB / 356.8 MB, free: 13.87 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.27e-05/0.1143, allocations: 123.1 kB / 356.9 MB, free: 13.75 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1143, allocations: 0 / 356.9 MB, free: 13.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003021/0.1146, allocations: 16 kB / 356.9 MB, free: 13.73 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.0001406/0.1148, allocations: 111.1 kB / 357 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002624/0.1151, allocations: 87.83 kB / 357.1 MB, free: 13.53 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.1151, allocations: 0.6875 kB / 357.1 MB, free: 13.53 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.359e-05/0.1151, allocations: 19.98 kB / 357.1 MB, free: 13.51 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004751/0.1156, allocations: 71.91 kB / 357.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005467/0.1162, allocations: 277.5 kB / 357.5 MB, free: 13.13 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003401/0.1165, allocations: 0.7196 MB / 358.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.847e-05/0.1166, allocations: 11.44 kB / 358.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1166, allocations: 0 / 358.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of Templates: time 0.003238/0.1198, allocations: 1.163 MB / 359.4 MB, free: 11.21 MB / 302.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/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_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches