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.0009845/0.0009845, allocations: 87.48 kB / 16.31 MB, free: 6.449 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.0009886/0.0009887, allocations: 180.7 kB / 17.21 MB, free: 6.32 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.668/1.668, allocations: 223.3 MB / 241.2 MB, free: 5.188 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003035/0.0003037, allocations: 5.922 kB / 300.8 MB, free: 5.477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1374/0.1377, allocations: 50.43 MB / 351.2 MB, free: 11.35 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.002172/0.14, allocations: 1.298 MB / 352.5 MB, free: 10.04 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004609/0.1404, allocations: 187.4 kB / 352.7 MB, free: 9.859 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001038/0.1406, allocations: 4 kB / 352.7 MB, free: 9.855 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.941e-05/0.1407, allocations: 7.922 kB / 352.7 MB, free: 9.848 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001458/0.1408, allocations: 7.938 kB / 352.7 MB, free: 9.84 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002471/0.1411, allocations: 47.89 kB / 352.8 MB, free: 9.793 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001205/0.1412, allocations: 51.84 kB / 352.8 MB, free: 9.742 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001453/0.1414, allocations: 44.03 kB / 352.9 MB, free: 9.695 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.906e-05/0.1414, allocations: 15.88 kB / 352.9 MB, free: 9.68 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.462e-05/0.1415, allocations: 31.84 kB / 352.9 MB, free: 9.648 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.858e-05/0.1415, allocations: 0 / 352.9 MB, free: 9.648 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.562e-05/0.1416, allocations: 4 kB / 352.9 MB, free: 9.645 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.404e-05/0.1416, allocations: 27.91 kB / 353 MB, free: 9.617 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.115e-05/0.1417, allocations: 37.64 kB / 353 MB, free: 9.574 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.855e-05/0.1418, allocations: 55.89 kB / 353.1 MB, free: 9.52 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.1418, allocations: 3.938 kB / 353.1 MB, free: 9.516 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.1418, allocations: 0 / 353.1 MB, free: 9.516 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.1418, allocations: 0 / 353.1 MB, free: 9.516 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.0005754/0.1424, allocations: 394.9 kB / 353.4 MB, free: 9.082 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.1424, allocations: 8.031 kB / 353.5 MB, free: 9.074 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.117e-05/0.1425, allocations: 11.86 kB / 353.5 MB, free: 9.062 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002247/0.1427, allocations: 206.8 kB / 353.7 MB, free: 8.82 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/0.1427, allocations: 4 kB / 353.7 MB, free: 8.816 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.854e-05/0.1427, allocations: 8 kB / 353.7 MB, free: 8.809 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004449/0.1432, allocations: 216.6 kB / 353.9 MB, free: 8.578 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.226e-06/0.1432, allocations: 0 / 353.9 MB, free: 8.578 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.609e-05/0.1432, allocations: 7.938 kB / 353.9 MB, free: 8.57 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/0.1432, allocations: 0 / 353.9 MB, free: 8.57 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001334/0.1434, allocations: 59.91 kB / 354 MB, free: 8.512 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004601/0.1438, allocations: 381.8 kB / 354.3 MB, free: 8.082 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001897/0.144, allocations: 127.8 kB / 354.5 MB, free: 7.93 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001282/0.1442, allocations: 82.67 kB / 354.5 MB, free: 7.84 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.733e-05/0.1442, allocations: 11.89 kB / 354.5 MB, free: 7.828 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.999e-05/0.1443, allocations: 46.53 kB / 354.6 MB, free: 7.773 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.523e-06/0.1443, allocations: 0 / 354.6 MB, free: 7.773 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003814/0.1447, allocations: 165.4 kB / 354.8 MB, free: 7.605 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.688e-05/0.1447, allocations: 114.8 kB / 354.9 MB, free: 7.469 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001405/0.1449, allocations: 161 kB / 355 MB, free: 7.305 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.447e-05/0.1449, allocations: 25.7 kB / 355 MB, free: 7.273 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.978e-05/0.145, allocations: 92.42 kB / 355.1 MB, free: 7.176 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.314e-05/0.145, allocations: 11.98 kB / 355.1 MB, free: 7.164 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.37e-06/0.145, allocations: 0 / 355.1 MB, free: 7.164 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.1452, allocations: 327 kB / 355.5 MB, free: 6.836 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.38e-05/0.1452, allocations: 19.98 kB / 355.5 MB, free: 6.816 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.262e-05/0.1453, allocations: 93.38 kB / 355.6 MB, free: 6.691 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.069e-05/0.1454, allocations: 31.98 kB / 355.6 MB, free: 6.66 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1454, allocations: 4 kB / 355.6 MB, free: 6.656 MB / 286.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002017/0.1456, allocations: 129.2 kB / 355.7 MB, free: 6.523 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.1456, allocations: 7.953 kB / 355.7 MB, free: 6.516 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.1457, allocations: 4.344 kB / 355.8 MB, free: 6.512 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.1457, allocations: 11.98 kB / 355.8 MB, free: 6.5 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.1458, allocations: 31.92 kB / 355.8 MB, free: 6.469 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.1458, allocations: 0 / 355.8 MB, free: 6.469 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.313e-05/0.1459, allocations: 11.94 kB / 355.8 MB, free: 6.457 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.203e-05/0.1459, allocations: 4 kB / 355.8 MB, free: 6.453 MB / 286.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.u,hold1.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000115/0.146, allocations: 133.8 kB / 355.9 MB, free: 6.312 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001694/0.1462, allocations: 106 kB / 356 MB, free: 6.203 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.985e-05/0.1462, allocations: 24.66 kB / 356.1 MB, free: 6.176 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.1463, allocations: 0 / 356.1 MB, free: 6.176 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.1463, allocations: 0 / 356.1 MB, free: 6.176 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.1463, allocations: 4.094 kB / 356.1 MB, free: 6.172 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002461/0.1465, allocations: 197.5 kB / 356.3 MB, free: 5.93 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.1465, allocations: 0 / 356.3 MB, free: 5.93 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001151/0.1467, allocations: 31.92 kB / 356.3 MB, free: 5.898 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.1467, allocations: 0 / 356.3 MB, free: 5.898 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.075e-05/0.1467, allocations: 4 kB / 356.3 MB, free: 5.895 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.95e-06/0.1467, allocations: 3.953 kB / 356.3 MB, free: 5.891 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1467, allocations: 7.938 kB / 356.3 MB, free: 5.883 MB / 286.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:7863:5-7863: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.0005173/0.1472, allocations: 380.4 kB / 356.7 MB, free: 5.492 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.567e-05/0.1473, allocations: 104.8 kB / 356.8 MB, free: 5.371 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.1473, allocations: 4 kB / 356.8 MB, free: 5.367 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001135/0.1474, allocations: 11.98 kB / 356.8 MB, free: 5.355 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.275e-05/0.1475, allocations: 3.953 kB / 356.8 MB, free: 5.352 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.994e-06/0.1475, allocations: 4 kB / 356.8 MB, free: 5.348 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001204/0.1476, allocations: 123.1 kB / 356.9 MB, free: 5.227 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1476, allocations: 0 / 356.9 MB, free: 5.227 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002791/0.1479, allocations: 16 kB / 356.9 MB, free: 5.211 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001093/0.148, allocations: 103.2 kB / 357 MB, free: 5.102 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002075/0.1482, allocations: 84.47 kB / 357.1 MB, free: 5.02 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.1483, allocations: 3.938 kB / 357.1 MB, free: 5.016 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 3.995e-05/0.1483, allocations: 19.92 kB / 357.2 MB, free: 4.996 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004408/0.1487, allocations: 63.94 kB / 357.2 MB, free: 4.934 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004856/0.1492, allocations: 255.2 kB / 357.5 MB, free: 4.652 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000308/0.1496, allocations: 0.712 MB / 358.2 MB, free: 3.914 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.526e-05/0.1496, allocations: 16.41 kB / 358.2 MB, free: 3.898 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.154e-05/0.1496, allocations: 15.44 kB / 358.2 MB, free: 3.883 MB / 286.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1496, allocations: 0 / 358.2 MB, free: 3.883 MB / 286.1 MB Notification: Performance of Templates: time 0.003239/0.1529, allocations: 0.8229 MB / 359 MB, free: 3.066 MB / 286.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