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.00113/0.00113, 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.347/1.347, allocations: 223.2 MB / 239.7 MB, free: 56 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009293/0.0009293, allocations: 97.78 kB / 290.9 MB, free: 4.605 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.0558/0.0558, allocations: 8.104 MB / 350.1 MB, free: 4.836 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003346/0.0003346, allocations: 8 kB / 413.1 MB, free: 5.793 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.262/0.2624, allocations: 52.52 MB / 465.6 MB, free: 69.64 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0954/0.3578, allocations: 80.42 MB / 0.5332 GB, free: 5.102 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002346/0.3581, allocations: 71.97 kB / 0.5333 GB, free: 5.031 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02397/0.3821, allocations: 8.974 MB / 0.5421 GB, free: 11.95 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3821, allocations: 0 / 0.5421 GB, free: 11.95 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.47e-05/0.3822, allocations: 7.938 kB / 0.5421 GB, free: 11.94 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.002462/0.3847, allocations: 0.7732 MB / 0.5428 GB, free: 11.11 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.3847, allocations: 8.031 kB / 0.5429 GB, free: 11.1 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001307/0.3848, allocations: 31.62 kB / 0.5429 GB, free: 11.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000475/0.3853, allocations: 293.6 kB / 0.5432 GB, free: 10.74 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.834e-05/0.3854, allocations: 12 kB / 0.5432 GB, free: 10.73 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.673e-05/0.3855, allocations: 16 kB / 0.5432 GB, free: 10.71 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006842/0.3862, allocations: 343 kB / 0.5435 GB, free: 10.37 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.3862, allocations: 4 kB / 0.5435 GB, free: 10.36 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.703e-05/0.3862, allocations: 8 kB / 0.5435 GB, free: 10.36 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.3863, allocations: 4 kB / 0.5435 GB, free: 10.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005594/0.3868, allocations: 267.8 kB / 0.5438 GB, free: 10.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001658/0.3885, allocations: 0.9749 MB / 0.5447 GB, free: 9.039 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008645/0.3894, allocations: 371.5 kB / 0.5451 GB, free: 8.668 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008548/0.3902, allocations: 0.7413 MB / 0.5458 GB, free: 7.863 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006112/0.3909, allocations: 378.8 kB / 0.5462 GB, free: 7.453 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 1.814e-06/0.3909, allocations: 3.938 kB / 0.5462 GB, free: 7.449 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.002952/0.3938, allocations: 1.052 MB / 0.5472 GB, free: 6.344 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001381/0.394, allocations: 225.8 kB / 0.5474 GB, free: 6.074 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002867/0.3943, allocations: 229.7 kB / 0.5476 GB, free: 5.844 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.356e-05/0.3943, allocations: 33.7 kB / 0.5477 GB, free: 5.805 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001159/0.3945, allocations: 148.4 kB / 0.5478 GB, free: 5.656 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.324e-05/0.3946, allocations: 106.5 kB / 0.5479 GB, free: 5.551 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.772e-05/0.3946, allocations: 8 kB / 0.5479 GB, free: 5.543 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.3948, allocations: 346.8 kB / 0.5483 GB, free: 5.195 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002212/0.395, allocations: 120 kB / 0.5484 GB, free: 5.078 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000271/0.3953, allocations: 188.5 kB / 0.5486 GB, free: 4.863 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002929/0.3956, allocations: 170.3 kB / 0.5487 GB, free: 4.691 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.6e-06/0.3956, allocations: 4 kB / 0.5487 GB, free: 4.688 MB / 378.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001594/0.3972, allocations: 0.6254 MB / 0.5493 GB, free: 4.043 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.979e-05/0.3972, allocations: 41.69 kB / 0.5494 GB, free: 3.996 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.3973, allocations: 11.94 kB / 0.5494 GB, free: 3.984 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001529/0.3988, allocations: 343.3 kB / 0.5497 GB, free: 3.637 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002334/0.399, allocations: 55.91 kB / 0.5498 GB, free: 3.582 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002179/0.4012, allocations: 2.163 MB / 0.5519 GB, free: 1.254 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004351/0.4017, allocations: 63.83 kB / 0.5519 GB, free: 1.191 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.844e-05/0.4017, allocations: 16 kB / 0.5519 GB, free: 1.176 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.000385/0.4021, allocations: 224.6 kB / 0.5522 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.673e-05/0.4022, allocations: 31.62 kB / 0.5522 GB, free: 0.9062 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001824/0.404, allocations: 0.8442 MB / 0.553 GB, free: 48 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.4041, allocations: 7.953 kB / 0.553 GB, free: 40 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.4041, allocations: 4 kB / 0.553 GB, free: 36 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.4041, allocations: 0 / 0.553 GB, free: 36 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2167/0.6208, allocations: 454.5 kB / 0.5535 GB, free: 90.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.6209, allocations: 0 / 0.5535 GB, free: 90.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002614/0.6211, allocations: 34.83 kB / 0.5535 GB, free: 90.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001716/0.6229, allocations: 412.7 kB / 0.5539 GB, free: 89.99 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.712e-05/0.6229, allocations: 16.77 kB / 0.5539 GB, free: 89.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002046/0.625, allocations: 2.29 MB / 0.5561 GB, free: 88.21 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.625, allocations: 1.656 kB / 0.5561 GB, free: 88.21 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001994/0.627, allocations: 1.067 MB / 0.5572 GB, free: 88.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001717/0.6272, allocations: 154.8 kB / 0.5573 GB, free: 87.99 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.723e-05/0.6272, allocations: 19.75 kB / 0.5574 GB, free: 87.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003805/0.6276, allocations: 65.34 kB / 0.5574 GB, free: 87.99 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/0.6278, allocations: 42.52 kB / 0.5575 GB, free: 87.99 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.643e-05/0.6278, allocations: 14.17 kB / 0.5575 GB, free: 87.99 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001869/0.628, allocations: 193.4 kB / 0.5577 GB, free: 87.91 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.81e-07/0.628, allocations: 3.469 kB / 0.5577 GB, free: 87.91 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004355/0.6284, allocations: 101.3 kB / 0.5578 GB, free: 87.91 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.000248/0.6287, allocations: 150.5 kB / 0.5579 GB, free: 87.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00118/0.6299, allocations: 0.6141 MB / 0.5585 GB, free: 87.64 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.6299, allocations: 0 / 0.5585 GB, free: 87.64 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008579/0.6308, allocations: 0.5618 MB / 0.559 GB, free: 87.47 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001806/0.631, allocations: 28.36 kB / 0.5591 GB, free: 87.47 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001004/0.632, allocations: 0.72 MB / 0.5598 GB, free: 87.14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002387/0.6322, allocations: 0.7722 MB / 0.5605 GB, free: 86.45 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001557/0.6324, allocations: 30.94 kB / 0.5606 GB, free: 86.45 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.593e-05/0.6325, allocations: 24.83 kB / 0.5606 GB, free: 86.44 MB / 378.7 MB Notification: Performance of SimCode: time 5.71e-07/0.6325, allocations: 0 / 0.5606 GB, free: 86.44 MB / 378.7 MB Notification: Performance of Templates: time 0.01007/0.6425, allocations: 5.485 MB / 0.5659 GB, free: 86.06 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 -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_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: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; ^ 1 error generated. make: *** [: PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer2.o] Error 1