Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001154/0.001153, allocations: 199.2 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 226.5 MB / 245.3 MB, free: 6.523 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007948/0.0007949, allocations: 98.97 kB / 297.4 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002392/0.0002392, allocations: 8 kB / 357.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.222/0.2222, allocations: 51.28 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08991/0.3122, allocations: 78.05 MB / 486.7 MB, free: 13.55 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002333/0.3125, allocations: 75.95 kB / 486.8 MB, free: 13.48 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004277/0.3168, allocations: 1.653 MB / 488.4 MB, free: 11.82 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.3168, allocations: 0.9688 kB / 488.4 MB, free: 11.82 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.259e-05/0.3168, allocations: 7.938 kB / 488.4 MB, free: 11.82 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.0004041/0.3172, allocations: 387.5 kB / 488.8 MB, free: 11.39 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.3173, allocations: 15.97 kB / 488.8 MB, free: 11.38 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.37e-05/0.3173, allocations: 16.73 kB / 488.9 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001987/0.3175, allocations: 201.7 kB / 489.1 MB, free: 11.12 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.539e-05/0.3176, allocations: 8.375 kB / 489.1 MB, free: 11.12 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.713e-05/0.3176, allocations: 4.375 kB / 489.1 MB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003879/0.318, allocations: 218.2 kB / 489.3 MB, free: 10.88 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.318, allocations: 192 / 489.3 MB, free: 10.88 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.418e-05/0.318, allocations: 7.938 kB / 489.3 MB, free: 10.87 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.318, allocations: 0 / 489.3 MB, free: 10.87 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001312/0.3182, allocations: 63.89 kB / 489.3 MB, free: 10.81 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004371/0.3186, allocations: 381.8 kB / 489.7 MB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001984/0.3188, allocations: 135.6 kB / 489.9 MB, free: 10.22 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001263/0.319, allocations: 78.61 kB / 489.9 MB, free: 10.13 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.625e-05/0.319, allocations: 12.11 kB / 489.9 MB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.158e-05/0.319, allocations: 34.56 kB / 490 MB, free: 10.08 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.252e-06/0.319, allocations: 0 / 490 MB, free: 10.08 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003879/0.3194, allocations: 169.7 kB / 490.1 MB, free: 9.906 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.72e-05/0.3195, allocations: 114.8 kB / 490.3 MB, free: 9.77 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001326/0.3196, allocations: 165.9 kB / 490.4 MB, free: 9.598 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.419e-05/0.3197, allocations: 33.95 kB / 490.4 MB, free: 9.559 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.16e-05/0.3197, allocations: 88.42 kB / 490.5 MB, free: 9.465 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.385e-05/0.3197, allocations: 4 kB / 490.5 MB, free: 9.461 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.559e-06/0.3198, allocations: 4 kB / 490.5 MB, free: 9.457 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.3199, allocations: 322.8 kB / 490.9 MB, free: 9.133 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.624e-05/0.32, allocations: 15.98 kB / 490.9 MB, free: 9.117 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.35e-05/0.3201, allocations: 97.36 kB / 491 MB, free: 8.988 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001444/0.3202, allocations: 118.5 kB / 491.1 MB, free: 8.84 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.173e-06/0.3202, allocations: 3.938 kB / 491.1 MB, free: 8.836 MB / 362.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000228/0.3205, allocations: 129.3 kB / 491.2 MB, free: 8.703 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.3205, allocations: 7.156 kB / 491.2 MB, free: 8.699 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.3205, allocations: 8 kB / 491.2 MB, free: 8.691 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.3205, allocations: 4 kB / 491.2 MB, free: 8.688 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001214/0.3207, allocations: 27.98 kB / 491.3 MB, free: 8.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.3207, allocations: 3.938 kB / 491.3 MB, free: 8.656 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.288e-05/0.3208, allocations: 19.83 kB / 491.3 MB, free: 8.637 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.175e-05/0.3208, allocations: 4 kB / 491.3 MB, free: 8.633 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 0.0001236/0.3209, allocations: 134.8 kB / 491.4 MB, free: 8.492 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001974/0.3211, allocations: 109.5 kB / 491.5 MB, free: 8.379 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.473e-05/0.3212, allocations: 16.72 kB / 491.5 MB, free: 8.363 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.3212, allocations: 3.984 kB / 491.5 MB, free: 8.359 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.3212, allocations: 0 / 491.5 MB, free: 8.359 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.3212, allocations: 4 kB / 491.6 MB, free: 8.355 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002851/0.3215, allocations: 197.5 kB / 491.7 MB, free: 8.113 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.3215, allocations: 0 / 491.7 MB, free: 8.113 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001358/0.3217, allocations: 27.92 kB / 491.8 MB, free: 8.086 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.3217, allocations: 0 / 491.8 MB, free: 8.086 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.202e-05/0.3217, allocations: 8 kB / 491.8 MB, free: 8.078 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.626e-06/0.3217, allocations: 3.984 kB / 491.8 MB, free: 8.074 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.3217, allocations: 0 / 491.8 MB, free: 8.074 MB / 362.7 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.) 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/jenkins1/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/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:7938:5-7938: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.0004841/0.3222, allocations: 386 kB / 492.2 MB, free: 7.68 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.847e-05/0.3223, allocations: 104.8 kB / 492.3 MB, free: 7.559 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.296e-05/0.3223, allocations: 7.984 kB / 492.3 MB, free: 7.551 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001311/0.3225, allocations: 8 kB / 492.3 MB, free: 7.543 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.839e-05/0.3225, allocations: 0 / 492.3 MB, free: 7.543 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.235e-05/0.3225, allocations: 4 kB / 492.3 MB, free: 7.539 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.608e-05/0.3226, allocations: 127 kB / 492.4 MB, free: 7.414 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3226, allocations: 0 / 492.4 MB, free: 7.414 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003369/0.323, allocations: 12 kB / 492.4 MB, free: 7.402 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 0.0001147/0.3231, allocations: 111.2 kB / 492.5 MB, free: 7.281 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002446/0.3233, allocations: 87.95 kB / 492.6 MB, free: 7.195 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3234, allocations: 0 / 492.6 MB, free: 7.195 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.003e-05/0.3234, allocations: 11.94 kB / 492.6 MB, free: 7.184 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005723/0.324, allocations: 77.8 kB / 492.7 MB, free: 7.113 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004955/0.3245, allocations: 289.4 kB / 493 MB, free: 6.797 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002736/0.3248, allocations: 0.7121 MB / 493.7 MB, free: 6.059 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.587e-05/0.3248, allocations: 15.44 kB / 493.7 MB, free: 6.043 MB / 362.7 MB Notification: Performance of SimCode: time 3.11e-07/0.3248, allocations: 0 / 493.7 MB, free: 6.043 MB / 362.7 MB Notification: Performance of Templates: time 0.002377/0.3272, allocations: 1.157 MB / 494.9 MB, free: 4.887 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches