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: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002895/0.002894, allocations: 190.7 kB / 7.848 MB, free: 2.465 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.907/1.907, allocations: 205.2 MB / 213.5 MB, free: 13.87 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.001398/0.001398, allocations: 95.8 kB / 261.5 MB, free: 13.64 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.09938/0.09938, allocations: 12.59 MB / 322 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2693/0.3687, allocations: 56.5 MB / 378.5 MB, free: 75.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09796/0.4668, allocations: 50.38 MB / 428.9 MB, free: 25.22 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3563/0.8231, allocations: 77.62 MB / 0.4946 GB, free: 11.98 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003794/0.8236, allocations: 79.14 kB / 0.4947 GB, free: 11.98 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.00977/0.8334, allocations: 1.666 MB / 0.4963 GB, free: 11.52 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.309e-05/0.8335, allocations: 7.562 kB / 0.4963 GB, free: 11.52 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.172e-05/0.8336, allocations: 16.38 kB / 0.4963 GB, free: 11.52 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003389/0.8339, allocations: 202 kB / 0.4965 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.62e-05/0.834, allocations: 0 / 0.4965 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.871e-05/0.834, allocations: 3.844 kB / 0.4965 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002643/0.8343, allocations: 53.56 kB / 0.4966 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005905/0.8349, allocations: 182.1 kB / 0.4968 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.8349, allocations: 4 kB / 0.4968 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.951e-05/0.835, allocations: 0 / 0.4968 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.835, allocations: 3.812 kB / 0.4968 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006787/0.8357, allocations: 366.9 kB / 0.4971 GB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002792/0.836, allocations: 112.9 kB / 0.4972 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001865/0.8362, allocations: 71.8 kB / 0.4973 GB, free: 10.78 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.085e-05/0.8363, allocations: 7.328 kB / 0.4973 GB, free: 10.78 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.944e-05/0.8363, allocations: 38.12 kB / 0.4973 GB, free: 10.73 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 3.807e-06/0.8363, allocations: 0 / 0.4973 GB, free: 10.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0005217/0.8369, allocations: 119.9 kB / 0.4975 GB, free: 10.68 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.714e-05/0.837, allocations: 104.4 kB / 0.4976 GB, free: 10.56 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002451/0.8372, allocations: 147.3 kB / 0.4977 GB, free: 10.46 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.103e-05/0.8373, allocations: 25.7 kB / 0.4977 GB, free: 10.43 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.922e-05/0.8373, allocations: 83.02 kB / 0.4978 GB, free: 10.35 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.723e-05/0.8374, allocations: 16.92 kB / 0.4978 GB, free: 10.34 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.095e-06/0.8374, allocations: 0 / 0.4978 GB, free: 10.34 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.051e-05/0.8375, allocations: 321 kB / 0.4981 GB, free: 10.03 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.488e-05/0.8376, allocations: 13.59 kB / 0.4981 GB, free: 10.03 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000103/0.8377, allocations: 77.67 kB / 0.4982 GB, free: 9.938 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.353e-05/0.8378, allocations: 24.39 kB / 0.4982 GB, free: 9.934 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.01e-06/0.8378, allocations: 4 kB / 0.4982 GB, free: 9.93 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003406/0.8382, allocations: 101.2 kB / 0.4983 GB, free: 9.883 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.383e-05/0.8382, allocations: 7.875 kB / 0.4983 GB, free: 9.879 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.8383, allocations: 5.375 kB / 0.4983 GB, free: 9.879 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.281e-05/0.8383, allocations: 3.875 kB / 0.4983 GB, free: 9.879 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002843/0.8386, allocations: 30.08 kB / 0.4984 GB, free: 9.871 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.107e-05/0.8387, allocations: 9.969 kB / 0.4984 GB, free: 9.867 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001936/0.8389, allocations: 3.812 kB / 0.4984 GB, free: 9.867 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.09e-05/0.8389, allocations: 7.688 kB / 0.4984 GB, free: 9.867 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 () * 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.0001462/0.8391, allocations: 113.9 kB / 0.4985 GB, free: 9.758 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004118/0.8395, allocations: 96.3 kB / 0.4986 GB, free: 9.719 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001048/0.8397, allocations: 16.88 kB / 0.4986 GB, free: 9.715 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.726e-06/0.8397, allocations: 5.125 kB / 0.4986 GB, free: 9.711 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.026e-05/0.8397, allocations: 7.75 kB / 0.4986 GB, free: 9.707 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.263e-06/0.8397, allocations: 0 / 0.4986 GB, free: 9.707 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004683/0.8402, allocations: 161.6 kB / 0.4988 GB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-06/0.8402, allocations: 0 / 0.4988 GB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003516/0.8406, allocations: 31.27 kB / 0.4988 GB, free: 9.543 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.153e-05/0.8406, allocations: 3.906 kB / 0.4988 GB, free: 9.539 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.314e-05/0.8407, allocations: 1.734 kB / 0.4988 GB, free: 9.539 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.371e-06/0.8407, allocations: 3.906 kB / 0.4988 GB, free: 9.539 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.8407, allocations: 7.938 kB / 0.4988 GB, free: 9.531 MB / 330.7 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:307:7-307:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed (Sorry - Support for Discrete Equation Systems is not yet implemented) 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/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:317:7-317: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/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:321:7-321:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7187:5-7187: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 detectJacobianSparsePattern (simulation): time 0.0007806/0.8415, allocations: 390.2 kB / 0.4992 GB, free: 9.27 MB / 330.7 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:307:7-307:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed (Sorry - Support for Discrete Equation Systems is not yet implemented) 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/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:317:7-317: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/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:321:7-321:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7187:5-7187:89:writable] Error: Internal error Transformation module sort components failed Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006011/0.8421, allocations: 394.4 kB / 0.4996 GB, free: 9.004 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001453/0.8423, allocations: 101 kB / 0.4997 GB, free: 8.902 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.397e-05/0.8424, allocations: 4.562 kB / 0.4997 GB, free: 8.898 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003434/0.8427, allocations: 5.219 kB / 0.4997 GB, free: 8.898 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.216e-05/0.8428, allocations: 8.938 kB / 0.4997 GB, free: 8.895 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.048e-05/0.8428, allocations: 3.906 kB / 0.4997 GB, free: 8.895 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001583/0.843, allocations: 111.5 kB / 0.4998 GB, free: 8.82 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007403/0.8438, allocations: 11.44 kB / 0.4998 GB, free: 8.82 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 () * 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.0001735/0.8439, allocations: 104.8 kB / 0.4999 GB, free: 8.723 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002841/0.8442, allocations: 63.59 kB / 0.5 GB, free: 8.719 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.63e-06/0.8443, allocations: 4.188 kB / 0.5 GB, free: 8.715 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.443e-05/0.8443, allocations: 12.48 kB / 0.5 GB, free: 8.711 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007696/0.8451, allocations: 56.75 kB / 0.5 GB, free: 8.707 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007446/0.8459, allocations: 166 kB / 0.5002 GB, free: 8.598 MB / 330.7 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:12828:3-12828:85:writable] Error: Internal error SimCodeUtil.createFMIModelStructure failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:596:5-596:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] Error: Internal error SimCode: The model Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2 could not be translated to FMU