Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1.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: translateModel(PowerSysPro.Examples.VariableTransformers.VariableTransformer1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1") translateModel(PowerSysPro.Examples.VariableTransformers.VariableTransformer1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 179.7 kB / 15.8 MB, free: 6.34 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.383/1.383, allocations: 223.2 MB / 239.7 MB, free: 1.793 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.0009004/0.0009004, allocations: 94.59 kB / 290.9 MB, free: 13.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05406/0.05406, allocations: 8.104 MB / 350.1 MB, free: 2.707 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003217/0.0003217, allocations: 13.06 kB / 413.1 MB, free: 89.74 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09996/0.1003, allocations: 52.53 MB / 465.6 MB, free: 42.08 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3503/0.4506, allocations: 81.64 MB / 0.5344 GB, free: 16.65 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002239/0.4509, allocations: 67.55 kB / 0.5345 GB, free: 16.65 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02981/0.4807, allocations: 12.21 MB / 0.5464 GB, free: 31.31 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.444e-06/0.4808, allocations: 0 / 0.5464 GB, free: 31.31 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.713e-05/0.4808, allocations: 7.562 kB / 0.5464 GB, free: 31.31 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.00247/0.4833, allocations: 1.064 MB / 0.5475 GB, free: 30.64 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.4833, allocations: 11.81 kB / 0.5475 GB, free: 30.63 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001122/0.4835, allocations: 62.47 kB / 0.5475 GB, free: 30.6 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006447/0.4841, allocations: 481 kB / 0.548 GB, free: 30.34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.636e-05/0.4842, allocations: 23.67 kB / 0.548 GB, free: 30.34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.816e-05/0.4842, allocations: 15.31 kB / 0.548 GB, free: 30.34 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007326/0.485, allocations: 461.8 kB / 0.5485 GB, free: 30.27 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.485, allocations: 0 / 0.5485 GB, free: 30.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.063e-05/0.485, allocations: 14.53 kB / 0.5485 GB, free: 30.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.485, allocations: 8.562 kB / 0.5485 GB, free: 30.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005535/0.4856, allocations: 371.8 kB / 0.5488 GB, free: 30.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001615/0.4872, allocations: 1.206 MB / 0.55 GB, free: 29.85 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008431/0.4881, allocations: 477.3 kB / 0.5505 GB, free: 29.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001015/0.4891, allocations: 0.8442 MB / 0.5513 GB, free: 29.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005739/0.4897, allocations: 0.5305 MB / 0.5518 GB, free: 29.12 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 1.884e-06/0.4897, allocations: 0 / 0.5518 GB, free: 29.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=41): time 0.003248/0.493, allocations: 1.606 MB / 0.5534 GB, free: 28.67 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.3e-05/0.4931, allocations: 248 kB / 0.5536 GB, free: 28.39 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007447/0.4938, allocations: 0.6051 MB / 0.5542 GB, free: 28.28 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.677e-05/0.4939, allocations: 35.92 kB / 0.5543 GB, free: 28.25 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001615/0.494, allocations: 270.3 kB / 0.5545 GB, free: 28.14 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.536e-05/0.4941, allocations: 115.9 kB / 0.5546 GB, free: 28.08 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.533e-05/0.4942, allocations: 7.75 kB / 0.5546 GB, free: 28.08 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.4943, allocations: 384.5 kB / 0.555 GB, free: 27.76 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000301/0.4946, allocations: 217.2 kB / 0.5552 GB, free: 27.76 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003683/0.495, allocations: 293.8 kB / 0.5555 GB, free: 27.69 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000387/0.4954, allocations: 303.8 kB / 0.5558 GB, free: 27.6 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.4954, allocations: 1.062 kB / 0.5558 GB, free: 27.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001983/0.4974, allocations: 0.9757 MB / 0.5567 GB, free: 27.44 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.846e-05/0.4975, allocations: 75.28 kB / 0.5568 GB, free: 27.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.4975, allocations: 1.625 kB / 0.5568 GB, free: 27.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001554/0.499, allocations: 357.1 kB / 0.5571 GB, free: 27.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001977/0.4993, allocations: 48.81 kB / 0.5572 GB, free: 27.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001947/0.5012, allocations: 2.157 MB / 0.5593 GB, free: 25.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005127/0.5017, allocations: 87.23 kB / 0.5594 GB, free: 25.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.254e-05/0.5018, allocations: 26.48 kB / 0.5594 GB, free: 25.46 MB / 378.7 MB Warning: Assuming fixed start value for the following 3 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,voltage.a,voltage.b,voltage.last,$PRE.voltage.nextEvent,voltage.nextEvent,voltage.nextEventScaled,$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 (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * 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.0005197/0.5023, allocations: 325.9 kB / 0.5597 GB, free: 25.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.241e-05/0.5024, allocations: 69.5 kB / 0.5598 GB, free: 25.23 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002349/0.5048, allocations: 1.259 MB / 0.561 GB, free: 25.08 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-06/0.5048, allocations: 7.328 kB / 0.561 GB, free: 25.07 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.5048, allocations: 0 / 0.561 GB, free: 25.07 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.94e-06/0.5048, allocations: 2.438 kB / 0.561 GB, free: 25.07 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006147/0.5055, allocations: 0.5917 MB / 0.5616 GB, free: 24.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.5055, allocations: 0 / 0.5616 GB, free: 24.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001531/0.5056, allocations: 32.14 kB / 0.5616 GB, free: 24.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001519/0.5072, allocations: 405.3 kB / 0.562 GB, free: 24.81 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.808e-05/0.5072, allocations: 23.89 kB / 0.562 GB, free: 24.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002367/0.5096, allocations: 2.279 MB / 0.5643 GB, free: 22.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.5096, allocations: 0 / 0.5643 GB, free: 22.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002359/0.512, allocations: 1.26 MB / 0.5655 GB, free: 22.78 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003823/0.5124, allocations: 229.9 kB / 0.5657 GB, free: 22.64 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001058/0.5125, allocations: 20.5 kB / 0.5657 GB, free: 22.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004277/0.5129, allocations: 65.02 kB / 0.5658 GB, free: 22.64 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000126/0.5131, allocations: 50.92 kB / 0.5658 GB, free: 22.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.844e-05/0.5131, allocations: 30.83 kB / 0.5659 GB, free: 22.63 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007279/0.5139, allocations: 0.4907 MB / 0.5664 GB, free: 22.54 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5139, allocations: 4 kB / 0.5664 GB, free: 22.54 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005863/0.5145, allocations: 135.3 kB / 0.5665 GB, free: 22.54 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,voltage.a,voltage.b,voltage.last,voltage.nextEvent,voltage.nextEventScaled,varTra.tapChanger.tap,varTra.tapChanger.abnormalUTime,varTra.tapChanger.normalU,varTra.tapChanger.decreaseEvent,varTra.tapChanger.increaseEvent,varTra.tapChanger.furtherTapChangeTimeout) * Number of discrete states: 16 (varTra.tapChanger.tap,varTra.tapChanger.furtherTapChangeTimeout,$whenCondition4,$whenCondition3,varTra.tapChanger.abnormalUTime,$whenCondition2,$whenCondition1,varTra.tapChanger.decreaseEvent,varTra.tapChanger.increaseEvent,varTra.tapChanger.normalU,voltage.nextEvent,voltage.last,voltage.nextEventScaled,voltage.b,voltage.a,$whenCondition5) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 1 * 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.000345/0.5148, allocations: 180.8 kB / 0.5667 GB, free: 22.42 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001464/0.5163, allocations: 0.8402 MB / 0.5675 GB, free: 22.18 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.5163, allocations: 0 / 0.5675 GB, free: 22.18 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00102/0.5174, allocations: 0.7233 MB / 0.5682 GB, free: 21.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000314/0.5177, allocations: 43.42 kB / 0.5682 GB, free: 21.93 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001887/0.5196, allocations: 1.202 MB / 0.5694 GB, free: 21.42 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005297/0.5201, allocations: 0.8869 MB / 0.5703 GB, free: 20.72 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002049/0.5203, allocations: 58.03 kB / 0.5703 GB, free: 20.71 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.265e-05/0.5204, allocations: 37.03 kB / 0.5704 GB, free: 20.7 MB / 378.7 MB Notification: Performance of SimCode: time 1.002e-06/0.5204, allocations: 0 / 0.5704 GB, free: 20.7 MB / 378.7 MB Notification: Performance of Templates: time 0.0149/0.5353, allocations: 7.286 MB / 0.5775 GB, free: 18.62 MB / 378.7 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1.makefile make -j1 -f PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1.makefile clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=PowerSysPro_PowerSysPro_Examples_VariableTransformers_VariableTransformer1 -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=2 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1.o PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1.c In file included from PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1.c:7: In file included from ./PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1_model.h:24: ./PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1_functions.h:214: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.VariableTransformer1_functions.h:78:17: note: 'PowerSysPro_Types_myComplexCurrent' declared here typedef Complex PowerSysPro_Types_myComplexCurrent; ^ 1 error generated. make: *** [: PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1.o] Error 1