Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 111.5 kB / 16.42 MB, free: 6.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00131/0.001311, allocations: 184.2 kB / 17.36 MB, free: 5.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002308/0.002308, allocations: 284.5 kB / 291.5 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9719/0.9719, allocations: 169.3 MB / 0.499 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.369e-05/2.369e-05, allocations: 5.234 kB / 0.682 GB, free: 7.039 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.3905/0.3906, allocations: 23.26 MB / 0.7047 GB, free: 4.633 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.009864/0.4005, allocations: 6.483 MB / 0.7111 GB, free: 60 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003344/0.4039, allocations: 27.22 kB / 0.7111 GB, free: 48 kB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00221/0.4061, allocations: 402.8 kB / 0.7115 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.006907/0.413, allocations: 1.164 MB / 0.7126 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003937/0.417, allocations: 1.08 MB / 0.7137 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003839/0.4208, allocations: 1.925 MB / 0.7156 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001416/0.4223, allocations: 0.7467 MB / 0.7163 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002052/0.4243, allocations: 0.7923 MB / 0.7171 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001081/0.4254, allocations: 0.6385 MB / 0.7177 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.000165/0.4256, allocations: 67.81 kB / 0.7178 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002368/0.428, allocations: 0.9996 MB / 0.7187 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of combineBinaries: time 0.001464/0.4294, allocations: 1.596 MB / 0.7203 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of replaceArrayConstructors: time 0.000732/0.4302, allocations: 1.022 MB / 0.7213 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000256/0.4304, allocations: 162.5 kB / 0.7214 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of FrontEnd: time 0.0002656/0.4307, allocations: 47.27 kB / 0.7215 GB, free: 10.67 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 (124) * Number of variables: 139 (121) Notification: Performance of Bindings: time 0.003996/0.4347, allocations: 4.066 MB / 0.7255 GB, free: 7.848 MB / 0.4981 GB Notification: Performance of FunctionAlias: time 0.0002534/0.435, allocations: 190.8 kB / 0.7256 GB, free: 7.738 MB / 0.4981 GB Notification: Performance of Early Inline: time 0.003203/0.4382, allocations: 2.968 MB / 0.7285 GB, free: 6.125 MB / 0.4981 GB Notification: Performance of simplify1: time 0.0002947/0.4385, allocations: 255.5 kB / 0.7288 GB, free: 6.043 MB / 0.4981 GB Notification: Performance of Alias: time 0.004068/0.4426, allocations: 3.055 MB / 0.7318 GB, free: 4.113 MB / 0.4981 GB Notification: Performance of simplify2: time 0.0002705/0.4429, allocations: 228.1 kB / 0.732 GB, free: 3.977 MB / 0.4981 GB Notification: Performance of Detect States: time 0.0006591/0.4435, allocations: 0.641 MB / 0.7326 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of Events: time 0.0004611/0.444, allocations: 355.4 kB / 0.7329 GB, free: 3.188 MB / 0.4981 GB Notification: Performance of Partitioning: time 0.000779/0.4448, allocations: 0.6905 MB / 0.7336 GB, free: 2.645 MB / 0.4981 GB Notification: Performance of Causalize: time 0.002862/0.4477, allocations: 2.306 MB / 0.7359 GB, free: 1.527 MB / 0.4981 GB Notification: Performance of After Index Reduction Inline: time 0.00256/0.4502, allocations: 2.086 MB / 0.7379 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of Inline: time 0.004842/0.4551, allocations: 4.26 MB / 0.7421 GB, free: 12.83 MB / 0.5137 GB Notification: Performance of Partitioning: time 0.0002159/0.4553, allocations: 141.4 kB / 0.7422 GB, free: 12.74 MB / 0.5137 GB Notification: Performance of Cleanup: time 0.0004899/0.4558, allocations: 459.6 kB / 0.7426 GB, free: 12.38 MB / 0.5137 GB Warning: NBResolveSingularities.balanceInitialization reports an overdetermined initialization! Checking for consistency is not yet supported, following equations had to be removed: [SCAL] (1) ySet.nextEventScaled = $START.ySet.nextEventScaled ($RES_SRT_183) slice: {}; Notification: Performance of Causalize: time 0.01903/0.4748, allocations: 14.06 MB / 0.7564 GB, free: 1.293 MB / 0.5137 GB Notification: Performance of Tearing: time 4.419e-05/0.4749, allocations: 0 / 0.7564 GB, free: 1.293 MB / 0.5137 GB Notification: Performance of Initialization: time 2.255e-06/0.475, allocations: 0 / 0.7564 GB, free: 1.293 MB / 0.5137 GB Notification: Performance of Tearing: time 3.551e-05/0.475, allocations: 7.938 kB / 0.7564 GB, free: 1.285 MB / 0.5137 GB Notification: Performance of Categorize: time 6.009e-05/0.4751, allocations: 7.984 kB / 0.7564 GB, free: 1.277 MB / 0.5137 GB Notification: Performance of Solve: time 0.004497/0.4796, allocations: 4.076 MB / 0.7604 GB, free: 12.73 MB / 0.5294 GB Notification: Performance of Jacobian: time 0.00123/0.4808, allocations: 0.9266 MB / 0.7613 GB, free: 11.77 MB / 0.5294 GB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 4 * Number of ODE event partitions: ............... 1 * Number of algebraic event partitions: ......... 8 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 1 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 1 (1) {valQui.y} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 23 (23) {ySet.a, ySet.b, ySet.last, ySet.nextEvent, ySet.nextEventScaled, mot.uppHys.y, mot.lowHys.y, $SEV_16, $SEV_15, $SEV_14, $SEV_13, $SEV_12, $SEV_11, $SEV_10, $SEV_9, $SEV_8, $SEV_3, $SEV_2, $SEV_1, $SEV_0, $TEV_2, $TEV_1, $TEV_0} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 70 (scalar:68, array:2, record:0) * Number of multi strong components: ............ 1 (algorithm:1, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 4 (generic: 4, entwined:0) * Number of algebraic-loop strong components: ... 3 (linear: 0, nonlinear:3) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 151 (scalar:149, array:2, record:0) * Number of multi strong components: ............ 1 (algorithm:1, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 4 (generic: 4, entwined:0) * Number of algebraic-loop strong components: ... 3 (linear: 0, nonlinear:3) Notification: [Initialization (lambda=0)] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 151 (scalar:149, array:2, record:0) * Number of multi strong components: ............ 1 (algorithm:1, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 4 (generic: 4, entwined:0) * Number of algebraic-loop strong components: ... 3 (linear: 0, nonlinear:3) Notification: Performance of backend: time 0.0001302/0.481, allocations: 80.42 kB / 0.7613 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of SimCode: time 0.006527/0.4875, allocations: 4.649 MB / 0.7659 GB, free: 6.984 MB / 0.5294 GB Notification: Performance of Templates: time 0.02283/0.5103, allocations: 13.41 MB / 0.779 GB, free: 9.562 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=9 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.o BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.c clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=9 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.o BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2094:31: error: use of undeclared identifier '_OMC_LIT19' tmpMeta2 = stringAppend(_OMC_LIT19,_modelName); ^ BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2095:40: error: use of undeclared identifier '_OMC_LIT20' tmpMeta3 = stringAppend(tmpMeta2,_OMC_LIT20); ^ BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2097:40: error: use of undeclared identifier '_OMC_LIT21' tmpMeta5 = stringAppend(tmpMeta4,_OMC_LIT21); ^ BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2114:35: error: use of undeclared identifier '_OMC_LIT22' tmpMeta7 = stringAppend(_OMC_LIT22,_mediumName); ^ BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2115:44: error: use of undeclared identifier '_OMC_LIT23' tmpMeta8 = stringAppend(tmpMeta7,_OMC_LIT23); ^ BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2117:45: error: use of undeclared identifier '_OMC_LIT24' tmpMeta10 = stringAppend(tmpMeta9,_OMC_LIT24); ^ BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2120:46: error: use of undeclared identifier '_OMC_LIT25' tmpMeta13 = stringAppend(tmpMeta12,_OMC_LIT25); ^ BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2123:46: error: use of undeclared identifier '_OMC_LIT26' tmpMeta16 = stringAppend(tmpMeta15,_OMC_LIT26); ^ BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2135:14: error: use of undeclared identifier '_OMC_LIT2' _X_str = _OMC_LIT2; ^ BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2143:41: error: use of undeclared identifier '_OMC_LIT27' tmpMeta21 = stringAppend(_X_str,_OMC_LIT27); ^ BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2146:44: error: use of undeclared identifier '_OMC_LIT28' tmpMeta24 = stringAppend(tmpMeta23,_OMC_LIT28); ^ BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2149:44: error: use of undeclared identifier '_OMC_LIT29' tmpMeta27 = stringAppend(tmpMeta26,_OMC_LIT29); ^ BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2151:44: error: use of undeclared identifier '_OMC_LIT30' tmpMeta29 = stringAppend(tmpMeta28,_OMC_LIT30); ^ BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2156:30: error: use of undeclared identifier '_OMC_LIT31' tmpMeta33 = stringAppend(_OMC_LIT31,_mediumName); ^ BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2157:40: error: use of undeclared identifier '_OMC_LIT23' tmpMeta34 = stringAppend(tmpMeta33,_OMC_LIT23); ^ BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2159:40: error: use of undeclared identifier '_OMC_LIT30' tmpMeta36 = stringAppend(tmpMeta35,_OMC_LIT30); ^ BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2160:40: error: use of undeclared identifier '_OMC_LIT32' tmpMeta37 = stringAppend(tmpMeta36,_OMC_LIT32); ^ BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2163:40: error: use of undeclared identifier '_OMC_LIT33' tmpMeta40 = stringAppend(tmpMeta39,_OMC_LIT33); ^ BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2267:3: warning: implicit declaration of function 'ModelicaError' is invalid in C99 [-Wimplicit-function-declaration] ModelicaError(MMC_STRINGDATA(_string)); ^ 1 warning and 18 errors generated. make: *** [: BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.o] Error 1