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.00155/0.00155, allocations: 103.7 kB / 17.63 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001896/0.001896, allocations: 204.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.573/1.573, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 59.78 kB / 306.9 MB, free: 0.668 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1449/0.1464, allocations: 50.54 MB / 357.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.00621/0.1526, allocations: 1.598 MB / 359.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008783/0.1536, allocations: 183.4 kB / 359.3 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001524/0.1538, allocations: 4 kB / 359.3 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001723/0.154, allocations: 15.86 kB / 359.3 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000213/0.1542, allocations: 11.88 kB / 359.3 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004264/0.1547, allocations: 55.88 kB / 359.3 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001957/0.1549, allocations: 59.78 kB / 359.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002254/0.1551, allocations: 51.95 kB / 359.4 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.99e-05/0.1552, allocations: 23.88 kB / 359.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000143/0.1554, allocations: 35.84 kB / 359.5 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.048e-05/0.1554, allocations: 4 kB / 359.5 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.375e-05/0.1555, allocations: 8 kB / 359.5 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.094e-05/0.1556, allocations: 23.92 kB / 359.5 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.78e-05/0.1557, allocations: 47.66 kB / 359.6 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002278/0.1559, allocations: 87.64 kB / 359.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.156, allocations: 3.938 kB / 359.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.156, allocations: 4 kB / 359.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.222e-05/0.156, allocations: 0 / 359.7 MB, free: 11.93 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.0009247/0.1569, allocations: 407.2 kB / 360.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.782e-05/0.157, allocations: 8.031 kB / 360.1 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.593e-05/0.1571, allocations: 12.84 kB / 360.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003435/0.1575, allocations: 207.3 kB / 360.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.811e-05/0.1575, allocations: 4.375 kB / 360.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.698e-05/0.1576, allocations: 8.375 kB / 360.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007042/0.1583, allocations: 214.2 kB / 360.5 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.1583, allocations: 4.172 kB / 360.5 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.387e-05/0.1584, allocations: 7.938 kB / 360.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.492e-05/0.1584, allocations: 4 kB / 360.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002551/0.1586, allocations: 59.89 kB / 360.6 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007316/0.1594, allocations: 381.8 kB / 361 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003554/0.1598, allocations: 131.6 kB / 361.1 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000233/0.16, allocations: 78.8 kB / 361.2 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.817e-05/0.1601, allocations: 11.92 kB / 361.2 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.229e-05/0.1601, allocations: 34.55 kB / 361.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 2.305e-06/0.1602, allocations: 4 kB / 361.2 MB, free: 10.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007138/0.1609, allocations: 161.4 kB / 361.4 MB, free: 10.01 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000124/0.161, allocations: 110.8 kB / 361.5 MB, free: 9.875 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002145/0.1613, allocations: 158.1 kB / 361.6 MB, free: 9.711 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.748e-05/0.1613, allocations: 33.7 kB / 361.7 MB, free: 9.672 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.756e-05/0.1614, allocations: 88.42 kB / 361.8 MB, free: 9.578 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.862e-05/0.1615, allocations: 8.234 kB / 361.8 MB, free: 9.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.346e-05/0.1616, allocations: 41.61 kB / 361.8 MB, free: 9.523 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.1617, allocations: 314.8 kB / 362.1 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000101/0.1619, allocations: 19.98 kB / 362.1 MB, free: 9.188 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001645/0.162, allocations: 97.3 kB / 362.2 MB, free: 9.059 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002669/0.1623, allocations: 109.3 kB / 362.3 MB, free: 8.918 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.385e-06/0.1624, allocations: 3.938 kB / 362.3 MB, free: 8.914 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003972/0.1628, allocations: 129.3 kB / 362.5 MB, free: 8.781 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.588e-05/0.1628, allocations: 8 kB / 362.5 MB, free: 8.773 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/0.1628, allocations: 4 kB / 362.5 MB, free: 8.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.1629, allocations: 0 / 362.5 MB, free: 8.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001912/0.1631, allocations: 23.98 kB / 362.5 MB, free: 8.746 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.5e-05/0.1631, allocations: 7.938 kB / 362.5 MB, free: 8.738 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000111/0.1632, allocations: 11.98 kB / 362.5 MB, free: 8.727 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.104e-05/0.1633, allocations: 4.344 kB / 362.5 MB, free: 8.723 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.000182/0.1634, allocations: 148.3 kB / 362.7 MB, free: 8.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003062/0.1638, allocations: 113.7 kB / 362.8 MB, free: 8.453 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.579e-05/0.1639, allocations: 16.72 kB / 362.8 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.1639, allocations: 4 kB / 362.8 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.1639, allocations: 0 / 362.8 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.1639, allocations: 0 / 362.8 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004346/0.1644, allocations: 189.6 kB / 363 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.1644, allocations: 8 kB / 363 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002022/0.1646, allocations: 31.92 kB / 363 MB, free: 8.156 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.401e-06/0.1646, allocations: 0 / 363 MB, free: 8.156 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.482e-05/0.1647, allocations: 7.984 kB / 363 MB, free: 8.148 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.828e-06/0.1647, allocations: 0 / 363 MB, free: 8.148 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/0.1647, allocations: 3.984 kB / 363 MB, free: 8.145 MB / 302.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: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.0005837/0.1653, allocations: 392.2 kB / 363.4 MB, free: 7.738 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.765e-05/0.1654, allocations: 97 kB / 363.5 MB, free: 7.625 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.972e-05/0.1654, allocations: 3.984 kB / 363.5 MB, free: 7.621 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001109/0.1655, allocations: 8 kB / 363.5 MB, free: 7.613 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.506e-05/0.1656, allocations: 4 kB / 363.5 MB, free: 7.609 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.302e-06/0.1656, allocations: 4 kB / 363.5 MB, free: 7.605 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001007/0.1657, allocations: 126.2 kB / 363.7 MB, free: 7.484 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1657, allocations: 0 / 363.7 MB, free: 7.484 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002944/0.166, allocations: 8 kB / 363.7 MB, free: 7.477 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.0001341/0.1661, allocations: 119.1 kB / 363.8 MB, free: 7.348 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002145/0.1664, allocations: 95.77 kB / 363.9 MB, free: 7.254 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1664, allocations: 0 / 363.9 MB, free: 7.254 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.709e-05/0.1664, allocations: 4 kB / 363.9 MB, free: 7.25 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000464/0.1669, allocations: 67.88 kB / 364 MB, free: 7.184 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004618/0.1674, allocations: 248.5 kB / 364.2 MB, free: 6.906 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000306/0.1677, allocations: 0.7083 MB / 364.9 MB, free: 6.172 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.152e-05/0.1677, allocations: 8.562 kB / 364.9 MB, free: 6.164 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.174e-05/0.1678, allocations: 19.36 kB / 364.9 MB, free: 6.148 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1678, allocations: 0 / 364.9 MB, free: 6.148 MB / 302.1 MB Notification: Performance of Templates: time 0.00352/0.1713, allocations: 0.9463 MB / 365.9 MB, free: 5.211 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/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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches