Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_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 trunk/package.mo): time 0.001175/0.001175, allocations: 199.2 kB / 8.541 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.241/1.241, allocations: 225.5 MB / 234.4 MB, free: 3.332 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000911/0.000911, allocations: 90.38 kB / 286.3 MB, free: 5.293 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1192/0.1201, allocations: 56.9 MB / 343.2 MB, free: 8.582 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.227, allocations: 51.47 MB / 394.7 MB, free: 5.051 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3195/0.5466, allocations: 77.31 MB / 472 MB, free: 14.08 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002472/0.5469, allocations: 74.48 kB / 472.1 MB, free: 14.05 MB / 346.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.004444/0.5513, allocations: 1.716 MB / 473.8 MB, free: 12.97 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.5514, allocations: 8 kB / 473.8 MB, free: 12.96 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.088e-05/0.5514, allocations: 11.91 kB / 473.8 MB, free: 12.95 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001918/0.5516, allocations: 210.3 kB / 474 MB, free: 12.72 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.207e-06/0.5516, allocations: 0 / 474 MB, free: 12.72 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.596e-05/0.5517, allocations: 4 kB / 474 MB, free: 12.71 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001302/0.5518, allocations: 49.94 kB / 474.1 MB, free: 12.68 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002852/0.5521, allocations: 191.2 kB / 474.3 MB, free: 12.53 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.5521, allocations: 3.938 kB / 474.3 MB, free: 12.53 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.5521, allocations: 0 / 474.3 MB, free: 12.53 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.5521, allocations: 4 kB / 474.3 MB, free: 12.52 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003544/0.5525, allocations: 358.4 kB / 474.6 MB, free: 12.17 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001338/0.5527, allocations: 116 kB / 474.7 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.267e-05/0.5527, allocations: 66.66 kB / 474.8 MB, free: 12 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.424e-05/0.5528, allocations: 7.906 kB / 474.8 MB, free: 11.99 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.036e-05/0.5528, allocations: 40 kB / 474.9 MB, free: 11.95 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.383e-06/0.5528, allocations: 0 / 474.9 MB, free: 11.95 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002563/0.5531, allocations: 107.9 kB / 475 MB, free: 11.86 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.352e-05/0.5531, allocations: 113.5 kB / 475.1 MB, free: 11.73 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.5532, allocations: 147.9 kB / 475.2 MB, free: 11.61 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.899e-06/0.5533, allocations: 25.7 kB / 475.2 MB, free: 11.57 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.767e-05/0.5533, allocations: 83.84 kB / 475.3 MB, free: 11.49 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.473e-05/0.5533, allocations: 11.53 kB / 475.3 MB, free: 11.48 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.508e-06/0.5534, allocations: 0 / 475.3 MB, free: 11.48 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.427e-05/0.5534, allocations: 321 kB / 475.6 MB, free: 11.16 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.642e-05/0.5534, allocations: 13.88 kB / 475.7 MB, free: 11.16 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.884e-05/0.5535, allocations: 82.97 kB / 475.7 MB, free: 11.05 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.892e-05/0.5535, allocations: 26.02 kB / 475.8 MB, free: 11.04 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.5536, allocations: 3.938 kB / 475.8 MB, free: 11.03 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001282/0.5537, allocations: 95.92 kB / 475.9 MB, free: 10.95 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.5537, allocations: 12 kB / 475.9 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.5537, allocations: 0 / 475.9 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.5537, allocations: 7.328 kB / 475.9 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001122/0.5539, allocations: 23.94 kB / 475.9 MB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/0.5539, allocations: 7.422 kB / 475.9 MB, free: 10.9 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.452e-05/0.554, allocations: 7.906 kB / 475.9 MB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-06/0.554, allocations: 8 kB / 475.9 MB, free: 10.89 MB / 346.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,hold1.u,hold1.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 6.027e-05/0.554, allocations: 115.8 kB / 476 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001475/0.5542, allocations: 97.3 kB / 476.1 MB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.849e-05/0.5542, allocations: 15.12 kB / 476.2 MB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.5543, allocations: 4 kB / 476.2 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.5543, allocations: 0 / 476.2 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.655e-06/0.5543, allocations: 7.406 kB / 476.2 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001818/0.5545, allocations: 173.7 kB / 476.3 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.5545, allocations: 0 / 476.3 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.5546, allocations: 23.28 kB / 476.4 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.5546, allocations: 5.219 kB / 476.4 MB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/0.5546, allocations: 4 kB / 476.4 MB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.5546, allocations: 0 / 476.4 MB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.5546, allocations: 3.281 kB / 476.4 MB, free: 10.47 MB / 346.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) hold1.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.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] hold1.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: hold1.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold1.y equations: hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.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] hold1.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.0003191/0.555, allocations: 393.4 kB / 476.8 MB, free: 10.12 MB / 346.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) hold1.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.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] hold1.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: hold1.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold1.y equations: hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.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] hold1.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.0002728/0.5552, allocations: 380.5 kB / 477.1 MB, free: 9.777 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.561e-05/0.5553, allocations: 99.5 kB / 477.2 MB, free: 9.672 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.019e-05/0.5553, allocations: 6.062 kB / 477.2 MB, free: 9.668 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001238/0.5555, allocations: 11.91 kB / 477.2 MB, free: 9.656 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.932e-05/0.5555, allocations: 3.25 kB / 477.2 MB, free: 9.656 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.995e-06/0.5555, allocations: 7.422 kB / 477.2 MB, free: 9.652 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.245e-05/0.5556, allocations: 117.7 kB / 477.4 MB, free: 9.551 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002865/0.5559, allocations: 12 kB / 477.4 MB, free: 9.539 MB / 346.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 (hold1.y,sample1.u,sample1.y,hold1.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 9.226e-05/0.556, allocations: 103.2 kB / 477.5 MB, free: 9.426 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001275/0.5561, allocations: 68.52 kB / 477.5 MB, free: 9.379 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.5561, allocations: 3.938 kB / 477.5 MB, free: 9.375 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.528e-05/0.5561, allocations: 4 kB / 477.6 MB, free: 9.371 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003455/0.5565, allocations: 63.86 kB / 477.6 MB, free: 9.332 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003085/0.5568, allocations: 157.2 kB / 477.8 MB, free: 9.18 MB / 346.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.Clocked.Examples.Elementary.IntegerSignals.Sample2 could not be translated to FMU