Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.000903/0.0009035, allocations: 172.2 kB / 16.8 MB, free: 4.898 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.445/1.445, allocations: 205.4 MB / 223 MB, free: 9.02 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.0008721/0.0008721, allocations: 84.91 kB / 271.3 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09132/0.09132, allocations: 12.6 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004308/0.0004308, allocations: 20 kB / 393.2 MB, free: 65.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09581/0.09626, allocations: 50.37 MB / 443.6 MB, free: 15.51 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3373/0.4336, allocations: 78.47 MB / 0.5098 GB, free: 13.41 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002686/0.434, allocations: 80.14 kB / 0.5099 GB, free: 13.41 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004315/0.4383, allocations: 1.608 MB / 0.5115 GB, free: 12.63 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.4383, allocations: 4 kB / 0.5115 GB, free: 12.63 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.347e-05/0.4384, allocations: 7.422 kB / 0.5115 GB, free: 12.63 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.0004224/0.4388, allocations: 391.3 kB / 0.5119 GB, free: 12.23 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.4389, allocations: 11.53 kB / 0.5119 GB, free: 12.23 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.94e-05/0.4389, allocations: 12.25 kB / 0.5119 GB, free: 12.23 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002143/0.4391, allocations: 207.1 kB / 0.5121 GB, free: 12 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.963e-05/0.4392, allocations: 4.219 kB / 0.5121 GB, free: 12 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.065e-05/0.4392, allocations: 12.34 kB / 0.5121 GB, free: 12 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004323/0.4396, allocations: 216.4 kB / 0.5123 GB, free: 11.88 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/0.4397, allocations: 192 / 0.5123 GB, free: 11.88 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.527e-05/0.4397, allocations: 3.938 kB / 0.5123 GB, free: 11.88 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.726e-06/0.4397, allocations: 7.656 kB / 0.5123 GB, free: 11.88 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001432/0.4398, allocations: 57 kB / 0.5124 GB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004922/0.4404, allocations: 389.4 kB / 0.5128 GB, free: 11.48 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000181/0.4405, allocations: 133 kB / 0.5129 GB, free: 11.39 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.4407, allocations: 75.23 kB / 0.5129 GB, free: 11.35 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.632e-05/0.4407, allocations: 15.39 kB / 0.513 GB, free: 11.34 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.529e-05/0.4407, allocations: 38.06 kB / 0.513 GB, free: 11.3 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 2.445e-06/0.4408, allocations: 0 / 0.513 GB, free: 11.3 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003962/0.4412, allocations: 159.3 kB / 0.5132 GB, free: 11.25 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.317e-05/0.4412, allocations: 126.2 kB / 0.5133 GB, free: 11.11 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001394/0.4414, allocations: 163.3 kB / 0.5134 GB, free: 10.98 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.687e-05/0.4414, allocations: 29.64 kB / 0.5135 GB, free: 10.95 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.873e-05/0.4415, allocations: 99.62 kB / 0.5136 GB, free: 10.86 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.494e-05/0.4415, allocations: 10.62 kB / 0.5136 GB, free: 10.86 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.437e-06/0.4415, allocations: 0 / 0.5136 GB, free: 10.86 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.843e-05/0.4416, allocations: 323.9 kB / 0.5139 GB, free: 10.54 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001178/0.4417, allocations: 23.36 kB / 0.5139 GB, free: 10.53 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.498e-05/0.4418, allocations: 79 kB / 0.514 GB, free: 10.44 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001599/0.442, allocations: 126 kB / 0.5141 GB, free: 10.33 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.672e-06/0.442, allocations: 7.75 kB / 0.5141 GB, free: 10.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002025/0.4422, allocations: 126.7 kB / 0.5142 GB, free: 10.26 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.4423, allocations: 9.562 kB / 0.5142 GB, free: 10.26 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.4423, allocations: 3.812 kB / 0.5142 GB, free: 10.26 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.066e-05/0.4423, allocations: 3.906 kB / 0.5142 GB, free: 10.26 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000109/0.4424, allocations: 26.98 kB / 0.5143 GB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.4424, allocations: 3.906 kB / 0.5143 GB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.702e-05/0.4425, allocations: 7.875 kB / 0.5143 GB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.114e-05/0.4425, allocations: 7.938 kB / 0.5143 GB, free: 10.25 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.0001042/0.4426, allocations: 148.5 kB / 0.5144 GB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001487/0.4428, allocations: 105.1 kB / 0.5145 GB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.026e-05/0.4428, allocations: 22.73 kB / 0.5145 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.4428, allocations: 3.984 kB / 0.5145 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.707e-06/0.4429, allocations: 3.844 kB / 0.5145 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.4429, allocations: 0 / 0.5145 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002337/0.4431, allocations: 190.8 kB / 0.5147 GB, free: 9.844 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.4431, allocations: 4 kB / 0.5147 GB, free: 9.84 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001095/0.4432, allocations: 23.2 kB / 0.5148 GB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.4432, allocations: 3.844 kB / 0.5148 GB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/0.4433, allocations: 0 / 0.5148 GB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.4433, allocations: 3.844 kB / 0.5148 GB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.4433, allocations: 3.938 kB / 0.5148 GB, free: 9.832 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.0003896/0.4437, allocations: 392 kB / 0.5151 GB, free: 9.555 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.991e-05/0.4437, allocations: 96.41 kB / 0.5152 GB, free: 9.453 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.623e-05/0.4438, allocations: 3.938 kB / 0.5152 GB, free: 9.449 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.4439, allocations: 11.31 kB / 0.5152 GB, free: 9.445 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.911e-05/0.4439, allocations: 7.828 kB / 0.5153 GB, free: 9.441 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.293e-06/0.4439, allocations: 3.844 kB / 0.5153 GB, free: 9.441 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.495e-05/0.444, allocations: 113.1 kB / 0.5154 GB, free: 9.359 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.444, allocations: 3.938 kB / 0.5154 GB, free: 9.355 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002706/0.4443, allocations: 14.91 kB / 0.5154 GB, free: 9.355 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 9.229e-05/0.4444, allocations: 106.3 kB / 0.5155 GB, free: 9.262 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002002/0.4446, allocations: 88.92 kB / 0.5156 GB, free: 9.234 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.4446, allocations: 0 / 0.5156 GB, free: 9.234 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.113e-05/0.4447, allocations: 15.7 kB / 0.5156 GB, free: 9.23 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004806/0.4451, allocations: 72.44 kB / 0.5157 GB, free: 9.207 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000471/0.4456, allocations: 264.1 kB / 0.5159 GB, free: 9.012 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001878/0.4459, allocations: 0.7113 MB / 0.5166 GB, free: 8.297 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.948e-05/0.4459, allocations: 8.438 kB / 0.5166 GB, free: 8.293 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.665e-05/0.4459, allocations: 19.11 kB / 0.5166 GB, free: 8.281 MB / 330.7 MB Notification: Performance of SimCode: time 2.1e-07/0.446, allocations: 0 / 0.5166 GB, free: 8.281 MB / 330.7 MB Notification: Performance of Templates: time 0.002959/0.4489, allocations: 0.8218 MB / 0.5174 GB, free: 7.887 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_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_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches