Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample1.y|sample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample1.y|sample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002311/0.00231, allocations: 181 kB / 13.7 MB, free: 1.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.306/2.306, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001079/0.001079, allocations: 86.7 kB / 267.6 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1026/0.1026, allocations: 12.6 MB / 328.2 MB, free: 11.16 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.047e-05/4.058e-05, allocations: 4 kB / 386 MB, free: 1.309 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3069/0.307, allocations: 50.38 MB / 436.3 MB, free: 14.16 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.138/0.445, allocations: 78.37 MB / 0.5027 GB, free: 15.69 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003009/0.4454, allocations: 79.95 kB / 0.5027 GB, free: 15.61 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006685/0.4521, allocations: 1.604 MB / 0.5043 GB, free: 14 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.4521, allocations: 0 / 0.5043 GB, free: 14 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.811e-05/0.4522, allocations: 0 / 0.5043 GB, free: 14 MB / 362.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.0007926/0.453, allocations: 386.2 kB / 0.5047 GB, free: 13.57 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.648e-05/0.4531, allocations: 8.031 kB / 0.5047 GB, free: 13.57 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.406e-05/0.4532, allocations: 11.81 kB / 0.5047 GB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003386/0.4535, allocations: 198.8 kB / 0.5049 GB, free: 13.32 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.4536, allocations: 11.95 kB / 0.5049 GB, free: 13.31 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.704e-05/0.4536, allocations: 7.984 kB / 0.5049 GB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005724/0.4542, allocations: 201.8 kB / 0.5051 GB, free: 13.08 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.4542, allocations: 4 kB / 0.5051 GB, free: 13.08 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.861e-05/0.4543, allocations: 4 kB / 0.5051 GB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.216e-05/0.4543, allocations: 4 kB / 0.5051 GB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001514/0.4544, allocations: 43.92 kB / 0.5051 GB, free: 13.03 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006984/0.4552, allocations: 389.7 kB / 0.5055 GB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002703/0.4555, allocations: 124.9 kB / 0.5056 GB, free: 12.44 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001631/0.4556, allocations: 70.62 kB / 0.5057 GB, free: 12.36 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.441e-05/0.4557, allocations: 11.98 kB / 0.5057 GB, free: 12.35 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.708e-05/0.4557, allocations: 30.56 kB / 0.5057 GB, free: 12.31 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 2.805e-06/0.4557, allocations: 0 / 0.5057 GB, free: 12.31 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.000391/0.4561, allocations: 121.4 kB / 0.5058 GB, free: 12.19 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/0.4563, allocations: 114.9 kB / 0.506 GB, free: 12.05 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002529/0.4565, allocations: 153.1 kB / 0.5061 GB, free: 11.89 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.281e-05/0.4566, allocations: 25.7 kB / 0.5061 GB, free: 11.86 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.468e-05/0.4567, allocations: 158.8 kB / 0.5063 GB, free: 11.7 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.51e-05/0.4567, allocations: 15.89 kB / 0.5063 GB, free: 11.69 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.342e-06/0.4567, allocations: 0 / 0.5063 GB, free: 11.69 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.4569, allocations: 318.8 kB / 0.5066 GB, free: 11.37 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.186e-05/0.4569, allocations: 19.98 kB / 0.5066 GB, free: 11.35 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001106/0.4571, allocations: 81.39 kB / 0.5067 GB, free: 11.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.642e-05/0.4572, allocations: 31.92 kB / 0.5067 GB, free: 11.2 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.4572, allocations: 0 / 0.5067 GB, free: 11.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002627/0.4575, allocations: 109.4 kB / 0.5068 GB, free: 11.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/0.4575, allocations: 8 kB / 0.5068 GB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.4575, allocations: 0 / 0.5068 GB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.4575, allocations: 4 kB / 0.5068 GB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002151/0.4578, allocations: 27.92 kB / 0.5069 GB, free: 11.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.516e-05/0.4578, allocations: 4 kB / 0.5069 GB, free: 11.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001084/0.4579, allocations: 16.23 kB / 0.5069 GB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.981e-05/0.4579, allocations: 12 kB / 0.5069 GB, free: 11.02 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,hold.u,hold.y,sample1.y) * Number of discrete 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.0001355/0.4581, allocations: 118.3 kB / 0.507 GB, free: 10.9 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002862/0.4584, allocations: 105.5 kB / 0.5071 GB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.246e-05/0.4585, allocations: 24.59 kB / 0.5071 GB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.4585, allocations: 0 / 0.5071 GB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.4585, allocations: 4 kB / 0.5071 GB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.922e-06/0.4585, allocations: 0 / 0.5071 GB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003639/0.4589, allocations: 201.4 kB / 0.5073 GB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.4589, allocations: 4 kB / 0.5073 GB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002357/0.4592, allocations: 27.92 kB / 0.5074 GB, free: 10.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.001e-05/0.4592, allocations: 4 kB / 0.5074 GB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.375e-05/0.4592, allocations: 0 / 0.5074 GB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.4592, allocations: 0 / 0.5074 GB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.4592, allocations: 0 / 0.5074 GB, free: 10.48 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.) hold.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold.y hold.y = $getPart(hold.u) sample2.y = $getPart(hold.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] hold.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: hold.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold.y equations: hold.y = $getPart(hold.u) sample2.y = $getPart(hold.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] hold.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:7819:5-7819: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.0006251/0.4599, allocations: 399.8 kB / 0.5077 GB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001245/0.46, allocations: 104.8 kB / 0.5078 GB, free: 9.941 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.4601, allocations: 0 / 0.5078 GB, free: 9.941 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001758/0.4602, allocations: 19.98 kB / 0.5079 GB, free: 9.922 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.044e-05/0.4603, allocations: 4 kB / 0.5079 GB, free: 9.918 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.415e-05/0.4603, allocations: 4 kB / 0.5079 GB, free: 9.914 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000169/0.4605, allocations: 112.1 kB / 0.508 GB, free: 9.805 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.52e-07/0.4605, allocations: 0 / 0.508 GB, free: 9.805 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000377/0.4609, allocations: 15.95 kB / 0.508 GB, free: 9.789 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 (hold.y,sample1.u,sample1.y,hold.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 () * 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.0001601/0.4611, allocations: 111.2 kB / 0.5081 GB, free: 9.668 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002403/0.4613, allocations: 71.86 kB / 0.5082 GB, free: 9.598 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.4613, allocations: 0 / 0.5082 GB, free: 9.598 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.532e-05/0.4614, allocations: 7.938 kB / 0.5082 GB, free: 9.59 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004589/0.4619, allocations: 51.95 kB / 0.5082 GB, free: 9.539 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000543/0.4624, allocations: 216.8 kB / 0.5084 GB, free: 9.301 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003817/0.4628, allocations: 0.7199 MB / 0.5091 GB, free: 8.555 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.376e-05/0.4629, allocations: 15.42 kB / 0.5092 GB, free: 8.539 MB / 362.7 MB Notification: Performance of SimCode: time 1.754e-06/0.4629, allocations: 0 / 0.5092 GB, free: 8.539 MB / 362.7 MB Notification: Performance of Templates: time 0.0038/0.4667, allocations: 1.142 MB / 0.5103 GB, free: 7.395 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches