Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001757/0.001757, allocations: 113.7 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002124/0.002124, allocations: 206.8 kB / 19.4 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.696/1.696, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002284/0.002284, allocations: 59.91 kB / 359.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4773/0.4796, allocations: 50.53 MB / 409.9 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.006754/0.4864, allocations: 1.616 MB / 411.5 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00102/0.4875, allocations: 179.4 kB / 411.7 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001839/0.4877, allocations: 4 kB / 411.7 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001879/0.4879, allocations: 11.86 kB / 411.7 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002375/0.4882, allocations: 15.88 kB / 411.7 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00046/0.4887, allocations: 43.88 kB / 411.8 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002746/0.489, allocations: 75.77 kB / 411.9 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002046/0.4892, allocations: 31.98 kB / 411.9 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.991e-05/0.4893, allocations: 27.86 kB / 411.9 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001517/0.4895, allocations: 35.84 kB / 411.9 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.906e-05/0.4895, allocations: 4 kB / 412 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.882e-05/0.4896, allocations: 8 kB / 412 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.564e-05/0.4897, allocations: 27.91 kB / 412 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001031/0.4898, allocations: 47.67 kB / 412 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002511/0.49, allocations: 91.58 kB / 412.1 MB, free: 15.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.4901, allocations: 0 / 412.1 MB, free: 15.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.4901, allocations: 0 / 412.1 MB, free: 15.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.299e-05/0.4901, allocations: 0 / 412.1 MB, free: 15.32 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.001058/0.4912, allocations: 412.1 kB / 412.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.635e-05/0.4912, allocations: 8.031 kB / 412.5 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.439e-05/0.4913, allocations: 16.75 kB / 412.6 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004372/0.4918, allocations: 212 kB / 412.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.998e-05/0.4918, allocations: 4.375 kB / 412.8 MB, free: 14.6 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.925e-05/0.4919, allocations: 12.38 kB / 412.8 MB, free: 14.59 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007639/0.4926, allocations: 205.7 kB / 413 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.4927, allocations: 4.188 kB / 413 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.743e-05/0.4927, allocations: 7.938 kB / 413 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.164e-05/0.4928, allocations: 4 kB / 413 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002536/0.493, allocations: 55.89 kB / 413 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007628/0.4938, allocations: 381.9 kB / 413.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003513/0.4942, allocations: 131.8 kB / 413.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002189/0.4944, allocations: 74.61 kB / 413.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.733e-05/0.4945, allocations: 4 kB / 413.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.927e-05/0.4945, allocations: 38.55 kB / 413.7 MB, free: 13.58 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.944e-06/0.4945, allocations: 0 / 413.7 MB, free: 13.58 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007026/0.4953, allocations: 165.3 kB / 413.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001178/0.4954, allocations: 110.8 kB / 413.9 MB, free: 13.28 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002522/0.4957, allocations: 165.4 kB / 414.1 MB, free: 13.11 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.3e-05/0.4957, allocations: 33.95 kB / 414.1 MB, free: 13.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.4958, allocations: 96.27 kB / 414.2 MB, free: 12.97 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.983e-05/0.4959, allocations: 11.98 kB / 414.2 MB, free: 12.96 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.554e-05/0.496, allocations: 29.72 kB / 414.3 MB, free: 12.92 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.4962, allocations: 318.8 kB / 414.6 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000101/0.4963, allocations: 19.98 kB / 414.6 MB, free: 12.58 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001755/0.4965, allocations: 85.42 kB / 414.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000304/0.4968, allocations: 113.3 kB / 414.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.736e-06/0.4968, allocations: 3.938 kB / 414.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003866/0.4972, allocations: 129.3 kB / 414.9 MB, free: 12.18 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.755e-05/0.4973, allocations: 8 kB / 414.9 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.4973, allocations: 4 kB / 414.9 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.4973, allocations: 0 / 414.9 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001542/0.4975, allocations: 28.27 kB / 415 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.4975, allocations: 8 kB / 415 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.287e-05/0.4976, allocations: 19.81 kB / 415 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.511e-05/0.4976, allocations: 4 kB / 415 MB, free: 12.11 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.0001669/0.4978, allocations: 144.9 kB / 415.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002764/0.4981, allocations: 109.8 kB / 415.2 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.602e-05/0.4982, allocations: 16.72 kB / 415.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.4982, allocations: 4 kB / 415.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.4982, allocations: 4 kB / 415.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.4982, allocations: 0 / 415.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004831/0.4987, allocations: 205.3 kB / 415.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.4987, allocations: 4 kB / 415.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001572/0.4989, allocations: 19.98 kB / 415.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.4989, allocations: 0 / 415.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.658e-05/0.4989, allocations: 7.984 kB / 415.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.4989, allocations: 4 kB / 415.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.499, allocations: 0 / 415.5 MB, free: 11.54 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: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.0007018/0.4997, allocations: 380.3 kB / 415.9 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001076/0.4998, allocations: 100.9 kB / 416 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.558e-05/0.4998, allocations: 7.984 kB / 416 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001567/0.5, allocations: 8 kB / 416 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.84e-05/0.5, allocations: 0 / 416 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.345e-06/0.5001, allocations: 4 kB / 416 MB, free: 11.01 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001244/0.5002, allocations: 119.2 kB / 416.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5002, allocations: 0 / 416.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000456/0.5007, allocations: 12 kB / 416.1 MB, free: 10.88 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.0001751/0.5009, allocations: 115.2 kB / 416.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003803/0.5012, allocations: 87.98 kB / 416.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.5013, allocations: 0 / 416.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.617e-05/0.5014, allocations: 8 kB / 416.3 MB, free: 10.67 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008028/0.5022, allocations: 75.28 kB / 416.4 MB, free: 10.6 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008675/0.5031, allocations: 273.6 kB / 416.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005049/0.5036, allocations: 0.7083 MB / 417.4 MB, free: 9.555 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.929e-05/0.5037, allocations: 15.44 kB / 417.4 MB, free: 9.539 MB / 334.1 MB Notification: Performance of SimCode: time 4.41e-07/0.5037, allocations: 0 / 417.4 MB, free: 9.539 MB / 334.1 MB Notification: Performance of Templates: time 0.004845/0.5085, allocations: 1.197 MB / 418.6 MB, free: 8.34 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches