Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00128/0.00128, allocations: 174.9 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 221.5 MB / 230.3 MB, free: 7.562 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008282/0.0008283, allocations: 96.77 kB / 281.2 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.702e-05/1.703e-05, allocations: 3.984 kB / 337 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1014, allocations: 50.41 MB / 387.5 MB, free: 7.555 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2808/0.3822, allocations: 76.57 MB / 464 MB, free: 2.273 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002087/0.3825, allocations: 75.95 kB / 464.1 MB, free: 2.199 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004033/0.3865, allocations: 1.649 MB / 465.8 MB, free: 0.5508 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3865, allocations: 0 / 465.8 MB, free: 0.5508 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.057e-05/0.3865, allocations: 4.75 kB / 465.8 MB, free: 0.5469 MB / 330.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.000375/0.3869, allocations: 386.8 kB / 466.1 MB, free: 128 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.387, allocations: 8.031 kB / 466.1 MB, free: 120 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.923e-05/0.387, allocations: 11.91 kB / 466.2 MB, free: 108 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002073/0.3872, allocations: 201.5 kB / 466.3 MB, free: 15.87 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.434e-05/0.3873, allocations: 7.922 kB / 466.4 MB, free: 15.86 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.866e-05/0.3873, allocations: 4 kB / 466.4 MB, free: 15.86 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001305/0.3874, allocations: 47.98 kB / 466.4 MB, free: 15.81 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003129/0.3877, allocations: 195.2 kB / 466.6 MB, free: 15.6 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.3878, allocations: 0 / 466.6 MB, free: 15.6 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/0.3878, allocations: 3.984 kB / 466.6 MB, free: 15.6 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.3878, allocations: 4 kB / 466.6 MB, free: 15.59 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003786/0.3882, allocations: 358.3 kB / 467 MB, free: 15.2 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001361/0.3883, allocations: 116 kB / 467.1 MB, free: 15.06 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001198/0.3884, allocations: 62.56 kB / 467.1 MB, free: 14.99 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.928e-05/0.3885, allocations: 12 kB / 467.1 MB, free: 14.98 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.643e-05/0.3885, allocations: 34.52 kB / 467.2 MB, free: 14.93 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.242e-06/0.3885, allocations: 0 / 467.2 MB, free: 14.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.000245/0.3888, allocations: 109.5 kB / 467.3 MB, free: 14.82 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.95e-05/0.3888, allocations: 106.8 kB / 467.4 MB, free: 14.69 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001328/0.389, allocations: 145.4 kB / 467.5 MB, free: 14.54 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.47e-05/0.389, allocations: 25.7 kB / 467.6 MB, free: 14.51 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.803e-05/0.3891, allocations: 92.42 kB / 467.6 MB, free: 14.41 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.44e-05/0.3891, allocations: 11.98 kB / 467.7 MB, free: 14.4 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.937e-06/0.3891, allocations: 0 / 467.7 MB, free: 14.4 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.3892, allocations: 314.8 kB / 468 MB, free: 14.09 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.509e-05/0.3892, allocations: 15.98 kB / 468 MB, free: 14.07 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.528e-05/0.3893, allocations: 73.45 kB / 468.1 MB, free: 13.96 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.359e-05/0.3894, allocations: 31.92 kB / 468.1 MB, free: 13.93 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3894, allocations: 4 kB / 468.1 MB, free: 13.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001412/0.3895, allocations: 101.3 kB / 468.2 MB, free: 13.82 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.3895, allocations: 11.94 kB / 468.2 MB, free: 13.81 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.3896, allocations: 4.344 kB / 468.2 MB, free: 13.81 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.3896, allocations: 7.953 kB / 468.2 MB, free: 13.8 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.3897, allocations: 23.98 kB / 468.2 MB, free: 13.78 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.3897, allocations: 8.031 kB / 468.2 MB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.478e-05/0.3898, allocations: 7.938 kB / 468.2 MB, free: 13.76 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.127e-05/0.3898, allocations: 11.98 kB / 468.3 MB, free: 13.75 MB / 346.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 () * 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 7.204e-05/0.3899, allocations: 112.1 kB / 468.4 MB, free: 13.64 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001459/0.39, allocations: 97.52 kB / 468.5 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.008e-05/0.3901, allocations: 16.62 kB / 468.5 MB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.3901, allocations: 5.516 kB / 468.5 MB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.3901, allocations: 0 / 468.5 MB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.962e-06/0.3901, allocations: 7.984 kB / 468.5 MB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000197/0.3903, allocations: 162 kB / 468.7 MB, free: 13.32 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.3903, allocations: 0 / 468.7 MB, free: 13.32 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001151/0.3904, allocations: 31.92 kB / 468.7 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.3904, allocations: 4 kB / 468.7 MB, free: 13.28 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/0.3905, allocations: 0 / 468.7 MB, free: 13.28 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3905, allocations: 4 kB / 468.7 MB, free: 13.28 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.3905, allocations: 0 / 468.7 MB, free: 13.28 MB / 346.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:307:7-307:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed (Sorry - Support for Discrete Equation Systems is not yet implemented) 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/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:317:7-317: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/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:321:7-321:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7358:5-7358: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.0003592/0.3908, allocations: 393.2 kB / 469.1 MB, free: 12.87 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.988e-05/0.3909, allocations: 108.8 kB / 469.2 MB, free: 12.74 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.604e-05/0.391, allocations: 0 / 469.2 MB, free: 12.74 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001109/0.3911, allocations: 7.953 kB / 469.2 MB, free: 12.73 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.957e-05/0.3911, allocations: 11.94 kB / 469.2 MB, free: 12.72 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.691e-06/0.3911, allocations: 0 / 469.2 MB, free: 12.72 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.138e-05/0.3912, allocations: 115.2 kB / 469.3 MB, free: 12.61 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3912, allocations: 0 / 469.3 MB, free: 12.61 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002611/0.3915, allocations: 12 kB / 469.3 MB, free: 12.6 MB / 346.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 () * 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.0001172/0.3916, allocations: 103.2 kB / 469.4 MB, free: 12.48 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001284/0.3917, allocations: 63.86 kB / 469.5 MB, free: 12.42 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.512e-06/0.3917, allocations: 0.6875 kB / 469.5 MB, free: 12.42 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.405e-05/0.3918, allocations: 8 kB / 469.5 MB, free: 12.41 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003035/0.3921, allocations: 60.31 kB / 469.6 MB, free: 12.36 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003037/0.3924, allocations: 159.3 kB / 469.7 MB, free: 12.17 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/0.3927, allocations: 0.7196 MB / 470.4 MB, free: 11.43 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.235e-05/0.3927, allocations: 16.48 kB / 470.4 MB, free: 11.41 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.711e-05/0.3928, allocations: 15.44 kB / 470.5 MB, free: 11.39 MB / 346.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3928, allocations: 0 / 470.5 MB, free: 11.39 MB / 346.7 MB Notification: Performance of Templates: time 0.002509/0.3953, allocations: 0.787 MB / 471.2 MB, free: 10.62 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches