Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer2.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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) 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) Running command: "" <> buildModelFMU(PowerSysPro.Examples.VariableTransformers.VariableTransformer2,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_VariableTransformers_VariableTransformer2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.VariableTransformers.VariableTransformer2,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_VariableTransformers_VariableTransformer2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 181 kB / 15.8 MB, free: 6.336 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 223.2 MB / 239.7 MB, free: 1.789 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009957/0.0009957, allocations: 98.23 kB / 290.9 MB, free: 13.96 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05435/0.05435, allocations: 8.109 MB / 350.1 MB, free: 2.734 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003372/0.0003372, allocations: 9.312 kB / 413.2 MB, free: 89.66 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09731/0.09767, allocations: 52.53 MB / 465.7 MB, free: 41.97 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3709/0.4686, allocations: 80.42 MB / 0.5333 GB, free: 16.77 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003405/0.4691, allocations: 68.78 kB / 0.5334 GB, free: 16.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02469/0.4938, allocations: 8.982 MB / 0.5422 GB, free: 31.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.02e-06/0.4939, allocations: 0 / 0.5422 GB, free: 31.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.466e-05/0.4939, allocations: 15.75 kB / 0.5422 GB, free: 31.69 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.00232/0.4962, allocations: 0.7658 MB / 0.5429 GB, free: 31.2 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.21e-05/0.4963, allocations: 11.56 kB / 0.5429 GB, free: 31.2 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.425e-05/0.4964, allocations: 52.77 kB / 0.543 GB, free: 31.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.469e-05/0.4965, allocations: 31.12 kB / 0.543 GB, free: 31.14 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004023/0.4969, allocations: 290.9 kB / 0.5433 GB, free: 30.92 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.496e-05/0.4969, allocations: 11.69 kB / 0.5433 GB, free: 30.92 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.786e-05/0.497, allocations: 23.22 kB / 0.5433 GB, free: 30.92 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007224/0.4977, allocations: 331.3 kB / 0.5436 GB, free: 30.87 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.4978, allocations: 0 / 0.5436 GB, free: 30.87 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.054e-05/0.4978, allocations: 8.438 kB / 0.5437 GB, free: 30.87 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.166e-06/0.4978, allocations: 3.844 kB / 0.5437 GB, free: 30.87 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005237/0.4984, allocations: 274.2 kB / 0.5439 GB, free: 30.86 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001504/0.4999, allocations: 0.9903 MB / 0.5449 GB, free: 30.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007228/0.5006, allocations: 361.2 kB / 0.5452 GB, free: 30.4 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006805/0.5013, allocations: 0.736 MB / 0.5459 GB, free: 29.92 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005785/0.5019, allocations: 390.4 kB / 0.5463 GB, free: 29.74 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 1.703e-06/0.5019, allocations: 0 / 0.5463 GB, free: 29.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.00265/0.5046, allocations: 1.047 MB / 0.5473 GB, free: 29.44 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.413e-05/0.5046, allocations: 221.3 kB / 0.5476 GB, free: 29.19 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002032/0.5049, allocations: 235.7 kB / 0.5478 GB, free: 29.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.927e-05/0.5049, allocations: 37.55 kB / 0.5478 GB, free: 29.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.776e-05/0.505, allocations: 140.9 kB / 0.5479 GB, free: 28.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.796e-05/0.505, allocations: 111.5 kB / 0.5481 GB, free: 28.89 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.694e-05/0.5051, allocations: 7.75 kB / 0.5481 GB, free: 28.89 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.5052, allocations: 338.9 kB / 0.5484 GB, free: 28.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001831/0.5054, allocations: 122.1 kB / 0.5485 GB, free: 28.57 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002034/0.5056, allocations: 196.7 kB / 0.5487 GB, free: 28.49 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002203/0.5058, allocations: 166.8 kB / 0.5488 GB, free: 28.45 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.5058, allocations: 7.969 kB / 0.5489 GB, free: 28.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001379/0.5072, allocations: 0.6302 MB / 0.5495 GB, free: 28.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.812e-05/0.5073, allocations: 39.39 kB / 0.5495 GB, free: 28.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.5073, allocations: 2.297 kB / 0.5495 GB, free: 28.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001494/0.5088, allocations: 349.7 kB / 0.5498 GB, free: 28.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002212/0.509, allocations: 54.44 kB / 0.5499 GB, free: 28.22 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002055/0.5111, allocations: 2.157 MB / 0.552 GB, free: 26.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004083/0.5115, allocations: 69 kB / 0.5521 GB, free: 26.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.69e-05/0.5116, allocations: 17.33 kB / 0.5521 GB, free: 26.39 MB / 378.7 MB Warning: Assuming fixed start value for the following 4 variables: varTra.tapChanger.furtherTapChangeTimeout:DISCRETE(start = varTra.tapChanger.nextTapChangeTimeout unit = "s" fixed = true protected = true ) "Time lag between the first change and the following tap" type: Real varTra.tapChanger.abnormalUTime:DISCRETE(unit = "s" fixed = true protected = true ) "Time when the signal U went out its normal range" type: Real varTra.tapChanger.tap:DISCRETE(start = varTra.tapChanger.startTap fixed = true ) "Current tap position" type: Integer slackBusRamp.U:VARIABLE(start = slackBusRamp.UNom unit = "V" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$PRE.varTra.tapChanger.tap,varTra.tapChanger.tap,$PRE.varTra.tapChanger.abnormalUTime,varTra.tapChanger.abnormalUTime,varTra.tapChanger.normalU,varTra.tapChanger.decreaseEvent,varTra.tapChanger.increaseEvent,$PRE.varTra.tapChanger.furtherTapChangeTimeout,varTra.tapChanger.furtherTapChangeTimeout) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003724/0.5119, allocations: 222.4 kB / 0.5523 GB, free: 26.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.623e-05/0.512, allocations: 40.41 kB / 0.5523 GB, free: 26.19 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001675/0.5137, allocations: 0.8465 MB / 0.5532 GB, free: 26.09 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.5137, allocations: 3.969 kB / 0.5532 GB, free: 26.09 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.5137, allocations: 1.734 kB / 0.5532 GB, free: 26.09 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.5137, allocations: 0 / 0.5532 GB, free: 26.09 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005512/0.5143, allocations: 456 kB / 0.5536 GB, free: 25.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.5143, allocations: 0 / 0.5536 GB, free: 25.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001956/0.5145, allocations: 36.55 kB / 0.5536 GB, free: 25.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001592/0.5161, allocations: 411.9 kB / 0.554 GB, free: 25.83 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.383e-05/0.5162, allocations: 13.31 kB / 0.554 GB, free: 25.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00254/0.5187, allocations: 2.301 MB / 0.5563 GB, free: 23.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.5187, allocations: 0.5156 kB / 0.5563 GB, free: 23.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002204/0.5209, allocations: 1.062 MB / 0.5573 GB, free: 23.83 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002547/0.5212, allocations: 157 kB / 0.5575 GB, free: 23.72 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.081e-05/0.5213, allocations: 21.44 kB / 0.5575 GB, free: 23.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004156/0.5217, allocations: 62.69 kB / 0.5576 GB, free: 23.71 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001705/0.5219, allocations: 50.73 kB / 0.5576 GB, free: 23.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.327e-05/0.5219, allocations: 17.28 kB / 0.5576 GB, free: 23.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002644/0.5222, allocations: 192.6 kB / 0.5578 GB, free: 23.62 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5222, allocations: 0 / 0.5578 GB, free: 23.62 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005282/0.5228, allocations: 98.27 kB / 0.5579 GB, free: 23.62 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (slackBusRamp.U) * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,varTra.tapChanger.tap,varTra.tapChanger.abnormalUTime,varTra.tapChanger.normalU,varTra.tapChanger.decreaseEvent,varTra.tapChanger.increaseEvent,varTra.tapChanger.furtherTapChangeTimeout) * Number of discrete states: 10 (varTra.tapChanger.tap,varTra.tapChanger.furtherTapChangeTimeout,$whenCondition4,$whenCondition3,varTra.tapChanger.abnormalUTime,$whenCondition2,$whenCondition1,varTra.tapChanger.decreaseEvent,varTra.tapChanger.increaseEvent,varTra.tapChanger.normalU) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {2 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.002988/0.5258, allocations: 1.649 MB / 0.5595 GB, free: 22.94 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001603/0.5274, allocations: 0.6098 MB / 0.5601 GB, free: 22.76 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.5274, allocations: 3.938 kB / 0.5601 GB, free: 22.76 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001138/0.5285, allocations: 0.5642 MB / 0.5607 GB, free: 22.57 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002799/0.5288, allocations: 32 kB / 0.5607 GB, free: 22.57 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005027/0.5339, allocations: 3.153 MB / 0.5638 GB, free: 20.77 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005347/0.5344, allocations: 0.7728 MB / 0.5645 GB, free: 20.06 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001726/0.5346, allocations: 31.89 kB / 0.5646 GB, free: 20.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001572/0.5348, allocations: 92 kB / 0.5646 GB, free: 20.05 MB / 378.7 MB Notification: Performance of SimCode: time 2.294e-06/0.5348, allocations: 1.938 kB / 0.5646 GB, free: 20.05 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03231/0.5671, allocations: 8.445 MB / 0.5729 GB, free: 19.23 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002698/0.5675, allocations: 215.5 kB / 0.5731 GB, free: 19 MB / 378.7 MB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o PowerSysPro_PowerSysPro_Examples_VariableTransformers_VariableTransformer2.o PowerSysPro_PowerSysPro_Examples_VariableTransformers_VariableTransformer2.c In file included from PowerSysPro_PowerSysPro_Examples_VariableTransformers_VariableTransformer2.c:7: In file included from ./PowerSysPro_PowerSysPro_Examples_VariableTransformers_VariableTransformer2_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from PowerSysPro_PowerSysPro_Examples_VariableTransformers_VariableTransformer2.c:7: In file included from ./PowerSysPro_PowerSysPro_Examples_VariableTransformers_VariableTransformer2_model.h:24: ./PowerSysPro_PowerSysPro_Examples_VariableTransformers_VariableTransformer2_functions.h:207:1: error: unknown type name 'PowerSysPro_Types_myComplexPerUnit'; did you mean 'PowerSysPro_Types_myComplexCurrent'? PowerSysPro_Types_myComplexPerUnit omc_PowerSysPro_Types_myComplexPerUnit (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PowerSysPro_Types_myComplexCurrent ./PowerSysPro_PowerSysPro_Examples_VariableTransformers_VariableTransformer2_functions.h:78:17: note: 'PowerSysPro_Types_myComplexCurrent' declared here typedef Complex PowerSysPro_Types_myComplexCurrent; ^ 2 warnings and 1 error generated. make: *** [: PowerSysPro_PowerSysPro_Examples_VariableTransformers_VariableTransformer2.o] Error 1