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.0009659/0.0009662, allocations: 177.2 kB / 17.4 MB, free: 4.418 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.581/1.581, allocations: 223.3 MB / 241.4 MB, free: 11.73 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.0008794/0.0008796, allocations: 106.7 kB / 292.6 MB, free: 10.78 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003581/0.0003583, allocations: 8 kB / 352.3 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.275/0.2754, allocations: 50.4 MB / 402.7 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1017/0.3772, allocations: 77.35 MB / 480.1 MB, free: 2.996 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002594/0.3775, allocations: 78.17 kB / 480.2 MB, free: 2.922 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004616/0.3822, allocations: 1.662 MB / 481.8 MB, free: 1.258 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.946e-06/0.3822, allocations: 0 / 481.8 MB, free: 1.258 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.232e-05/0.3822, allocations: 0 / 481.8 MB, free: 1.258 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.000493/0.3827, allocations: 387.2 kB / 482.2 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.202e-05/0.3828, allocations: 8.031 kB / 482.2 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.737e-05/0.3828, allocations: 16.75 kB / 482.2 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002756/0.3831, allocations: 217 kB / 482.4 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.978e-06/0.3831, allocations: 384 / 482.4 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.662e-05/0.3832, allocations: 12.38 kB / 482.5 MB, free: 0.543 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004505/0.3836, allocations: 214.1 kB / 482.7 MB, free: 320 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.3837, allocations: 192 / 482.7 MB, free: 320 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/0.3837, allocations: 11.94 kB / 482.7 MB, free: 308 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.3837, allocations: 0 / 482.7 MB, free: 308 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001397/0.3838, allocations: 63.89 kB / 482.7 MB, free: 244 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005191/0.3844, allocations: 385.8 kB / 483.1 MB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002043/0.3846, allocations: 139.8 kB / 483.3 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001319/0.3847, allocations: 78.59 kB / 483.3 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.492e-05/0.3848, allocations: 0 / 483.3 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.488e-05/0.3848, allocations: 38.56 kB / 483.4 MB, free: 15.51 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.072e-06/0.3848, allocations: 0 / 483.4 MB, free: 15.51 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003895/0.3852, allocations: 165.4 kB / 483.5 MB, free: 15.34 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.921e-05/0.3853, allocations: 114.8 kB / 483.6 MB, free: 15.2 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001886/0.3855, allocations: 167.5 kB / 483.8 MB, free: 15.03 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.485e-05/0.3855, allocations: 29.7 kB / 483.8 MB, free: 15 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.577e-05/0.3856, allocations: 92.41 kB / 483.9 MB, free: 14.9 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.833e-05/0.3857, allocations: 7.938 kB / 483.9 MB, free: 14.89 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.911e-06/0.3857, allocations: 4 kB / 483.9 MB, free: 14.89 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001774/0.3858, allocations: 322.8 kB / 484.3 MB, free: 14.56 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.452e-05/0.386, allocations: 20.36 kB / 484.3 MB, free: 14.54 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.99e-05/0.3861, allocations: 81.44 kB / 484.4 MB, free: 14.43 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001847/0.3863, allocations: 130.4 kB / 484.5 MB, free: 14.27 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.531e-06/0.3863, allocations: 3.938 kB / 484.5 MB, free: 14.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002352/0.3865, allocations: 129.6 kB / 484.6 MB, free: 14.13 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.25e-05/0.3865, allocations: 12.06 kB / 484.6 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.3866, allocations: 0 / 484.6 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.066e-05/0.3866, allocations: 4 kB / 484.6 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001255/0.3867, allocations: 27.92 kB / 484.7 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.395e-05/0.3867, allocations: 4 kB / 484.7 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.386e-05/0.3868, allocations: 11.84 kB / 484.7 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.565e-05/0.3868, allocations: 8 kB / 484.7 MB, free: 14.07 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.0001784/0.387, allocations: 147.2 kB / 484.8 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001804/0.3872, allocations: 97.52 kB / 484.9 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.968e-05/0.3873, allocations: 24.69 kB / 484.9 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.3873, allocations: 4 kB / 484.9 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.3873, allocations: 0 / 484.9 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.3873, allocations: 0 / 484.9 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002712/0.3876, allocations: 197.5 kB / 485.1 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.3876, allocations: 4 kB / 485.1 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001129/0.3877, allocations: 19.98 kB / 485.2 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.3877, allocations: 8 kB / 485.2 MB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.448e-06/0.3877, allocations: 0 / 485.2 MB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.325e-06/0.3877, allocations: 0 / 485.2 MB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.3878, allocations: 4 kB / 485.2 MB, free: 13.51 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.0005346/0.3883, allocations: 390.9 kB / 485.6 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.813e-05/0.3884, allocations: 100.9 kB / 485.7 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.509e-05/0.3884, allocations: 4 kB / 485.7 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001066/0.3885, allocations: 7.984 kB / 485.7 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.134e-05/0.3886, allocations: 4 kB / 485.7 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.515e-06/0.3886, allocations: 8 kB / 485.7 MB, free: 12.97 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.982e-05/0.3887, allocations: 115.2 kB / 485.8 MB, free: 12.86 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3887, allocations: 0 / 485.8 MB, free: 12.86 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000279/0.389, allocations: 16 kB / 485.8 MB, free: 12.84 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.0001753/0.3892, allocations: 108.1 kB / 485.9 MB, free: 12.72 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002409/0.3895, allocations: 91.78 kB / 486 MB, free: 12.63 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3895, allocations: 96 / 486 MB, free: 12.63 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.572e-05/0.3895, allocations: 15.92 kB / 486 MB, free: 12.62 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004771/0.39, allocations: 71.88 kB / 486.1 MB, free: 12.55 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004729/0.3905, allocations: 259.8 kB / 486.3 MB, free: 12.27 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003295/0.3908, allocations: 0.7083 MB / 487 MB, free: 11.53 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.837e-05/0.3909, allocations: 16.41 kB / 487.1 MB, free: 11.52 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.147e-05/0.3909, allocations: 11.44 kB / 487.1 MB, free: 11.5 MB / 362.7 MB Notification: Performance of SimCode: time 4.81e-07/0.3909, allocations: 0 / 487.1 MB, free: 11.5 MB / 362.7 MB Notification: Performance of Templates: time 0.003227/0.3942, allocations: 0.8263 MB / 487.9 MB, free: 10.69 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/jenkins1/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