Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.Sample2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_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.001149/0.001149, allocations: 191.4 kB / 8.536 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.296/1.296, allocations: 225.5 MB / 234.4 MB, free: 3.344 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009318/0.0009319, allocations: 99.66 kB / 286.3 MB, free: 5.25 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09935/0.1003, allocations: 56.9 MB / 343.2 MB, free: 8.566 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09096/0.1913, allocations: 51.47 MB / 394.7 MB, free: 5.039 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2401/0.4315, allocations: 77.15 MB / 471.9 MB, free: 14.28 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001981/0.4317, allocations: 80 kB / 471.9 MB, free: 14.25 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.003377/0.4351, allocations: 1.48 MB / 473.4 MB, free: 13.3 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.143e-05/0.4351, allocations: 12 kB / 473.4 MB, free: 13.29 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.319e-05/0.4352, allocations: 11.81 kB / 473.4 MB, free: 13.28 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001478/0.4353, allocations: 184.6 kB / 473.6 MB, free: 13.07 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.573e-05/0.4354, allocations: 4 kB / 473.6 MB, free: 13.07 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.433e-05/0.4354, allocations: 4 kB / 473.6 MB, free: 13.06 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.453e-05/0.4355, allocations: 35.19 kB / 473.7 MB, free: 13.04 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002422/0.4357, allocations: 169.4 kB / 473.8 MB, free: 12.9 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.4357, allocations: 0 / 473.8 MB, free: 12.9 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.087e-05/0.4358, allocations: 11.09 kB / 473.8 MB, free: 12.89 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.4358, allocations: 0 / 473.8 MB, free: 12.89 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002879/0.4361, allocations: 341.4 kB / 474.2 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001109/0.4362, allocations: 104.8 kB / 474.3 MB, free: 12.44 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.374e-05/0.4363, allocations: 51.7 kB / 474.3 MB, free: 12.39 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.618e-05/0.4363, allocations: 4.172 kB / 474.3 MB, free: 12.39 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.512e-05/0.4363, allocations: 37.22 kB / 474.4 MB, free: 12.34 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.293e-06/0.4363, allocations: 8 kB / 474.4 MB, free: 12.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002177/0.4366, allocations: 86.03 kB / 474.5 MB, free: 12.27 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.495e-05/0.4366, allocations: 110.7 kB / 474.6 MB, free: 12.13 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.046e-05/0.4367, allocations: 128.5 kB / 474.7 MB, free: 12.02 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.806e-06/0.4367, allocations: 25.7 kB / 474.7 MB, free: 11.99 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.186e-05/0.4367, allocations: 83.61 kB / 474.8 MB, free: 11.9 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.132e-05/0.4367, allocations: 11.47 kB / 474.8 MB, free: 11.89 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.717e-06/0.4368, allocations: 0 / 474.8 MB, free: 11.89 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.558e-05/0.4368, allocations: 321.6 kB / 475.1 MB, free: 11.58 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.096e-05/0.4368, allocations: 11.94 kB / 475.1 MB, free: 11.57 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.867e-05/0.4369, allocations: 78.62 kB / 475.2 MB, free: 11.46 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.434e-05/0.4369, allocations: 22.16 kB / 475.2 MB, free: 11.45 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.4369, allocations: 0 / 475.2 MB, free: 11.45 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001202/0.437, allocations: 98.8 kB / 475.3 MB, free: 11.36 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.4371, allocations: 4 kB / 475.3 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.136e-06/0.4371, allocations: 4 kB / 475.3 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.4371, allocations: 4 kB / 475.3 MB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.124e-05/0.4372, allocations: 11.27 kB / 475.4 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.4372, allocations: 3.906 kB / 475.4 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.12e-05/0.4372, allocations: 6.219 kB / 475.4 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.648e-06/0.4372, allocations: 14.25 kB / 475.4 MB, free: 11.32 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,xor1.y,xor1.u2,xor1.u1,xor.y,xor.u2,xor.u1,integerConstant.y,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 5.568e-05/0.4373, allocations: 113.9 kB / 475.5 MB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000122/0.4374, allocations: 73.88 kB / 475.6 MB, free: 11.14 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.135e-05/0.4375, allocations: 18.31 kB / 475.6 MB, free: 11.14 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.4375, allocations: 0 / 475.6 MB, free: 11.14 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.4375, allocations: 7.906 kB / 475.6 MB, free: 11.13 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.4375, allocations: 0 / 475.6 MB, free: 11.13 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001588/0.4377, allocations: 149.8 kB / 475.7 MB, free: 10.97 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.4377, allocations: 8 kB / 475.7 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.469e-05/0.4377, allocations: 3.062 kB / 475.7 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.4377, allocations: 7.234 kB / 475.7 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.007e-06/0.4377, allocations: 0 / 475.7 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.4377, allocations: 0.7812 kB / 475.7 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.4377, allocations: 0 / 475.7 MB, free: 10.96 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) xor.u2 sample2.y hold1.y hold1.u xor1.y xor1.u2 xor.y xor.y = not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 = xor.y xor1.y = not (xor1.u1 and xor1.u2 or not xor1.u1 and not xor1.u2) hold1.u = xor1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) xor.u2 = sample2.y [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:317:7-317:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: xor.u2 sample2.y hold1.y hold1.u xor1.y xor1.u2 xor.y equations: xor.y = not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 = xor.y xor1.y = not (xor1.u1 and xor1.u2 or not xor1.u1 and not xor1.u2) hold1.u = xor1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) xor.u2 = sample2.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.0002722/0.438, allocations: 353.8 kB / 476.1 MB, free: 10.62 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) xor.u2 sample2.y hold1.y hold1.u xor1.y xor1.u2 xor.y xor.y = not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 = xor.y xor1.y = not (xor1.u1 and xor1.u2 or not xor1.u1 and not xor1.u2) hold1.u = xor1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) xor.u2 = sample2.y [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:317:7-317:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: xor.u2 sample2.y hold1.y hold1.u xor1.y xor1.u2 xor.y equations: xor.y = not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 = xor.y xor1.y = not (xor1.u1 and xor1.u2 or not xor1.u1 and not xor1.u2) hold1.u = xor1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) xor.u2 = sample2.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.0001988/0.4382, allocations: 353.4 kB / 476.4 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.479e-05/0.4383, allocations: 99.22 kB / 476.5 MB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.782e-05/0.4383, allocations: 4 kB / 476.5 MB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001034/0.4384, allocations: 3.906 kB / 476.5 MB, free: 10.19 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.903e-05/0.4384, allocations: 8 kB / 476.6 MB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.222e-06/0.4385, allocations: 0 / 476.6 MB, free: 10.18 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.295e-05/0.4385, allocations: 101.5 kB / 476.7 MB, free: 10.09 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000274/0.4388, allocations: 8 kB / 476.7 MB, free: 10.09 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 (sample1.u,hold1.y,sample1.y,hold1.u,sample2.y,integerConstant.y,xor.u1,xor.u2,xor.y,xor1.u1,xor1.u2,xor1.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 8.61e-05/0.4389, allocations: 102.1 kB / 476.8 MB, free: 9.984 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001004/0.439, allocations: 58.19 kB / 476.8 MB, free: 9.938 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.439, allocations: 4.062 kB / 476.8 MB, free: 9.934 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.341e-05/0.439, allocations: 6.875 kB / 476.8 MB, free: 9.93 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002911/0.4393, allocations: 53.5 kB / 476.9 MB, free: 9.895 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002547/0.4396, allocations: 134.4 kB / 477 MB, free: 9.758 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.BooleanSignals.Sample2 could not be translated to FMU