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.001373/0.001373, allocations: 110.3 kB / 17.28 MB, free: 6.219 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.001482/0.001482, allocations: 197.3 kB / 18.21 MB, free: 5.289 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.379/1.379, allocations: 222.9 MB / 241.9 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 44.02 kB / 300.8 MB, free: 6.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1265, allocations: 49.44 MB / 350.2 MB, free: 4.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.004225/0.1308, allocations: 1.655 MB / 351.9 MB, free: 3.078 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005907/0.1314, allocations: 183.4 kB / 352.1 MB, free: 2.898 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001427/0.1316, allocations: 4 kB / 352.1 MB, free: 2.895 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001475/0.1318, allocations: 7.875 kB / 352.1 MB, free: 2.887 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001812/0.132, allocations: 7.922 kB / 352.1 MB, free: 2.879 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003378/0.1323, allocations: 43.97 kB / 352.1 MB, free: 2.836 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001828/0.1325, allocations: 63.78 kB / 352.2 MB, free: 2.773 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002056/0.1327, allocations: 43.95 kB / 352.2 MB, free: 2.73 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.318e-05/0.1328, allocations: 19.88 kB / 352.3 MB, free: 2.711 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001545/0.133, allocations: 43.84 kB / 352.3 MB, free: 2.668 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.383e-05/0.133, allocations: 8 kB / 352.3 MB, free: 2.66 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.036e-05/0.133, allocations: 4 kB / 352.3 MB, free: 2.656 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.512e-05/0.1331, allocations: 23.91 kB / 352.3 MB, free: 2.633 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.14e-05/0.1332, allocations: 39.69 kB / 352.4 MB, free: 2.594 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001808/0.1334, allocations: 67.83 kB / 352.4 MB, free: 2.527 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.1334, allocations: 3.938 kB / 352.4 MB, free: 2.523 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.574e-06/0.1334, allocations: 0 / 352.4 MB, free: 2.523 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.575e-06/0.1334, allocations: 0 / 352.4 MB, free: 2.523 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.0009131/0.1343, allocations: 419.2 kB / 352.9 MB, free: 2.062 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.864e-05/0.1344, allocations: 15.89 kB / 352.9 MB, free: 2.047 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.819e-05/0.1345, allocations: 12.84 kB / 352.9 MB, free: 2.035 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002783/0.1348, allocations: 204.1 kB / 353.1 MB, free: 1.797 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.984e-05/0.1348, allocations: 12.36 kB / 353.1 MB, free: 1.785 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.909e-05/0.1348, allocations: 8.375 kB / 353.1 MB, free: 1.777 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005043/0.1353, allocations: 220.5 kB / 353.3 MB, free: 1.543 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.1353, allocations: 192 / 353.3 MB, free: 1.543 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.755e-05/0.1354, allocations: 3.938 kB / 353.3 MB, free: 1.539 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.1354, allocations: 4 kB / 353.3 MB, free: 1.535 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001432/0.1355, allocations: 55.89 kB / 353.4 MB, free: 1.48 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008044/0.1363, allocations: 389.8 kB / 353.8 MB, free: 1.043 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000247/0.1366, allocations: 131.6 kB / 353.9 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001305/0.1368, allocations: 70.86 kB / 354 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.127e-05/0.1368, allocations: 11.94 kB / 354 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.484e-05/0.1368, allocations: 34.56 kB / 354 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.784e-06/0.1369, allocations: 0 / 354 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.000451/0.1373, allocations: 165.4 kB / 354.2 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/0.1374, allocations: 115.4 kB / 354.3 MB, free: 460 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001695/0.1376, allocations: 167.4 kB / 354.4 MB, free: 288 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.992e-05/0.1376, allocations: 29.7 kB / 354.5 MB, free: 252 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.953e-05/0.1377, allocations: 88.42 kB / 354.6 MB, free: 156 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.556e-05/0.1377, allocations: 11.94 kB / 354.6 MB, free: 144 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.025e-05/0.1378, allocations: 37.61 kB / 354.6 MB, free: 100 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.138, allocations: 318.8 kB / 354.9 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.226e-05/0.138, allocations: 19.98 kB / 354.9 MB, free: 15.76 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.575e-05/0.1381, allocations: 93.31 kB / 355 MB, free: 15.63 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001656/0.1383, allocations: 117.3 kB / 355.1 MB, free: 15.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.1383, allocations: 3.938 kB / 355.1 MB, free: 15.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002151/0.1386, allocations: 125.3 kB / 355.3 MB, free: 15.35 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.1386, allocations: 8.344 kB / 355.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.1386, allocations: 8 kB / 355.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.1386, allocations: 0 / 355.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001083/0.1387, allocations: 23.98 kB / 355.3 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.108e-05/0.1388, allocations: 7.938 kB / 355.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.137e-05/0.1388, allocations: 8 kB / 355.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.271e-05/0.1388, allocations: 4 kB / 355.3 MB, free: 15.29 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.0001226/0.139, allocations: 141.7 kB / 355.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001748/0.1392, allocations: 105.4 kB / 355.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.418e-05/0.1392, allocations: 28.64 kB / 355.6 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.1392, allocations: 4 kB / 355.6 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.1392, allocations: 0 / 355.6 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.1392, allocations: 0 / 355.6 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002658/0.1395, allocations: 193.5 kB / 355.8 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.1395, allocations: 0 / 355.8 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001144/0.1397, allocations: 27.92 kB / 355.8 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.277e-06/0.1397, allocations: 0 / 355.8 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.477e-05/0.1397, allocations: 8 kB / 355.8 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.1397, allocations: 4 kB / 355.8 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1397, allocations: 4 kB / 355.8 MB, free: 14.72 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:7953:5-7953: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.0004607/0.1402, allocations: 392.2 kB / 356.2 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.836e-05/0.1402, allocations: 97 kB / 356.3 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.817e-05/0.1403, allocations: 0 / 356.3 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001102/0.1404, allocations: 7.984 kB / 356.3 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.315e-05/0.1404, allocations: 0 / 356.3 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-06/0.1404, allocations: 12.03 kB / 356.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001001/0.1406, allocations: 123 kB / 356.4 MB, free: 14.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1406, allocations: 0 / 356.4 MB, free: 14.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003056/0.1409, allocations: 12 kB / 356.5 MB, free: 14.05 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.0001417/0.141, allocations: 118.6 kB / 356.6 MB, free: 13.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002677/0.1413, allocations: 91.77 kB / 356.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.1413, allocations: 0.6875 kB / 356.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.373e-05/0.1414, allocations: 16.05 kB / 356.7 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004937/0.1419, allocations: 67.88 kB / 356.7 MB, free: 13.76 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005812/0.1424, allocations: 301.5 kB / 357 MB, free: 13.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003778/0.1428, allocations: 0.708 MB / 357.8 MB, free: 12.69 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.32e-05/0.1429, allocations: 15.44 kB / 357.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of SimCode: time 7.02e-07/0.1429, allocations: 0 / 357.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of Templates: time 0.003142/0.146, allocations: 1.177 MB / 358.9 MB, free: 11.51 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