Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi",fileNamePrefix="Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi",fileNamePrefix="Buildings_10_Buildings.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.0009322/0.0009323, allocations: 111.7 kB / 16.42 MB, free: 6.035 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.0008638/0.0008638, allocations: 178.7 kB / 17.35 MB, free: 5.617 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.144/1.144, allocations: 222.9 MB / 241.1 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.085/2.085, allocations: 437 MB / 0.7111 GB, free: 4.453 MB / 0.5762 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.994e-05/1.995e-05, allocations: 6.438 kB / 1.019 GB, free: 9.508 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.0195/0.01953, allocations: 23.29 MB / 1.042 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.007777/0.02734, allocations: 6.485 MB / 1.048 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000576/0.02794, allocations: 27.81 kB / 1.048 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0008174/0.02876, allocations: 397.4 kB / 1.049 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.002045/0.03082, allocations: 1.168 MB / 1.05 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.002099/0.03296, allocations: 1.085 MB / 1.051 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001798/0.03477, allocations: 1.924 MB / 1.053 GB, free: 7.035 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007715/0.03555, allocations: 0.7457 MB / 1.053 GB, free: 6.277 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009387/0.0365, allocations: 0.7978 MB / 1.054 GB, free: 5.477 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006448/0.03716, allocations: 0.6419 MB / 1.055 GB, free: 4.832 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001092/0.03727, allocations: 68 kB / 1.055 GB, free: 4.766 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001258/0.03854, allocations: 0.9944 MB / 1.056 GB, free: 3.77 MB / 0.8262 GB Notification: Performance of combineBinaries: time 0.0009353/0.03948, allocations: 1.595 MB / 1.057 GB, free: 2.156 MB / 0.8262 GB Notification: Performance of replaceArrayConstructors: time 0.0004798/0.03997, allocations: 1.009 MB / 1.058 GB, free: 1.133 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001381/0.04012, allocations: 159.4 kB / 1.059 GB, free: 0.9766 MB / 0.8262 GB Notification: Performance of FrontEnd: time 0.0001245/0.04025, allocations: 47.8 kB / 1.059 GB, free: 0.9297 MB / 0.8262 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.002984/0.04324, allocations: 4.062 MB / 1.063 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of FunctionAlias: time 0.0001759/0.04343, allocations: 196.4 kB / 1.063 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of Early Inline: time 0.002273/0.04571, allocations: 2.967 MB / 1.066 GB, free: 9.523 MB / 0.8419 GB Notification: Performance of simplify1: time 0.0001979/0.04592, allocations: 259.7 kB / 1.066 GB, free: 9.27 MB / 0.8419 GB Notification: Performance of Alias: time 0.002846/0.04877, allocations: 3.042 MB / 1.069 GB, free: 5.926 MB / 0.8419 GB Notification: Performance of simplify2: time 0.000182/0.04896, allocations: 239.7 kB / 1.069 GB, free: 5.691 MB / 0.8419 GB Notification: Performance of Detect States: time 0.0005103/0.04948, allocations: 0.6455 MB / 1.07 GB, free: 5.023 MB / 0.8419 GB Notification: Performance of Events: time 0.0003538/0.04985, allocations: 347.3 kB / 1.07 GB, free: 4.684 MB / 0.8419 GB Notification: Performance of Partitioning: time 0.0005865/0.05044, allocations: 0.6908 MB / 1.071 GB, free: 3.895 MB / 0.8419 GB Notification: Performance of Causalize: time 0.002293/0.05274, allocations: 2.304 MB / 1.073 GB, free: 1.492 MB / 0.8419 GB Notification: Performance of After Index Reduction Inline: time 0.4223/0.475, allocations: 2.089 MB / 1.075 GB, free: 28.65 MB / 0.8419 GB Notification: Performance of Inline: time 0.00404/0.4791, allocations: 4.254 MB / 1.079 GB, free: 28.5 MB / 0.8419 GB Notification: Performance of Partitioning: time 0.0001568/0.4793, allocations: 143.8 kB / 1.079 GB, free: 28.46 MB / 0.8419 GB Notification: Performance of Cleanup: time 0.0004004/0.4797, allocations: 447.6 kB / 1.08 GB, free: 28.45 MB / 0.8419 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.01587/0.4956, allocations: 14.06 MB / 1.093 GB, free: 25.47 MB / 0.8419 GB Notification: Performance of Tearing: time 3.29e-05/0.4956, allocations: 4.75 kB / 1.093 GB, free: 25.46 MB / 0.8419 GB Notification: Performance of Initialization: time 1.523e-06/0.4956, allocations: 0 / 1.093 GB, free: 25.46 MB / 0.8419 GB Notification: Performance of Tearing: time 1.455e-05/0.4956, allocations: 9.828 kB / 1.093 GB, free: 25.46 MB / 0.8419 GB Notification: Performance of Categorize: time 2.649e-05/0.4957, allocations: 9.25 kB / 1.093 GB, free: 25.46 MB / 0.8419 GB Notification: Performance of Solve: time 0.002815/0.4985, allocations: 4.064 MB / 1.097 GB, free: 22.23 MB / 0.8419 GB Notification: Performance of Jacobian: time 0.001306/0.4998, allocations: 0.9418 MB / 1.098 GB, free: 21.92 MB / 0.8419 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.0001382/0.5, allocations: 84.86 kB / 1.098 GB, free: 21.9 MB / 0.8419 GB Notification: Performance of SimCode: time 0.006112/0.5061, allocations: 4.647 MB / 1.103 GB, free: 20.15 MB / 0.8419 GB Notification: Performance of Templates: time 0.02246/0.5286, allocations: 13.4 MB / 1.116 GB, free: 19.25 MB / 0.8419 GB make -j1 -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile make -j1 -f Buildings_10_Buildings.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=Buildings_10_Buildings_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 Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.o Buildings_10_Buildings.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=Buildings_10_Buildings_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 Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.o Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2094:31: error: use of undeclared identifier '_OMC_LIT19' tmpMeta2 = stringAppend(_OMC_LIT19,_modelName); ^ Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2095:40: error: use of undeclared identifier '_OMC_LIT20' tmpMeta3 = stringAppend(tmpMeta2,_OMC_LIT20); ^ Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2097:40: error: use of undeclared identifier '_OMC_LIT21' tmpMeta5 = stringAppend(tmpMeta4,_OMC_LIT21); ^ Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2114:35: error: use of undeclared identifier '_OMC_LIT22' tmpMeta7 = stringAppend(_OMC_LIT22,_mediumName); ^ Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2115:44: error: use of undeclared identifier '_OMC_LIT23' tmpMeta8 = stringAppend(tmpMeta7,_OMC_LIT23); ^ Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2117:45: error: use of undeclared identifier '_OMC_LIT24' tmpMeta10 = stringAppend(tmpMeta9,_OMC_LIT24); ^ Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2120:46: error: use of undeclared identifier '_OMC_LIT25' tmpMeta13 = stringAppend(tmpMeta12,_OMC_LIT25); ^ Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2123:46: error: use of undeclared identifier '_OMC_LIT26' tmpMeta16 = stringAppend(tmpMeta15,_OMC_LIT26); ^ Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2135:14: error: use of undeclared identifier '_OMC_LIT2' _X_str = _OMC_LIT2; ^ Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2143:41: error: use of undeclared identifier '_OMC_LIT27' tmpMeta21 = stringAppend(_X_str,_OMC_LIT27); ^ Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2146:44: error: use of undeclared identifier '_OMC_LIT28' tmpMeta24 = stringAppend(tmpMeta23,_OMC_LIT28); ^ Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2149:44: error: use of undeclared identifier '_OMC_LIT29' tmpMeta27 = stringAppend(tmpMeta26,_OMC_LIT29); ^ Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2151:44: error: use of undeclared identifier '_OMC_LIT30' tmpMeta29 = stringAppend(tmpMeta28,_OMC_LIT30); ^ Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2156:30: error: use of undeclared identifier '_OMC_LIT31' tmpMeta33 = stringAppend(_OMC_LIT31,_mediumName); ^ Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2157:40: error: use of undeclared identifier '_OMC_LIT23' tmpMeta34 = stringAppend(tmpMeta33,_OMC_LIT23); ^ Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2159:40: error: use of undeclared identifier '_OMC_LIT30' tmpMeta36 = stringAppend(tmpMeta35,_OMC_LIT30); ^ Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2160:40: error: use of undeclared identifier '_OMC_LIT32' tmpMeta37 = stringAppend(tmpMeta36,_OMC_LIT32); ^ Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.c:2163:40: error: use of undeclared identifier '_OMC_LIT33' tmpMeta40 = stringAppend(tmpMeta39,_OMC_LIT33); ^ Buildings_10_Buildings.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: *** [: Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_functions.o] Error 1