Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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.BooleanSignals.Sample2,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_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 3.2.3+maint.om/package.mo): time 0.002536/0.002541, allocations: 187 kB / 7.843 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.009/2.009, allocations: 205.2 MB / 213.4 MB, free: 13.95 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.001267/0.001266, allocations: 90.12 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.1413/0.1413, allocations: 12.59 MB / 322 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2566/0.3979, allocations: 56.49 MB / 378.5 MB, free: 75.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09348/0.4914, allocations: 50.38 MB / 428.9 MB, free: 25.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3023/0.7938, allocations: 77.48 MB / 0.4945 GB, free: 11.98 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002613/0.7941, allocations: 80.81 kB / 0.4946 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.005286/0.7994, allocations: 1.437 MB / 0.496 GB, free: 11.57 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.7995, allocations: 8.625 kB / 0.496 GB, free: 11.57 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.597e-05/0.7995, allocations: 10.06 kB / 0.496 GB, free: 11.56 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002277/0.7998, allocations: 191 kB / 0.4962 GB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.567e-05/0.7998, allocations: 7.781 kB / 0.4962 GB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.617e-05/0.7998, allocations: 3.844 kB / 0.4962 GB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001496/0.8, allocations: 34.64 kB / 0.4962 GB, free: 11.35 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003642/0.8004, allocations: 161.7 kB / 0.4964 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.8004, allocations: 0 / 0.4964 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.376e-05/0.8004, allocations: 0 / 0.4964 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.137e-06/0.8004, allocations: 7.75 kB / 0.4964 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004283/0.8009, allocations: 342.5 kB / 0.4967 GB, free: 10.94 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001636/0.8011, allocations: 103.2 kB / 0.4968 GB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/0.8012, allocations: 55.42 kB / 0.4968 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.379e-05/0.8012, allocations: 10.92 kB / 0.4969 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.304e-05/0.8013, allocations: 35.5 kB / 0.4969 GB, free: 10.79 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 1.824e-06/0.8013, allocations: 3.938 kB / 0.4969 GB, free: 10.79 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003106/0.8016, allocations: 90.27 kB / 0.497 GB, free: 10.75 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.684e-05/0.8016, allocations: 112 kB / 0.4971 GB, free: 10.62 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001233/0.8018, allocations: 126.6 kB / 0.4972 GB, free: 10.52 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.309e-05/0.8018, allocations: 25.7 kB / 0.4972 GB, free: 10.49 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.117e-05/0.8018, allocations: 89.61 kB / 0.4973 GB, free: 10.4 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.456e-05/0.8019, allocations: 8.5 kB / 0.4973 GB, free: 10.4 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.471e-06/0.8019, allocations: 0 / 0.4973 GB, free: 10.4 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.056e-05/0.802, allocations: 320.7 kB / 0.4976 GB, free: 10.08 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.154e-05/0.802, allocations: 11.25 kB / 0.4976 GB, free: 10.08 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.05e-05/0.8021, allocations: 77.28 kB / 0.4977 GB, free: 9.992 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.482e-05/0.8021, allocations: 20.78 kB / 0.4977 GB, free: 9.984 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.8021, allocations: 7.781 kB / 0.4977 GB, free: 9.98 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001833/0.8023, allocations: 90.03 kB / 0.4978 GB, free: 9.934 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.8024, allocations: 7.688 kB / 0.4978 GB, free: 9.934 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.8024, allocations: 3.938 kB / 0.4978 GB, free: 9.93 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.936e-05/0.8024, allocations: 3.844 kB / 0.4978 GB, free: 9.93 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.884e-05/0.8024, allocations: 8.531 kB / 0.4979 GB, free: 9.93 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.8025, allocations: 5.219 kB / 0.4979 GB, free: 9.93 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001041/0.8026, allocations: 4.75 kB / 0.4979 GB, free: 9.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.249e-05/0.8026, allocations: 7.688 kB / 0.4979 GB, free: 9.93 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,xor1.y,xor1.u2,xor1.u1,xor.y,xor.u2,xor.u1,integerConstant.y,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 7.525e-05/0.8027, allocations: 114.6 kB / 0.498 GB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001754/0.8029, allocations: 79.53 kB / 0.4981 GB, free: 9.773 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.885e-05/0.8029, allocations: 15.38 kB / 0.4981 GB, free: 9.77 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.803, allocations: 0 / 0.4981 GB, free: 9.77 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.483e-06/0.803, allocations: 3.969 kB / 0.4981 GB, free: 9.77 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.211e-05/0.803, allocations: 0.7031 kB / 0.4981 GB, free: 9.77 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002681/0.8033, allocations: 154.8 kB / 0.4982 GB, free: 9.613 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.8033, allocations: 4.781 kB / 0.4982 GB, free: 9.613 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.24e-05/0.8033, allocations: 0.7031 kB / 0.4982 GB, free: 9.613 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.8033, allocations: 7.781 kB / 0.4982 GB, free: 9.609 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.8034, allocations: 4.656 kB / 0.4982 GB, free: 9.605 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.8034, allocations: 3.906 kB / 0.4982 GB, free: 9.602 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.8034, allocations: 4.5 kB / 0.4982 GB, free: 9.602 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) xor.u2 sample2.y hold.y hold.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) hold.u = xor1.y hold.y = $getPart(hold.u) sample2.y = $getPart(hold.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 hold.y hold.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) hold.u = xor1.y hold.y = $getPart(hold.u) sample2.y = $getPart(hold.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.0004113/0.8038, allocations: 348.5 kB / 0.4986 GB, free: 9.34 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) xor.u2 sample2.y hold.y hold.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) hold.u = xor1.y hold.y = $getPart(hold.u) sample2.y = $getPart(hold.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 hold.y hold.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) hold.u = xor1.y hold.y = $getPart(hold.u) sample2.y = $getPart(hold.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.0003319/0.8041, allocations: 350.6 kB / 0.4989 GB, free: 9.082 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.139e-05/0.8042, allocations: 101.2 kB / 0.499 GB, free: 8.98 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.544e-05/0.8043, allocations: 0.6094 kB / 0.499 GB, free: 8.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000158/0.8044, allocations: 4.5 kB / 0.499 GB, free: 8.98 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.957e-05/0.8045, allocations: 1.406 kB / 0.499 GB, free: 8.98 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.8045, allocations: 3.844 kB / 0.499 GB, free: 8.98 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.652e-05/0.8046, allocations: 107.4 kB / 0.4991 GB, free: 8.902 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003962/0.805, allocations: 8.484 kB / 0.4991 GB, free: 8.902 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 (sample1.u,hold.y,sample1.y,hold.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 0.0001014/0.8051, allocations: 103.5 kB / 0.4992 GB, free: 8.812 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001676/0.8053, allocations: 54.7 kB / 0.4993 GB, free: 8.805 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.8053, allocations: 0.6875 kB / 0.4993 GB, free: 8.805 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.316e-05/0.8053, allocations: 3.844 kB / 0.4993 GB, free: 8.805 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004294/0.8058, allocations: 60.22 kB / 0.4993 GB, free: 8.781 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003857/0.8062, allocations: 131.5 kB / 0.4995 GB, free: 8.688 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.BooleanSignals.Sample2 could not be translated to FMU