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.0008472/0.0008472, allocations: 96.48 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009308/0.0009308, allocations: 205.5 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.129/1.129, allocations: 227.7 MB / 246.8 MB, free: 9.695 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001739/0.0001739, allocations: 4 kB / 307.7 MB, free: 0.6094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07352/0.0737, allocations: 51.52 MB / 359.2 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.00149/0.07522, allocations: 1.32 MB / 360.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003284/0.07556, allocations: 171.5 kB / 360.7 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.118e-05/0.07564, allocations: 7.938 kB / 360.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.751e-05/0.07571, allocations: 7.922 kB / 360.7 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.686e-05/0.07582, allocations: 15.92 kB / 360.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001727/0.076, allocations: 47.89 kB / 360.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.964e-05/0.07609, allocations: 55.84 kB / 360.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001007/0.0762, allocations: 43.97 kB / 360.9 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.981e-05/0.07624, allocations: 19.86 kB / 360.9 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.399e-05/0.07632, allocations: 31.84 kB / 361 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.605e-05/0.07634, allocations: 3.938 kB / 361 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.154e-05/0.07636, allocations: 4 kB / 361 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.729e-05/0.0764, allocations: 19.92 kB / 361 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.675e-05/0.07645, allocations: 65.38 kB / 361 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 8.74e-05/0.07654, allocations: 79.62 kB / 361.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.07655, allocations: 4 kB / 361.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.07656, allocations: 0 / 361.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.986e-06/0.07657, allocations: 0 / 361.1 MB, free: 11.19 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.0004061/0.07698, allocations: 391.4 kB / 361.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.828e-05/0.07701, allocations: 8.031 kB / 361.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.747e-05/0.07705, allocations: 16.78 kB / 361.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001608/0.07721, allocations: 207.5 kB / 361.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.156e-06/0.07723, allocations: 8.219 kB / 361.7 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.631e-05/0.07725, allocations: 20.31 kB / 361.8 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000336/0.07759, allocations: 214.3 kB / 362 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.242e-06/0.07761, allocations: 192 / 362 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.578e-06/0.07762, allocations: 3.938 kB / 362 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.07763, allocations: 4 kB / 362 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001235/0.07776, allocations: 59.91 kB / 362 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003437/0.07811, allocations: 385.8 kB / 362.4 MB, free: 9.738 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001719/0.07829, allocations: 139.6 kB / 362.6 MB, free: 9.574 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001127/0.07842, allocations: 78.72 kB / 362.6 MB, free: 9.488 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.138e-05/0.07844, allocations: 8 kB / 362.6 MB, free: 9.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.971e-05/0.07847, allocations: 38.56 kB / 362.7 MB, free: 9.434 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.022e-06/0.07847, allocations: 0 / 362.7 MB, free: 9.434 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003342/0.07881, allocations: 165.4 kB / 362.8 MB, free: 9.266 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.402e-05/0.07888, allocations: 115.1 kB / 363 MB, free: 9.129 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001164/0.079, allocations: 162.2 kB / 363.1 MB, free: 8.961 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.286e-05/0.07902, allocations: 25.7 kB / 363.1 MB, free: 8.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.888e-05/0.07907, allocations: 96.41 kB / 363.2 MB, free: 8.828 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.095e-05/0.07909, allocations: 4 kB / 363.2 MB, free: 8.824 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.625e-05/0.07913, allocations: 25.7 kB / 363.3 MB, free: 8.793 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.446e-05/0.07923, allocations: 319.2 kB / 363.6 MB, free: 8.473 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.3e-05/0.07928, allocations: 27.94 kB / 363.6 MB, free: 8.445 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.599e-05/0.07938, allocations: 93.3 kB / 363.7 MB, free: 8.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001321/0.07951, allocations: 117.3 kB / 363.8 MB, free: 8.172 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.07953, allocations: 7.875 kB / 363.8 MB, free: 8.164 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001945/0.07972, allocations: 137.2 kB / 363.9 MB, free: 8.023 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.07974, allocations: 10.97 kB / 364 MB, free: 8.016 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.07975, allocations: 3.984 kB / 364 MB, free: 8.012 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.869e-06/0.07977, allocations: 4 kB / 364 MB, free: 8.008 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.742e-05/0.07987, allocations: 23.94 kB / 364 MB, free: 7.984 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.735e-06/0.07989, allocations: 7.984 kB / 364 MB, free: 7.977 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.986e-05/0.07994, allocations: 4.344 kB / 364 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-06/0.07996, allocations: 12 kB / 364 MB, free: 7.961 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 9.565e-05/0.08006, allocations: 149.6 kB / 364.2 MB, free: 7.805 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001391/0.0802, allocations: 97.48 kB / 364.3 MB, free: 7.703 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.836e-05/0.08025, allocations: 20.72 kB / 364.3 MB, free: 7.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.08026, allocations: 4 kB / 364.3 MB, free: 7.676 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.08026, allocations: 0 / 364.3 MB, free: 7.676 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.08027, allocations: 3.984 kB / 364.3 MB, free: 7.672 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002085/0.08048, allocations: 193.6 kB / 364.5 MB, free: 7.434 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.08049, allocations: 4 kB / 364.5 MB, free: 7.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001045/0.0806, allocations: 27.92 kB / 364.5 MB, free: 7.402 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.08061, allocations: 0 / 364.5 MB, free: 7.402 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.08062, allocations: 0 / 364.5 MB, free: 7.402 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.08063, allocations: 4 kB / 364.5 MB, free: 7.398 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.08063, allocations: 0 / 364.5 MB, free: 7.398 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:7947:5-7947: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.0003581/0.081, allocations: 390.8 kB / 364.9 MB, free: 6.996 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.83e-05/0.08107, allocations: 104.9 kB / 365 MB, free: 6.875 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.69e-05/0.08109, allocations: 8 kB / 365 MB, free: 6.867 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.922e-05/0.0812, allocations: 8 kB / 365 MB, free: 6.859 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.287e-05/0.08123, allocations: 7.969 kB / 365 MB, free: 6.852 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.121e-06/0.08124, allocations: 4 kB / 365 MB, free: 6.848 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.898e-05/0.08131, allocations: 122.4 kB / 365.1 MB, free: 6.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08132, allocations: 4 kB / 365.1 MB, free: 6.727 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002519/0.08158, allocations: 12 kB / 365.1 MB, free: 6.715 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 8.434e-05/0.08167, allocations: 107.2 kB / 365.3 MB, free: 6.598 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001632/0.08183, allocations: 83.92 kB / 365.3 MB, free: 6.516 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.08185, allocations: 3.938 kB / 365.3 MB, free: 6.512 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.508e-05/0.08189, allocations: 16.69 kB / 365.4 MB, free: 6.496 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003838/0.08228, allocations: 67.94 kB / 365.4 MB, free: 6.43 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003303/0.08262, allocations: 279 kB / 365.7 MB, free: 6.129 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002186/0.08285, allocations: 0.7082 MB / 366.4 MB, free: 5.395 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.5e-05/0.08288, allocations: 4.562 kB / 366.4 MB, free: 5.387 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.035e-05/0.0829, allocations: 11.44 kB / 366.4 MB, free: 5.379 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.08291, allocations: 0 / 366.4 MB, free: 5.379 MB / 302.1 MB Notification: Performance of Templates: time 0.002374/0.08529, allocations: 0.8588 MB / 367.3 MB, free: 4.527 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