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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001732/0.001732, allocations: 100 kB / 21.18 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00204/0.00204, allocations: 187.3 kB / 24.45 MB, free: 3.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.472/1.472, allocations: 225.7 MB / 253.3 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] 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=5011,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=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001637/0.001637, allocations: 51.92 kB / 371.6 MB, free: 9.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2725/0.2741, allocations: 52.17 MB / 423.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.004665/0.2788, allocations: 1.635 MB / 425.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006829/0.2795, allocations: 183.4 kB / 425.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.319e-05/0.2796, allocations: 0 / 425.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001441/0.2797, allocations: 15.86 kB / 425.6 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001598/0.2799, allocations: 11.86 kB / 425.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002974/0.2802, allocations: 51.89 kB / 425.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001656/0.2804, allocations: 59.78 kB / 425.8 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001656/0.2805, allocations: 30.94 kB / 425.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.084e-05/0.2806, allocations: 27.84 kB / 425.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000122/0.2807, allocations: 35.84 kB / 425.9 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.959e-05/0.2807, allocations: 4 kB / 425.9 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.533e-05/0.2808, allocations: 8 kB / 425.9 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.78e-05/0.2808, allocations: 27.86 kB / 425.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.647e-05/0.2809, allocations: 31.8 kB / 425.9 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002133/0.2811, allocations: 91.23 kB / 426 MB, free: 12.26 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2811, allocations: 0 / 426 MB, free: 12.26 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2811, allocations: 0 / 426 MB, free: 12.26 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.962e-06/0.2811, allocations: 0 / 426 MB, free: 12.26 MB / 334.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.0007661/0.2819, allocations: 349.7 kB / 426.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.282, allocations: 12.03 kB / 426.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.887e-05/0.282, allocations: 16.84 kB / 426.4 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003164/0.2823, allocations: 146.3 kB / 426.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.673e-05/0.2823, allocations: 4.375 kB / 426.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.513e-05/0.2824, allocations: 8.375 kB / 426.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006261/0.283, allocations: 210.2 kB / 426.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.283, allocations: 192 / 426.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.498e-05/0.283, allocations: 7.938 kB / 426.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/0.283, allocations: 7.984 kB / 426.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002195/0.2833, allocations: 55.89 kB / 426.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005121/0.2838, allocations: 313.6 kB / 427.1 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002623/0.284, allocations: 127.8 kB / 427.2 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001596/0.2842, allocations: 70.59 kB / 427.3 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.62e-05/0.2842, allocations: 4 kB / 427.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.948e-05/0.2843, allocations: 38.56 kB / 427.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.442e-06/0.2843, allocations: 4 kB / 427.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005223/0.2848, allocations: 165.4 kB / 427.5 MB, free: 10.59 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.476e-05/0.2849, allocations: 110.8 kB / 427.6 MB, free: 10.45 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001835/0.2851, allocations: 169.6 kB / 427.8 MB, free: 10.28 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.009e-05/0.2851, allocations: 25.7 kB / 427.8 MB, free: 10.25 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.524e-05/0.2852, allocations: 96.41 kB / 427.9 MB, free: 10.15 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.859e-05/0.2852, allocations: 8 kB / 427.9 MB, free: 10.14 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.588e-05/0.2852, allocations: 33.66 kB / 428 MB, free: 10.1 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.2854, allocations: 327.1 kB / 428.3 MB, free: 9.773 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.189e-05/0.2855, allocations: 19.98 kB / 428.3 MB, free: 9.754 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001208/0.2856, allocations: 81.44 kB / 428.4 MB, free: 9.641 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002078/0.2858, allocations: 117.3 kB / 428.5 MB, free: 9.492 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.2858, allocations: 0 / 428.5 MB, free: 9.492 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000289/0.2861, allocations: 129.6 kB / 428.6 MB, free: 9.359 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.2861, allocations: 12.06 kB / 428.6 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.942e-06/0.2861, allocations: 0 / 428.6 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.2861, allocations: 4 kB / 428.6 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000138/0.2863, allocations: 27.92 kB / 428.7 MB, free: 9.316 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.2863, allocations: 4 kB / 428.7 MB, free: 9.312 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.436e-05/0.2864, allocations: 11.94 kB / 428.7 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.262e-05/0.2864, allocations: 4.375 kB / 428.7 MB, free: 9.297 MB / 334.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.0001446/0.2865, allocations: 133.8 kB / 428.8 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002424/0.2868, allocations: 121.4 kB / 428.9 MB, free: 9.031 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.692e-05/0.2868, allocations: 20.66 kB / 428.9 MB, free: 9.008 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.2868, allocations: 0 / 428.9 MB, free: 9.008 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.2868, allocations: 7.984 kB / 429 MB, free: 9 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.2868, allocations: 0 / 429 MB, free: 9 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002888/0.2871, allocations: 141.2 kB / 429.1 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.2871, allocations: 0 / 429.1 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001414/0.2873, allocations: 23.92 kB / 429.1 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.2873, allocations: 4 kB / 429.1 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.31e-05/0.2873, allocations: 4 kB / 429.1 MB, free: 8.801 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.045e-05/0.2873, allocations: 4 kB / 429.1 MB, free: 8.797 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.2873, allocations: 4 kB / 429.1 MB, free: 8.793 MB / 334.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:8018:5-8018: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.0005484/0.2878, allocations: 383.6 kB / 429.5 MB, free: 8.402 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.612e-05/0.2879, allocations: 27.83 kB / 429.5 MB, free: 8.375 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.086e-05/0.2879, allocations: 0 / 429.5 MB, free: 8.375 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000156/0.2881, allocations: 8 kB / 429.5 MB, free: 8.367 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.96e-05/0.2881, allocations: 8 kB / 429.5 MB, free: 8.359 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.865e-06/0.2881, allocations: 3.938 kB / 429.6 MB, free: 8.355 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001151/0.2883, allocations: 119.2 kB / 429.7 MB, free: 8.238 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2883, allocations: 0 / 429.7 MB, free: 8.238 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004514/0.2887, allocations: 16 kB / 429.7 MB, free: 8.223 MB / 334.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.0001318/0.2888, allocations: 103.2 kB / 429.8 MB, free: 8.113 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000268/0.2891, allocations: 83.83 kB / 429.9 MB, free: 8.031 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2891, allocations: 0 / 429.9 MB, free: 8.031 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.717e-05/0.2892, allocations: 8 kB / 429.9 MB, free: 8.023 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006812/0.2898, allocations: 63.94 kB / 429.9 MB, free: 7.961 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006945/0.2905, allocations: 265.8 kB / 430.2 MB, free: 7.664 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001697/0.2907, allocations: 113.7 kB / 430.3 MB, free: 7.531 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.879e-05/0.2908, allocations: 15.38 kB / 430.3 MB, free: 7.52 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2908, allocations: 0 / 430.3 MB, free: 7.52 MB / 334.1 MB Notification: Performance of Templates: time 0.004551/0.2953, allocations: 1.197 MB / 431.5 MB, free: 6.328 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.022733800113201]