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.001513/0.001513, 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.001677/0.001677, 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.475/1.475, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001898/0.001898, allocations: 60.14 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1479/0.1499, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.003858/0.1538, allocations: 1.606 MB / 360.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005183/0.1543, allocations: 183.4 kB / 360.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001069/0.1545, allocations: 4 kB / 360.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001535/0.1546, allocations: 7.875 kB / 360.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001763/0.1548, allocations: 15.84 kB / 360.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002636/0.1551, allocations: 63.83 kB / 360.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001506/0.1553, allocations: 59.83 kB / 360.8 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001729/0.1554, allocations: 47.97 kB / 360.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.913e-05/0.1555, allocations: 27.86 kB / 360.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001004/0.1556, allocations: 43.77 kB / 360.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.428e-05/0.1556, allocations: 4 kB / 360.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.715e-05/0.1557, allocations: 7.938 kB / 361 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.993e-05/0.1557, allocations: 27.92 kB / 361 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.224e-05/0.1558, allocations: 43.67 kB / 361 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001609/0.156, allocations: 79.64 kB / 361.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.156, allocations: 4 kB / 361.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.156, allocations: 0 / 361.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.156, allocations: 0 / 361.1 MB, free: 11.12 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.0006631/0.1567, allocations: 414.9 kB / 361.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.1567, allocations: 12.03 kB / 361.5 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.488e-05/0.1568, allocations: 8.844 kB / 361.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002622/0.157, allocations: 212 kB / 361.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.1571, allocations: 8.375 kB / 361.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.643e-05/0.1571, allocations: 4.375 kB / 361.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000452/0.1575, allocations: 216.4 kB / 362 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.869e-06/0.1576, allocations: 192 / 362 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.391e-05/0.1576, allocations: 3.938 kB / 362 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.1576, allocations: 0 / 362 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001337/0.1577, allocations: 63.89 kB / 362 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005088/0.1582, allocations: 389.7 kB / 362.4 MB, free: 9.656 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002015/0.1585, allocations: 131.8 kB / 362.5 MB, free: 9.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001179/0.1586, allocations: 70.61 kB / 362.6 MB, free: 9.422 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.797e-05/0.1586, allocations: 4 kB / 362.6 MB, free: 9.418 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.521e-05/0.1587, allocations: 34.56 kB / 362.6 MB, free: 9.375 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 3.016e-06/0.1587, allocations: 0 / 362.6 MB, free: 9.375 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004038/0.1591, allocations: 169.8 kB / 362.8 MB, free: 9.203 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.432e-05/0.1592, allocations: 118.8 kB / 362.9 MB, free: 9.062 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001594/0.1593, allocations: 161.2 kB / 363.1 MB, free: 8.898 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.086e-05/0.1594, allocations: 29.7 kB / 363.1 MB, free: 8.863 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.618e-05/0.1594, allocations: 92.36 kB / 363.2 MB, free: 8.766 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.597e-05/0.1594, allocations: 7.984 kB / 363.2 MB, free: 8.758 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.525e-05/0.1595, allocations: 33.62 kB / 363.2 MB, free: 8.719 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.1596, allocations: 327 kB / 363.6 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.607e-05/0.1597, allocations: 19.98 kB / 363.6 MB, free: 8.371 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.622e-05/0.1598, allocations: 85.38 kB / 363.7 MB, free: 8.254 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001592/0.1599, allocations: 121.2 kB / 363.8 MB, free: 8.102 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/0.16, allocations: 3.938 kB / 363.8 MB, free: 8.098 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002001/0.1602, allocations: 125.6 kB / 363.9 MB, free: 7.969 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.1602, allocations: 4 kB / 363.9 MB, free: 7.965 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.1602, allocations: 4 kB / 363.9 MB, free: 7.961 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.883e-05/0.1602, allocations: 4 kB / 363.9 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001135/0.1604, allocations: 27.92 kB / 363.9 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.1604, allocations: 0 / 363.9 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.7e-05/0.1604, allocations: 12 kB / 364 MB, free: 7.918 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.584e-05/0.1605, allocations: 7.984 kB / 364 MB, free: 7.91 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.0001144/0.1606, allocations: 149.7 kB / 364.1 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001659/0.1607, allocations: 109.4 kB / 364.2 MB, free: 7.641 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.156e-05/0.1608, allocations: 20.7 kB / 364.2 MB, free: 7.617 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.1608, allocations: 0 / 364.2 MB, free: 7.617 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.984e-06/0.1608, allocations: 0 / 364.2 MB, free: 7.617 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.1608, allocations: 7.938 kB / 364.2 MB, free: 7.609 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002496/0.1611, allocations: 189.6 kB / 364.4 MB, free: 7.375 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1611, allocations: 0 / 364.4 MB, free: 7.375 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001047/0.1612, allocations: 23.98 kB / 364.5 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.1612, allocations: 4 kB / 364.5 MB, free: 7.348 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.1612, allocations: 8 kB / 364.5 MB, free: 7.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.1613, allocations: 4 kB / 364.5 MB, free: 7.336 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1613, allocations: 0 / 364.5 MB, free: 7.336 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.0004395/0.1617, allocations: 384.3 kB / 364.8 MB, free: 6.938 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.166e-05/0.1618, allocations: 100.9 kB / 364.9 MB, free: 6.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.962e-05/0.1618, allocations: 4 kB / 364.9 MB, free: 6.816 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001102/0.1619, allocations: 7.984 kB / 365 MB, free: 6.809 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.185e-05/0.162, allocations: 4 kB / 365 MB, free: 6.805 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.795e-06/0.162, allocations: 4 kB / 365 MB, free: 6.801 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.69e-05/0.1621, allocations: 119.1 kB / 365.1 MB, free: 6.684 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.984e-06/0.1621, allocations: 0 / 365.1 MB, free: 6.684 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002941/0.1624, allocations: 19.94 kB / 365.1 MB, free: 6.664 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.0001391/0.1625, allocations: 119.1 kB / 365.2 MB, free: 6.535 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002259/0.1628, allocations: 84.47 kB / 365.3 MB, free: 6.453 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1628, allocations: 0 / 365.3 MB, free: 6.453 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.826e-05/0.1628, allocations: 7.984 kB / 365.3 MB, free: 6.445 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004787/0.1633, allocations: 67.88 kB / 365.4 MB, free: 6.379 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004637/0.1638, allocations: 243.7 kB / 365.6 MB, free: 6.105 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002727/0.1641, allocations: 0.716 MB / 366.3 MB, free: 5.363 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.669e-05/0.1641, allocations: 4.562 kB / 366.3 MB, free: 5.359 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.154e-05/0.1641, allocations: 11.44 kB / 366.3 MB, free: 5.352 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1641, allocations: 0 / 366.3 MB, free: 5.352 MB / 302.1 MB Notification: Performance of Templates: time 0.003641/0.1678, allocations: 0.9371 MB / 367.3 MB, free: 4.418 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 cvode -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