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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001007/0.001007, allocations: 198.3 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 227.2 MB / 245 MB, free: 7.48 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008294/0.0008294, allocations: 101.8 kB / 297.3 MB, free: 6.188 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002289/0.0002288, allocations: 8 kB / 357.9 MB, free: 9.535 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1864/0.1866, allocations: 51.48 MB / 409.4 MB, free: 26.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08526/0.2719, allocations: 78.11 MB / 487.5 MB, free: 12.53 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002137/0.2722, allocations: 75.95 kB / 487.6 MB, free: 12.45 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004252/0.2764, allocations: 1.654 MB / 489.3 MB, free: 10.8 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.2765, allocations: 0 / 489.3 MB, free: 10.8 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.135e-05/0.2765, allocations: 0 / 489.3 MB, free: 10.8 MB / 362.7 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.0004225/0.2769, allocations: 394.9 kB / 489.6 MB, free: 10.37 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.2769, allocations: 11.97 kB / 489.6 MB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.101e-05/0.277, allocations: 11.91 kB / 489.7 MB, free: 10.35 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002241/0.2772, allocations: 211.6 kB / 489.9 MB, free: 10.1 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.2772, allocations: 7.938 kB / 489.9 MB, free: 10.09 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.965e-05/0.2773, allocations: 11.95 kB / 489.9 MB, free: 10.08 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000397/0.2777, allocations: 205.7 kB / 490.1 MB, free: 9.859 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.2777, allocations: 4 kB / 490.1 MB, free: 9.855 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.372e-05/0.2777, allocations: 4 kB / 490.1 MB, free: 9.852 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.2777, allocations: 4 kB / 490.1 MB, free: 9.848 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000134/0.2779, allocations: 55.91 kB / 490.2 MB, free: 9.793 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000453/0.2783, allocations: 389.7 kB / 490.5 MB, free: 9.355 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001851/0.2785, allocations: 127.9 kB / 490.7 MB, free: 9.203 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.442e-05/0.2786, allocations: 11.98 kB / 490.7 MB, free: 9.191 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.156e-05/0.2786, allocations: 34.62 kB / 490.7 MB, free: 9.148 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.403e-06/0.2786, allocations: 0 / 490.7 MB, free: 9.148 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003562/0.279, allocations: 165.4 kB / 490.9 MB, free: 8.98 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.802e-05/0.279, allocations: 115 kB / 491 MB, free: 8.844 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/0.2791, allocations: 143.3 kB / 491.1 MB, free: 8.699 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.486e-05/0.2792, allocations: 33.64 kB / 491.2 MB, free: 8.66 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.09e-05/0.2792, allocations: 96.41 kB / 491.2 MB, free: 8.559 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.269e-05/0.2792, allocations: 3.984 kB / 491.3 MB, free: 8.555 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.06e-06/0.2793, allocations: 7.938 kB / 491.3 MB, free: 8.547 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.853e-05/0.2794, allocations: 326.8 kB / 491.6 MB, free: 8.219 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.512e-05/0.2794, allocations: 23.98 kB / 491.6 MB, free: 8.195 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.434e-05/0.2795, allocations: 77.44 kB / 491.7 MB, free: 8.086 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.574e-05/0.2796, allocations: 39.92 kB / 491.7 MB, free: 8.047 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.2796, allocations: 0 / 491.7 MB, free: 8.047 MB / 362.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001915/0.2798, allocations: 133.3 kB / 491.8 MB, free: 7.91 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.2798, allocations: 8 kB / 491.9 MB, free: 7.902 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.36e-05/0.2798, allocations: 4 kB / 491.9 MB, free: 7.898 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.2799, allocations: 8.359 kB / 491.9 MB, free: 7.891 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.3e-05/0.28, allocations: 23.94 kB / 491.9 MB, free: 7.867 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.162e-05/0.28, allocations: 12.33 kB / 491.9 MB, free: 7.855 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.581e-05/0.28, allocations: 11.94 kB / 491.9 MB, free: 7.844 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.007e-05/0.2801, allocations: 11.94 kB / 491.9 MB, free: 7.832 MB / 362.7 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 9.399e-05/0.2802, allocations: 142.4 kB / 492.1 MB, free: 7.688 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001587/0.2803, allocations: 101.5 kB / 492.2 MB, free: 7.582 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.047e-05/0.2804, allocations: 16.72 kB / 492.2 MB, free: 7.562 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.2804, allocations: 4 kB / 492.2 MB, free: 7.559 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.2804, allocations: 4 kB / 492.2 MB, free: 7.555 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.2804, allocations: 3.984 kB / 492.2 MB, free: 7.551 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002195/0.2806, allocations: 189.5 kB / 492.4 MB, free: 7.316 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.2807, allocations: 7.984 kB / 492.4 MB, free: 7.309 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001086/0.2808, allocations: 23.98 kB / 492.4 MB, free: 7.285 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.2808, allocations: 0 / 492.4 MB, free: 7.285 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/0.2808, allocations: 4 kB / 492.4 MB, free: 7.281 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.2808, allocations: 4 kB / 492.4 MB, free: 7.277 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2808, allocations: 0 / 492.4 MB, free: 7.277 MB / 362.7 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.) hold1.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) sum1.u[2] = sample2.y sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum2.u[2] = sum1.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] hold1.u = sum2.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: hold1.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold1.y equations: hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) sum1.u[2] = sample2.y sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum2.u[2] = sum1.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] hold1.u = sum2.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:7906:5-7906: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.0004059/0.2812, allocations: 419.7 kB / 492.8 MB, free: 6.836 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.754e-05/0.2813, allocations: 104.9 kB / 492.9 MB, free: 6.715 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.852e-05/0.2813, allocations: 8 kB / 492.9 MB, free: 6.707 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/0.2814, allocations: 4 kB / 492.9 MB, free: 6.703 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.496e-05/0.2815, allocations: 0 / 492.9 MB, free: 6.703 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.237e-06/0.2815, allocations: 7.984 kB / 492.9 MB, free: 6.695 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.578e-05/0.2816, allocations: 121.5 kB / 493.1 MB, free: 6.578 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2816, allocations: 7.938 kB / 493.1 MB, free: 6.57 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002633/0.2818, allocations: 16 kB / 493.1 MB, free: 6.555 MB / 362.7 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 (hold1.y,sample1.u,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 9.575e-05/0.282, allocations: 103.1 kB / 493.2 MB, free: 6.445 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001836/0.2821, allocations: 92.45 kB / 493.3 MB, free: 6.355 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.2822, allocations: 0 / 493.3 MB, free: 6.355 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.642e-05/0.2822, allocations: 8 kB / 493.3 MB, free: 6.348 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002966/0.2825, allocations: 70.5 kB / 493.4 MB, free: 6.281 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003761/0.2829, allocations: 259.2 kB / 493.6 MB, free: 6 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002551/0.2832, allocations: 0.716 MB / 494.3 MB, free: 5.258 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.285e-05/0.2832, allocations: 8.562 kB / 494.3 MB, free: 5.246 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.67e-05/0.2832, allocations: 15.44 kB / 494.3 MB, free: 5.23 MB / 362.7 MB Notification: Performance of SimCode: time 3.51e-07/0.2832, allocations: 0 / 494.3 MB, free: 5.23 MB / 362.7 MB Notification: Performance of Templates: time 0.002537/0.2858, allocations: 0.8198 MB / 495.2 MB, free: 4.43 MB / 362.7 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","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches