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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 108.4 kB / 17.74 MB, free: 5.23 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 189.5 kB / 18.67 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.505/1.505, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 51.92 kB / 352 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3646/0.3657, allocations: 49.42 MB / 401.4 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.003796/0.3696, allocations: 1.624 MB / 403 MB, free: 7.273 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005798/0.3702, allocations: 183.3 kB / 403.2 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001067/0.3704, allocations: 0 / 403.2 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001383/0.3705, allocations: 11.88 kB / 403.2 MB, free: 7.082 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001619/0.3707, allocations: 23.84 kB / 403.2 MB, free: 7.059 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002775/0.371, allocations: 43.89 kB / 403.3 MB, free: 7.016 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001558/0.3712, allocations: 71.77 kB / 403.3 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001609/0.3713, allocations: 31.98 kB / 403.4 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.707e-05/0.3714, allocations: 27.92 kB / 403.4 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001225/0.3715, allocations: 39.77 kB / 403.4 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.01e-05/0.3715, allocations: 8 kB / 403.4 MB, free: 6.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.755e-05/0.3716, allocations: 4 kB / 403.4 MB, free: 6.836 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.081e-05/0.3716, allocations: 23.92 kB / 403.5 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.191e-05/0.3717, allocations: 43.67 kB / 403.5 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001748/0.3719, allocations: 91.58 kB / 403.6 MB, free: 6.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.3719, allocations: 0 / 403.6 MB, free: 6.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.816e-06/0.3719, allocations: 0 / 403.6 MB, free: 6.68 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.254e-06/0.3719, allocations: 0 / 403.6 MB, free: 6.68 MB / 318.1 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.0006621/0.3726, allocations: 416.1 kB / 404 MB, free: 6.227 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.226e-05/0.3726, allocations: 11.89 kB / 404 MB, free: 6.215 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.152e-05/0.3727, allocations: 16.75 kB / 404 MB, free: 6.199 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000312/0.373, allocations: 208.1 kB / 404.2 MB, free: 5.957 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.487e-05/0.373, allocations: 4.375 kB / 404.2 MB, free: 5.953 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.618e-05/0.3731, allocations: 8.375 kB / 404.3 MB, free: 5.945 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004952/0.3736, allocations: 209 kB / 404.5 MB, free: 5.723 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.3736, allocations: 4.188 kB / 404.5 MB, free: 5.719 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.543e-05/0.3736, allocations: 3.938 kB / 404.5 MB, free: 5.715 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.3736, allocations: 0 / 404.5 MB, free: 5.715 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001408/0.3738, allocations: 63.83 kB / 404.5 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005594/0.3743, allocations: 377.8 kB / 404.9 MB, free: 5.227 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002181/0.3746, allocations: 139.7 kB / 405 MB, free: 5.062 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001336/0.3747, allocations: 74.67 kB / 405.1 MB, free: 4.98 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.203e-05/0.3748, allocations: 0 / 405.1 MB, free: 4.98 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.211e-05/0.3748, allocations: 38.56 kB / 405.1 MB, free: 4.934 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.834e-06/0.3748, allocations: 0 / 405.1 MB, free: 4.934 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004624/0.3753, allocations: 165.3 kB / 405.3 MB, free: 4.766 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.924e-05/0.3754, allocations: 110.8 kB / 405.4 MB, free: 4.633 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000158/0.3755, allocations: 163.9 kB / 405.6 MB, free: 4.465 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.663e-05/0.3756, allocations: 25.7 kB / 405.6 MB, free: 4.434 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.546e-05/0.3756, allocations: 96.36 kB / 405.7 MB, free: 4.332 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.816e-05/0.3757, allocations: 11.89 kB / 405.7 MB, free: 4.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.982e-05/0.3757, allocations: 29.72 kB / 405.7 MB, free: 4.285 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.3758, allocations: 327.1 kB / 406.1 MB, free: 3.957 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.577e-05/0.3759, allocations: 15.98 kB / 406.1 MB, free: 3.941 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.556e-05/0.376, allocations: 89.31 kB / 406.2 MB, free: 3.82 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001638/0.3762, allocations: 117.3 kB / 406.3 MB, free: 3.672 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.144e-06/0.3762, allocations: 7.938 kB / 406.3 MB, free: 3.664 MB / 318.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002052/0.3764, allocations: 129.5 kB / 406.4 MB, free: 3.531 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.3764, allocations: 4 kB / 406.4 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/0.3765, allocations: 4 kB / 406.4 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.282e-05/0.3765, allocations: 8.359 kB / 406.4 MB, free: 3.516 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001193/0.3766, allocations: 23.92 kB / 406.4 MB, free: 3.492 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/0.3766, allocations: 4 kB / 406.4 MB, free: 3.488 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.582e-05/0.3767, allocations: 11.84 kB / 406.5 MB, free: 3.477 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.361e-05/0.3767, allocations: 11.94 kB / 406.5 MB, free: 3.465 MB / 318.1 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.y,hold1.u,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001415/0.3769, allocations: 141.9 kB / 406.6 MB, free: 3.316 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001728/0.377, allocations: 101.5 kB / 406.7 MB, free: 3.211 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.389e-05/0.3771, allocations: 20.7 kB / 406.7 MB, free: 3.188 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.3771, allocations: 4 kB / 406.7 MB, free: 3.184 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.3771, allocations: 0 / 406.7 MB, free: 3.184 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.3771, allocations: 0 / 406.7 MB, free: 3.184 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002915/0.3774, allocations: 205.4 kB / 406.9 MB, free: 2.934 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.3774, allocations: 0 / 406.9 MB, free: 2.934 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001081/0.3776, allocations: 27.86 kB / 407 MB, free: 2.906 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.3776, allocations: 8 kB / 407 MB, free: 2.898 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.098e-05/0.3776, allocations: 0 / 407 MB, free: 2.898 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.3776, allocations: 4 kB / 407 MB, free: 2.895 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3776, allocations: 0 / 407 MB, free: 2.895 MB / 318.1 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.) sum1.y sum2.u[2] sum2.y hold1.u hold1.y sample2.y sum1.u[2] sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum1.u[2] = sample2.y sample2.y = $getPart(hold1.y) hold1.y = $getPart(hold1.u) hold1.u = sum2.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] sum2.u[2] = sum1.y [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: sum1.y sum2.u[2] sum2.y hold1.u hold1.y sample2.y sum1.u[2] equations: sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum1.u[2] = sample2.y sample2.y = $getPart(hold1.y) hold1.y = $getPart(hold1.u) hold1.u = sum2.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] sum2.u[2] = sum1.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:8011:5-8011: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.0004923/0.3781, allocations: 384.8 kB / 407.3 MB, free: 2.5 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.629e-05/0.3782, allocations: 100.9 kB / 407.4 MB, free: 2.383 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.125e-05/0.3782, allocations: 8 kB / 407.5 MB, free: 2.375 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001047/0.3783, allocations: 3.984 kB / 407.5 MB, free: 2.371 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.591e-05/0.3784, allocations: 4 kB / 407.5 MB, free: 2.367 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.313e-06/0.3784, allocations: 4 kB / 407.5 MB, free: 2.363 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001052/0.3785, allocations: 122.1 kB / 407.6 MB, free: 2.246 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3785, allocations: 0 / 407.6 MB, free: 2.246 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002936/0.3788, allocations: 16 kB / 407.6 MB, free: 2.23 MB / 318.1 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 (sample1.u,hold1.y,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001648/0.379, allocations: 107.2 kB / 407.7 MB, free: 2.117 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002341/0.3792, allocations: 88.41 kB / 407.8 MB, free: 2.031 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3792, allocations: 0 / 407.8 MB, free: 2.031 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.987e-05/0.3793, allocations: 11.92 kB / 407.8 MB, free: 2.02 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005085/0.3798, allocations: 72.25 kB / 407.9 MB, free: 1.949 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005564/0.3804, allocations: 269.2 kB / 408.1 MB, free: 1.652 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004247/0.3808, allocations: 0.7197 MB / 408.9 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.443e-05/0.3809, allocations: 15.44 kB / 408.9 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3809, allocations: 0 / 408.9 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of Templates: time 0.003084/0.384, allocations: 1.184 MB / 410.1 MB, free: 15.71 MB / 334.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches