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.00146/0.00146, allocations: 185.1 kB / 16.44 MB, free: 5.672 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.923/1.923, allocations: 205.4 MB / 222.6 MB, free: 9.129 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.001126/0.001126, allocations: 92.2 kB / 270.9 MB, free: 8.379 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.1005/0.1005, allocations: 12.59 MB / 331.8 MB, free: 11.41 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000538/0.000538, allocations: 20 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0857/0.08627, allocations: 50.37 MB / 442.4 MB, free: 16.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.419/0.5053, allocations: 78.44 MB / 0.5086 GB, free: 12.76 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002606/0.5056, allocations: 80.03 kB / 0.5087 GB, free: 12.76 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005723/0.5114, allocations: 1.617 MB / 0.5102 GB, free: 12.17 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.5114, allocations: 0 / 0.5102 GB, free: 12.17 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.471e-05/0.5114, allocations: 3.656 kB / 0.5102 GB, free: 12.17 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.0004415/0.5119, allocations: 396.1 kB / 0.5106 GB, free: 11.78 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.5119, allocations: 7.688 kB / 0.5106 GB, free: 11.78 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.33e-05/0.512, allocations: 11.59 kB / 0.5106 GB, free: 11.77 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002008/0.5122, allocations: 197.4 kB / 0.5108 GB, free: 11.56 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.646e-05/0.5123, allocations: 11.17 kB / 0.5108 GB, free: 11.55 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.949e-05/0.5123, allocations: 11.81 kB / 0.5108 GB, free: 11.55 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004818/0.5128, allocations: 205.5 kB / 0.511 GB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.5128, allocations: 0 / 0.511 GB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.503e-05/0.5128, allocations: 3.25 kB / 0.511 GB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.5129, allocations: 7.656 kB / 0.5111 GB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002004/0.5131, allocations: 63.45 kB / 0.5111 GB, free: 11.41 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004739/0.5136, allocations: 393 kB / 0.5115 GB, free: 11.03 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002413/0.5138, allocations: 125.1 kB / 0.5116 GB, free: 10.94 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.858e-05/0.5139, allocations: 0 / 0.5116 GB, free: 10.94 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.02e-05/0.5139, allocations: 42.38 kB / 0.5117 GB, free: 10.89 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 1.603e-06/0.5139, allocations: 0 / 0.5117 GB, free: 10.89 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0005147/0.5144, allocations: 165.5 kB / 0.5118 GB, free: 10.83 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.35e-05/0.5145, allocations: 109.9 kB / 0.5119 GB, free: 10.71 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001857/0.5147, allocations: 156 kB / 0.5121 GB, free: 10.59 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.712e-05/0.5147, allocations: 33.02 kB / 0.5121 GB, free: 10.56 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.443e-05/0.5148, allocations: 156.3 kB / 0.5122 GB, free: 10.41 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.655e-05/0.5148, allocations: 14.53 kB / 0.5123 GB, free: 10.4 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.691e-06/0.5148, allocations: 0 / 0.5123 GB, free: 10.4 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.471e-05/0.5149, allocations: 325.4 kB / 0.5126 GB, free: 10.08 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.678e-05/0.515, allocations: 19.36 kB / 0.5126 GB, free: 10.07 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001122/0.5151, allocations: 84.78 kB / 0.5127 GB, free: 9.98 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001076/0.5152, allocations: 38.45 kB / 0.5127 GB, free: 9.969 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.5153, allocations: 3.875 kB / 0.5127 GB, free: 9.969 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002841/0.5156, allocations: 128.4 kB / 0.5128 GB, free: 9.902 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.5156, allocations: 7.688 kB / 0.5128 GB, free: 9.902 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.5156, allocations: 7.781 kB / 0.5128 GB, free: 9.902 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.5156, allocations: 3.875 kB / 0.5128 GB, free: 9.902 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001693/0.5158, allocations: 23.3 kB / 0.5129 GB, free: 9.898 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.5158, allocations: 7.844 kB / 0.5129 GB, free: 9.895 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.98e-05/0.5159, allocations: 12.03 kB / 0.5129 GB, free: 9.887 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.675e-05/0.516, allocations: 19.11 kB / 0.5129 GB, free: 9.879 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.0001463/0.5161, allocations: 135.6 kB / 0.513 GB, free: 9.758 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002237/0.5164, allocations: 102.4 kB / 0.5131 GB, free: 9.707 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.503e-05/0.5164, allocations: 19.75 kB / 0.5132 GB, free: 9.699 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.5164, allocations: 7.828 kB / 0.5132 GB, free: 9.695 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.5164, allocations: 0 / 0.5132 GB, free: 9.695 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.5165, allocations: 3.812 kB / 0.5132 GB, free: 9.695 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002754/0.5167, allocations: 191.8 kB / 0.5133 GB, free: 9.484 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.5168, allocations: 4 kB / 0.5134 GB, free: 9.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001908/0.517, allocations: 27.2 kB / 0.5134 GB, free: 9.473 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.67e-06/0.517, allocations: 3.844 kB / 0.5134 GB, free: 9.473 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.517, allocations: 3.312 kB / 0.5134 GB, free: 9.473 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.517, allocations: 0 / 0.5134 GB, free: 9.473 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.517, allocations: 7.828 kB / 0.5134 GB, free: 9.469 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:7906:5-7906: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.0005185/0.5176, allocations: 404.6 kB / 0.5138 GB, free: 9.164 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.561e-05/0.5176, allocations: 104.2 kB / 0.5139 GB, free: 9.055 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.492e-05/0.5177, allocations: 3.984 kB / 0.5139 GB, free: 9.051 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001542/0.5178, allocations: 7.625 kB / 0.5139 GB, free: 9.051 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.595e-05/0.5179, allocations: 3.75 kB / 0.5139 GB, free: 9.051 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.5179, allocations: 3.938 kB / 0.5139 GB, free: 9.051 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.401e-05/0.518, allocations: 113.3 kB / 0.514 GB, free: 8.969 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.518, allocations: 0 / 0.514 GB, free: 8.969 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003765/0.5184, allocations: 18.38 kB / 0.514 GB, free: 8.965 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.0001053/0.5185, allocations: 114.3 kB / 0.5141 GB, free: 8.863 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002783/0.5188, allocations: 84.69 kB / 0.5142 GB, free: 8.844 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.5188, allocations: 0.7812 kB / 0.5142 GB, free: 8.844 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.57e-05/0.5189, allocations: 23.39 kB / 0.5142 GB, free: 8.828 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004345/0.5193, allocations: 60.44 kB / 0.5143 GB, free: 8.816 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005044/0.5199, allocations: 293.7 kB / 0.5146 GB, free: 8.582 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001989/0.5201, allocations: 0.7108 MB / 0.5153 GB, free: 7.871 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.038e-05/0.5201, allocations: 18.73 kB / 0.5153 GB, free: 7.859 MB / 330.7 MB Notification: Performance of SimCode: time 7.41e-07/0.5201, allocations: 0 / 0.5153 GB, free: 7.859 MB / 330.7 MB Notification: Performance of Templates: time 0.003021/0.5232, allocations: 1.153 MB / 0.5164 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