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.001412/0.001412, allocations: 180.5 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.525/1.525, allocations: 223.2 MB / 240.3 MB, free: 11.87 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 89.05 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003066/0.0003067, allocations: 4 kB / 351.1 MB, free: 15.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2728/0.2731, allocations: 50.4 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09438/0.3676, allocations: 77.31 MB / 478.8 MB, free: 3.176 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002302/0.3678, allocations: 75.95 kB / 478.9 MB, free: 3.102 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004636/0.3725, allocations: 1.65 MB / 480.5 MB, free: 1.453 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3725, allocations: 0 / 480.5 MB, free: 1.453 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.939e-06/0.3725, allocations: 2.156 kB / 480.5 MB, free: 1.453 MB / 346.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.000434/0.373, allocations: 394.9 kB / 480.9 MB, free: 1.02 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.373, allocations: 8.031 kB / 480.9 MB, free: 1.012 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.328e-05/0.3731, allocations: 19.8 kB / 480.9 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002433/0.3733, allocations: 207.8 kB / 481.1 MB, free: 0.75 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.295e-05/0.3734, allocations: 4 kB / 481.1 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.981e-05/0.3734, allocations: 8 kB / 481.2 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004499/0.3738, allocations: 221.3 kB / 481.4 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.607e-06/0.3739, allocations: 0 / 481.4 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.793e-05/0.3739, allocations: 7.953 kB / 481.4 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.411e-05/0.3739, allocations: 4 kB / 481.4 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001323/0.374, allocations: 55.91 kB / 481.4 MB, free: 448 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005023/0.3746, allocations: 385.8 kB / 481.8 MB, free: 4 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002511/0.3748, allocations: 131.8 kB / 481.9 MB, free: 15.85 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.484e-05/0.3749, allocations: 11.95 kB / 482 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/0.3749, allocations: 34.62 kB / 482 MB, free: 15.79 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.393e-06/0.3749, allocations: 0 / 482 MB, free: 15.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003903/0.3753, allocations: 169.4 kB / 482.2 MB, free: 15.62 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.321e-05/0.3754, allocations: 115 kB / 482.3 MB, free: 15.48 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001315/0.3755, allocations: 150.4 kB / 482.4 MB, free: 15.33 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.159e-05/0.3755, allocations: 29.7 kB / 482.4 MB, free: 15.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.667e-05/0.3756, allocations: 96.41 kB / 482.5 MB, free: 15.2 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.193e-05/0.3756, allocations: 3.938 kB / 482.5 MB, free: 15.19 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.039e-06/0.3756, allocations: 4 kB / 482.5 MB, free: 15.19 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.3757, allocations: 322.8 kB / 482.9 MB, free: 14.86 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.544e-05/0.3758, allocations: 23.98 kB / 482.9 MB, free: 14.84 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.231e-05/0.3759, allocations: 85.38 kB / 483 MB, free: 14.72 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.92e-05/0.376, allocations: 35.92 kB / 483 MB, free: 14.69 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.376, allocations: 0 / 483 MB, free: 14.69 MB / 362.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002108/0.3762, allocations: 129.4 kB / 483.1 MB, free: 14.55 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.681e-05/0.3762, allocations: 11.95 kB / 483.1 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.3763, allocations: 3.984 kB / 483.1 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.3763, allocations: 4 kB / 483.1 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001148/0.3764, allocations: 28.27 kB / 483.2 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.673e-05/0.3764, allocations: 12 kB / 483.2 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.273e-05/0.3765, allocations: 19.83 kB / 483.2 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.113e-05/0.3765, allocations: 8 kB / 483.2 MB, free: 14.47 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.0001301/0.3767, allocations: 131.3 kB / 483.3 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001898/0.3769, allocations: 105.9 kB / 483.4 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.168e-05/0.3769, allocations: 20.67 kB / 483.5 MB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.3769, allocations: 4.094 kB / 483.5 MB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.377, allocations: 7.938 kB / 483.5 MB, free: 14.19 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.377, allocations: 0 / 483.5 MB, free: 14.19 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002755/0.3772, allocations: 197.5 kB / 483.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.3773, allocations: 0 / 483.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001199/0.3774, allocations: 23.98 kB / 483.7 MB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.3774, allocations: 0 / 483.7 MB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.426e-05/0.3774, allocations: 7.984 kB / 483.7 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.3774, allocations: 7.953 kB / 483.7 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3774, allocations: 0 / 483.7 MB, free: 13.91 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.0005582/0.378, allocations: 410.7 kB / 484.1 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001014/0.3781, allocations: 104.9 kB / 484.2 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.037e-05/0.3781, allocations: 7.984 kB / 484.2 MB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001086/0.3782, allocations: 8 kB / 484.2 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.421e-05/0.3783, allocations: 0 / 484.2 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.885e-06/0.3783, allocations: 4 kB / 484.2 MB, free: 13.34 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001114/0.3784, allocations: 119.2 kB / 484.3 MB, free: 13.22 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3784, allocations: 4 kB / 484.4 MB, free: 13.21 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003082/0.3787, allocations: 16 kB / 484.4 MB, free: 13.2 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.0001418/0.3789, allocations: 110.6 kB / 484.5 MB, free: 13.09 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000217/0.3791, allocations: 92.39 kB / 484.6 MB, free: 13 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3791, allocations: 0 / 484.6 MB, free: 13 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.437e-05/0.3792, allocations: 8 kB / 484.6 MB, free: 12.99 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003519/0.3795, allocations: 67.94 kB / 484.6 MB, free: 12.92 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004239/0.38, allocations: 251.2 kB / 484.9 MB, free: 12.65 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002785/0.3803, allocations: 0.716 MB / 485.6 MB, free: 11.91 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.834e-05/0.3803, allocations: 16.41 kB / 485.6 MB, free: 11.89 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.039e-05/0.3804, allocations: 15.44 kB / 485.6 MB, free: 11.88 MB / 362.7 MB Notification: Performance of SimCode: time 3.7e-07/0.3804, allocations: 0 / 485.6 MB, free: 11.88 MB / 362.7 MB Notification: Performance of Templates: time 0.00316/0.3835, allocations: 0.8138 MB / 486.4 MB, free: 11.07 MB / 362.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