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: translateModel(PowerSysPro.Examples.VariableTransformers.VariableTransformer2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer2") translateModel(PowerSysPro.Examples.VariableTransformers.VariableTransformer2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008725/0.0008725, allocations: 171.8 kB / 16.8 MB, free: 5.004 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.545/1.545, allocations: 223.3 MB / 240.8 MB, free: 11.7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007435/0.0007435, allocations: 95.94 kB / 292 MB, free: 10.78 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04162/0.04162, allocations: 8.101 MB / 351.2 MB, free: 15.55 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003505/0.0003505, allocations: 8 kB / 414.4 MB, free: 57.26 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08796/0.08832, allocations: 52.52 MB / 466.9 MB, free: 4.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3216/0.41, allocations: 80.46 MB / 0.5345 GB, free: 5.043 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002142/0.4103, allocations: 70.03 kB / 0.5346 GB, free: 5.008 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0225/0.4328, allocations: 8.955 MB / 0.5433 GB, free: 13.68 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.136e-06/0.4328, allocations: 3.938 kB / 0.5434 GB, free: 13.68 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.11e-05/0.4329, allocations: 11.94 kB / 0.5434 GB, free: 13.67 MB / 362.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.002035/0.4349, allocations: 0.7645 MB / 0.5441 GB, free: 12.89 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.4349, allocations: 12.03 kB / 0.5441 GB, free: 12.88 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.054e-05/0.435, allocations: 32.56 kB / 0.5442 GB, free: 12.85 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003806/0.4354, allocations: 305.9 kB / 0.5444 GB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.419e-05/0.4355, allocations: 7.5 kB / 0.5445 GB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.668e-05/0.4356, allocations: 24.81 kB / 0.5445 GB, free: 12.53 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005695/0.4361, allocations: 335 kB / 0.5448 GB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-06/0.4362, allocations: 0 / 0.5448 GB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.037e-05/0.4362, allocations: 7.625 kB / 0.5448 GB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.4362, allocations: 4 kB / 0.5448 GB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004458/0.4367, allocations: 271.3 kB / 0.5451 GB, free: 12.12 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001436/0.4381, allocations: 0.9747 MB / 0.546 GB, free: 11.31 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007321/0.4388, allocations: 373.6 kB / 0.5464 GB, free: 11.08 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003061/0.4392, allocations: 201.5 kB / 0.5466 GB, free: 10.96 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007446/0.4399, allocations: 0.7349 MB / 0.5473 GB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005323/0.4405, allocations: 382.6 kB / 0.5476 GB, free: 9.957 MB / 362.7 MB Notification: Performance of pre-optimization done (n=34): time 1.784e-06/0.4405, allocations: 0 / 0.5476 GB, free: 9.957 MB / 362.7 MB Notification: Performance of matching and sorting (n=34): time 0.002617/0.4431, allocations: 1.06 MB / 0.5487 GB, free: 8.992 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/0.4432, allocations: 225.8 kB / 0.5489 GB, free: 8.723 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002536/0.4435, allocations: 262.5 kB / 0.5491 GB, free: 8.457 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.273e-05/0.4435, allocations: 33.7 kB / 0.5492 GB, free: 8.418 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.74e-05/0.4436, allocations: 140.4 kB / 0.5493 GB, free: 8.277 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.02e-05/0.4437, allocations: 110.5 kB / 0.5494 GB, free: 8.168 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.641e-05/0.4437, allocations: 12 kB / 0.5494 GB, free: 8.156 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.4438, allocations: 339.5 kB / 0.5498 GB, free: 7.816 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000202/0.4441, allocations: 116 kB / 0.5499 GB, free: 7.703 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000248/0.4443, allocations: 196.5 kB / 0.5501 GB, free: 7.48 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002429/0.4468, allocations: 0.8657 MB / 0.5509 GB, free: 6.566 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.4468, allocations: 0 / 0.5509 GB, free: 6.566 MB / 362.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.00141/0.4482, allocations: 0.621 MB / 0.5515 GB, free: 5.926 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.478e-05/0.4482, allocations: 41.69 kB / 0.5515 GB, free: 5.879 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.4483, allocations: 3.938 kB / 0.5515 GB, free: 5.875 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001357/0.4496, allocations: 359.2 kB / 0.5519 GB, free: 5.512 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002101/0.4498, allocations: 51.91 kB / 0.5519 GB, free: 5.461 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001937/0.4518, allocations: 2.163 MB / 0.5541 GB, free: 3.137 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000375/0.4522, allocations: 67.86 kB / 0.5541 GB, free: 3.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.478e-05/0.4522, allocations: 15.98 kB / 0.5541 GB, free: 3.055 MB / 362.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.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 varTra.tapChanger.abnormalUTime:DISCRETE(unit = "s" fixed = true protected = true ) "Time when the signal U went out its normal range" 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 ($PRE.varTra.tapChanger.furtherTapChangeTimeout,$PRE.varTra.tapChanger.tap,$PRE.varTra.tapChanger.abnormalUTime,$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: 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.0003159/0.4525, allocations: 217.7 kB / 0.5543 GB, free: 2.828 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.033e-05/0.4526, allocations: 35.66 kB / 0.5544 GB, free: 2.793 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001711/0.4543, allocations: 0.8517 MB / 0.5552 GB, free: 1.922 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.4544, allocations: 11.98 kB / 0.5552 GB, free: 1.91 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.4544, allocations: 0 / 0.5552 GB, free: 1.91 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.4544, allocations: 0 / 0.5552 GB, free: 1.91 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004254/0.4548, allocations: 464.8 kB / 0.5557 GB, free: 1.406 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.4548, allocations: 0 / 0.5557 GB, free: 1.406 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001786/0.455, allocations: 35.97 kB / 0.5557 GB, free: 1.371 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001387/0.4564, allocations: 403.5 kB / 0.5561 GB, free: 0.9648 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.502e-05/0.4564, allocations: 15.98 kB / 0.5561 GB, free: 0.9492 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00224/0.4587, allocations: 2.297 MB / 0.5583 GB, free: 14.48 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.4587, allocations: 0 / 0.5583 GB, free: 14.48 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001981/0.4607, allocations: 1.065 MB / 0.5594 GB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001863/0.4609, allocations: 152.6 kB / 0.5595 GB, free: 13.22 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.348e-05/0.461, allocations: 16 kB / 0.5595 GB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003576/0.4613, allocations: 64 kB / 0.5596 GB, free: 13.14 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001487/0.4615, allocations: 47.92 kB / 0.5596 GB, free: 13.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.704e-05/0.4615, allocations: 23.86 kB / 0.5597 GB, free: 13.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002113/0.4617, allocations: 190 kB / 0.5598 GB, free: 12.89 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.613e-06/0.4618, allocations: 0 / 0.5598 GB, free: 12.89 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004267/0.4622, allocations: 107.8 kB / 0.56 GB, free: 12.79 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.0002437/0.4624, allocations: 143.2 kB / 0.5601 GB, free: 12.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00124/0.4637, allocations: 0.6163 MB / 0.5607 GB, free: 12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.4637, allocations: 0 / 0.5607 GB, free: 12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009198/0.4646, allocations: 0.5644 MB / 0.5612 GB, free: 11.41 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002796/0.4649, allocations: 32.56 kB / 0.5613 GB, free: 11.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001231/0.4662, allocations: 0.7141 MB / 0.562 GB, free: 10.63 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003211/0.4665, allocations: 0.7645 MB / 0.5627 GB, free: 9.84 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001553/0.4667, allocations: 30.27 kB / 0.5627 GB, free: 9.812 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.551e-05/0.4667, allocations: 27.42 kB / 0.5628 GB, free: 9.785 MB / 378.7 MB Notification: Performance of SimCode: time 3.9e-07/0.4667, allocations: 0 / 0.5628 GB, free: 9.785 MB / 378.7 MB Notification: Performance of Templates: time 0.01054/0.4773, allocations: 5.508 MB / 0.5681 GB, free: 4.324 MB / 378.7 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer2.makefile make -j1 -f PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer2.makefile clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=PowerSysPro_PowerSysPro_Examples_VariableTransformers_VariableTransformer2 -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.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:26: ./PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer2_functions.h:197: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:74:17: note: 'PowerSysPro_Types_myComplexCurrent' declared here typedef Complex PowerSysPro_Types_myComplexCurrent; ^ 1 error generated. make: *** [: PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer2.o] Error 1