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.001509/0.001509, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001944/0.001944, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 227.4 MB / 247.5 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 61.17 kB / 308.4 MB, free: 15.92 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1365, allocations: 50.54 MB / 358.9 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.003011/0.1395, allocations: 1.602 MB / 360.5 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004436/0.14, allocations: 179.4 kB / 360.7 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.873e-05/0.1401, allocations: 4 kB / 360.7 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001076/0.1402, allocations: 15.81 kB / 360.7 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001233/0.1403, allocations: 15.92 kB / 360.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002238/0.1406, allocations: 47.83 kB / 360.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001268/0.1407, allocations: 67.83 kB / 360.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001274/0.1408, allocations: 39.97 kB / 360.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.765e-05/0.1409, allocations: 31.84 kB / 360.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.624e-05/0.141, allocations: 35.84 kB / 360.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.96e-05/0.141, allocations: 7.938 kB / 360.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.607e-05/0.141, allocations: 8 kB / 360.9 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.01e-05/0.1411, allocations: 23.92 kB / 361 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.588e-05/0.1411, allocations: 39.69 kB / 361 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001322/0.1413, allocations: 87.64 kB / 361.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1413, allocations: 0 / 361.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.1413, allocations: 4 kB / 361.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.067e-05/0.1413, allocations: 0 / 361.1 MB, free: 11.16 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.0005875/0.1419, allocations: 414.9 kB / 361.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.1419, allocations: 8.031 kB / 361.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.961e-05/0.142, allocations: 8.844 kB / 361.5 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002472/0.1422, allocations: 220 kB / 361.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.155e-05/0.1423, allocations: 384 / 361.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.777e-05/0.1423, allocations: 20.31 kB / 361.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004291/0.1427, allocations: 198.2 kB / 361.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.1428, allocations: 192 / 361.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.581e-05/0.1428, allocations: 7.938 kB / 362 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.1428, allocations: 4 kB / 362 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001303/0.1429, allocations: 59.89 kB / 362 MB, free: 10.13 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005221/0.1435, allocations: 385.7 kB / 362.4 MB, free: 9.695 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000217/0.1437, allocations: 135.8 kB / 362.5 MB, free: 9.535 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001274/0.1438, allocations: 70.67 kB / 362.6 MB, free: 9.457 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.846e-05/0.1439, allocations: 4 kB / 362.6 MB, free: 9.453 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.759e-05/0.1439, allocations: 30.56 kB / 362.6 MB, free: 9.414 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 3.566e-06/0.1439, allocations: 7.938 kB / 362.6 MB, free: 9.406 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004051/0.1443, allocations: 161.5 kB / 362.8 MB, free: 9.242 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.991e-05/0.1444, allocations: 114.8 kB / 362.9 MB, free: 9.105 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001407/0.1445, allocations: 154.2 kB / 363.1 MB, free: 8.945 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.845e-05/0.1446, allocations: 37.69 kB / 363.1 MB, free: 8.902 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.998e-05/0.1446, allocations: 92.36 kB / 363.2 MB, free: 8.805 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.528e-05/0.1447, allocations: 4.25 kB / 363.2 MB, free: 8.801 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.565e-05/0.1447, allocations: 45.61 kB / 363.2 MB, free: 8.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.1449, allocations: 318.8 kB / 363.5 MB, free: 8.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.767e-05/0.1449, allocations: 19.98 kB / 363.6 MB, free: 8.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.042e-05/0.145, allocations: 89.38 kB / 363.7 MB, free: 8.289 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000154/0.1452, allocations: 121.6 kB / 363.8 MB, free: 8.137 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.1452, allocations: 3.938 kB / 363.8 MB, free: 8.133 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000196/0.1454, allocations: 121.4 kB / 363.9 MB, free: 8.008 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.1454, allocations: 8 kB / 363.9 MB, free: 8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.1454, allocations: 3.938 kB / 363.9 MB, free: 7.996 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.1455, allocations: 4 kB / 363.9 MB, free: 7.992 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.1456, allocations: 31.92 kB / 363.9 MB, free: 7.961 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.1456, allocations: 4 kB / 363.9 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.44e-05/0.1457, allocations: 4 kB / 363.9 MB, free: 7.953 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.014e-05/0.1457, allocations: 4.344 kB / 364 MB, free: 7.949 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.00012/0.1458, allocations: 153.2 kB / 364.1 MB, free: 7.793 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001693/0.146, allocations: 109.4 kB / 364.2 MB, free: 7.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.488e-05/0.146, allocations: 20.7 kB / 364.2 MB, free: 7.656 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.1461, allocations: 4 kB / 364.2 MB, free: 7.652 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.1461, allocations: 0 / 364.2 MB, free: 7.652 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.1461, allocations: 7.922 kB / 364.2 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002478/0.1463, allocations: 197.5 kB / 364.4 MB, free: 7.402 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.1463, allocations: 4 kB / 364.4 MB, free: 7.398 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001006/0.1464, allocations: 23.98 kB / 364.5 MB, free: 7.375 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1465, allocations: 0 / 364.5 MB, free: 7.375 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.1465, allocations: 4 kB / 364.5 MB, free: 7.371 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.1465, allocations: 0 / 364.5 MB, free: 7.371 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.1465, allocations: 0 / 364.5 MB, free: 7.371 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: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.0004014/0.1469, allocations: 388.2 kB / 364.8 MB, free: 6.969 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.737e-05/0.147, allocations: 97 kB / 364.9 MB, free: 6.855 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.727e-05/0.147, allocations: 0 / 364.9 MB, free: 6.855 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001141/0.1471, allocations: 11.98 kB / 365 MB, free: 6.844 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.34e-05/0.1472, allocations: 4 kB / 365 MB, free: 6.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.418e-06/0.1472, allocations: 4 kB / 365 MB, free: 6.836 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.279e-05/0.1473, allocations: 126.2 kB / 365.1 MB, free: 6.715 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.473e-06/0.1473, allocations: 0 / 365.1 MB, free: 6.715 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000295/0.1476, allocations: 15.94 kB / 365.1 MB, free: 6.699 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.0001177/0.1477, allocations: 111.1 kB / 365.2 MB, free: 6.578 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002047/0.1479, allocations: 87.83 kB / 365.3 MB, free: 6.492 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1479, allocations: 0 / 365.3 MB, free: 6.492 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.701e-05/0.148, allocations: 11.98 kB / 365.3 MB, free: 6.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004736/0.1484, allocations: 79.81 kB / 365.4 MB, free: 6.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000434/0.1489, allocations: 248.5 kB / 365.6 MB, free: 6.133 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002495/0.1492, allocations: 0.708 MB / 366.3 MB, free: 5.398 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.495e-05/0.1492, allocations: 8.547 kB / 366.3 MB, free: 5.391 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.201e-05/0.1492, allocations: 11.44 kB / 366.4 MB, free: 5.383 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1492, allocations: 4 kB / 366.4 MB, free: 5.379 MB / 302.1 MB Notification: Performance of Templates: time 0.003672/0.1529, allocations: 0.9269 MB / 367.3 MB, free: 4.453 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 -s gbode -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