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/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/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.002255/0.002255, allocations: 181.2 kB / 17.46 MB, free: 4.242 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.532/2.532, allocations: 205.4 MB / 223.6 MB, free: 9.027 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.00119/0.00119, allocations: 85.36 kB / 271.9 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.15/0.15, allocations: 12.21 MB / 332.4 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006877/0.0006877, allocations: 15.98 kB / 392.7 MB, free: 67.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1714/0.1721, allocations: 50.29 MB / 443 MB, free: 16.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6023/0.7745, allocations: 78.44 MB / 0.5092 GB, free: 12.97 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002691/0.7748, allocations: 80.97 kB / 0.5093 GB, free: 12.96 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005751/0.7806, allocations: 2.17 MB / 0.5114 GB, free: 12.24 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.078e-06/0.7806, allocations: 0 / 0.5114 GB, free: 12.24 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.041e-05/0.7807, allocations: 3.906 kB / 0.5114 GB, free: 12.24 MB / 330.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.0005513/0.7812, allocations: 404.7 kB / 0.5118 GB, free: 11.83 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.57e-05/0.7813, allocations: 7.719 kB / 0.5118 GB, free: 11.83 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.481e-05/0.7813, allocations: 12.53 kB / 0.5118 GB, free: 11.83 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002707/0.7816, allocations: 212.6 kB / 0.512 GB, free: 11.61 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.914e-05/0.7817, allocations: 3.188 kB / 0.512 GB, free: 11.61 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.317e-05/0.7817, allocations: 8.062 kB / 0.512 GB, free: 11.61 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005573/0.7823, allocations: 214.3 kB / 0.5122 GB, free: 11.49 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.7823, allocations: 4.125 kB / 0.5123 GB, free: 11.49 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.345e-05/0.7823, allocations: 11.19 kB / 0.5123 GB, free: 11.48 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.929e-06/0.7823, allocations: 3.875 kB / 0.5123 GB, free: 11.48 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001437/0.7825, allocations: 49.09 kB / 0.5123 GB, free: 11.47 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005748/0.7831, allocations: 393.3 kB / 0.5127 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002199/0.7833, allocations: 138.6 kB / 0.5128 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001321/0.7834, allocations: 79.88 kB / 0.5129 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.39e-05/0.7835, allocations: 3.844 kB / 0.5129 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.727e-05/0.7835, allocations: 34.5 kB / 0.5129 GB, free: 10.91 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 1.532e-06/0.7835, allocations: 4 kB / 0.5129 GB, free: 10.9 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004274/0.784, allocations: 168.5 kB / 0.5131 GB, free: 10.84 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.497e-05/0.7841, allocations: 109.6 kB / 0.5132 GB, free: 10.71 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001582/0.7842, allocations: 164 kB / 0.5134 GB, free: 10.59 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.049e-05/0.7842, allocations: 33.11 kB / 0.5134 GB, free: 10.56 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.923e-05/0.7843, allocations: 98.48 kB / 0.5135 GB, free: 10.47 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.97e-05/0.7843, allocations: 11.31 kB / 0.5135 GB, free: 10.46 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.389e-06/0.7844, allocations: 0 / 0.5135 GB, free: 10.46 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.7845, allocations: 322.6 kB / 0.5138 GB, free: 10.15 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.852e-05/0.7846, allocations: 22.52 kB / 0.5138 GB, free: 10.14 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.887e-05/0.7847, allocations: 96.8 kB / 0.5139 GB, free: 10.04 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001649/0.7849, allocations: 122 kB / 0.514 GB, free: 9.934 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.179e-06/0.7849, allocations: 3.938 kB / 0.514 GB, free: 9.93 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002034/0.7851, allocations: 124.6 kB / 0.5142 GB, free: 9.867 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.7851, allocations: 8.031 kB / 0.5142 GB, free: 9.867 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.7851, allocations: 4 kB / 0.5142 GB, free: 9.863 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.343e-05/0.7852, allocations: 3.906 kB / 0.5142 GB, free: 9.863 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.7853, allocations: 23.39 kB / 0.5142 GB, free: 9.859 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.143e-05/0.7853, allocations: 7.75 kB / 0.5142 GB, free: 9.855 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.886e-05/0.7853, allocations: 10.84 kB / 0.5142 GB, free: 9.855 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.034e-05/0.7854, allocations: 3.844 kB / 0.5142 GB, free: 9.855 MB / 330.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 () * 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.0001158/0.7855, allocations: 140.2 kB / 0.5143 GB, free: 9.73 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001605/0.7857, allocations: 116.1 kB / 0.5145 GB, free: 9.672 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.123e-05/0.7857, allocations: 21.42 kB / 0.5145 GB, free: 9.66 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.117e-06/0.7857, allocations: 3.844 kB / 0.5145 GB, free: 9.66 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.347e-06/0.7857, allocations: 0 / 0.5145 GB, free: 9.66 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.042e-06/0.7858, allocations: 3.938 kB / 0.5145 GB, free: 9.656 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002234/0.786, allocations: 189.8 kB / 0.5147 GB, free: 9.449 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.786, allocations: 7.734 kB / 0.5147 GB, free: 9.445 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001043/0.7861, allocations: 23.11 kB / 0.5147 GB, free: 9.441 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.7861, allocations: 3.938 kB / 0.5147 GB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.7861, allocations: 6.969 kB / 0.5147 GB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.7861, allocations: 4 kB / 0.5147 GB, free: 9.434 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.7861, allocations: 0 / 0.5147 GB, free: 9.434 MB / 330.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: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.000384/0.7865, allocations: 388.9 kB / 0.5151 GB, free: 9.156 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.934e-05/0.7866, allocations: 95.47 kB / 0.5152 GB, free: 9.055 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.115e-05/0.7866, allocations: 7.156 kB / 0.5152 GB, free: 9.055 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001102/0.7868, allocations: 11.83 kB / 0.5152 GB, free: 9.047 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.105e-05/0.7868, allocations: 7.062 kB / 0.5152 GB, free: 9.043 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.935e-06/0.7868, allocations: 3.844 kB / 0.5152 GB, free: 9.043 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.612e-05/0.7869, allocations: 118.9 kB / 0.5153 GB, free: 8.957 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.7869, allocations: 0 / 0.5153 GB, free: 8.957 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002903/0.7872, allocations: 11.16 kB / 0.5153 GB, free: 8.957 MB / 330.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 () * 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.0001077/0.7873, allocations: 98.16 kB / 0.5154 GB, free: 8.871 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002243/0.7876, allocations: 90.88 kB / 0.5155 GB, free: 8.848 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.7876, allocations: 0 / 0.5155 GB, free: 8.848 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.192e-05/0.7876, allocations: 19.45 kB / 0.5155 GB, free: 8.84 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004732/0.7881, allocations: 62.22 kB / 0.5156 GB, free: 8.824 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005475/0.7887, allocations: 301.1 kB / 0.5159 GB, free: 8.586 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002878/0.789, allocations: 0.7115 MB / 0.5166 GB, free: 7.879 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.776e-05/0.789, allocations: 15.27 kB / 0.5166 GB, free: 7.867 MB / 330.7 MB Notification: Performance of SimCode: time 7.02e-07/0.789, allocations: 4 kB / 0.5166 GB, free: 7.863 MB / 330.7 MB Notification: Performance of Templates: time 0.003598/0.7926, allocations: 1.156 MB / 0.5177 GB, free: 7.289 MB / 330.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