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.001333/0.001333, allocations: 167.9 kB / 16.8 MB, free: 4.879 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.332/1.332, allocations: 223.3 MB / 240.8 MB, free: 11.69 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.0007805/0.0007805, allocations: 93.89 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.0442/0.0442, allocations: 8.094 MB / 351.2 MB, free: 15.55 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004366/0.0004367, allocations: 13.84 kB / 414.4 MB, free: 57.26 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09734/0.0978, allocations: 52.51 MB / 466.9 MB, free: 4.742 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2986/0.3964, allocations: 81.67 MB / 0.5357 GB, free: 3.855 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001971/0.3967, allocations: 69.72 kB / 0.5358 GB, free: 3.82 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03135/0.428, allocations: 12.2 MB / 0.5477 GB, free: 9.68 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4281, allocations: 0 / 0.5477 GB, free: 9.68 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.624e-05/0.4281, allocations: 8 kB / 0.5477 GB, free: 9.672 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.002579/0.4307, allocations: 1.057 MB / 0.5487 GB, free: 8.613 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.4307, allocations: 12.03 kB / 0.5487 GB, free: 8.602 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000157/0.4309, allocations: 64.19 kB / 0.5488 GB, free: 8.539 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007493/0.4317, allocations: 0.4966 MB / 0.5493 GB, free: 8.059 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.812e-05/0.4317, allocations: 15.62 kB / 0.5493 GB, free: 8.047 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.873e-05/0.4318, allocations: 27.55 kB / 0.5493 GB, free: 8.027 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007478/0.4325, allocations: 448.9 kB / 0.5498 GB, free: 7.695 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.4325, allocations: 3.938 kB / 0.5498 GB, free: 7.691 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.124e-05/0.4326, allocations: 15.8 kB / 0.5498 GB, free: 7.68 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.4326, allocations: 0 / 0.5498 GB, free: 7.68 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006113/0.4332, allocations: 378.4 kB / 0.5501 GB, free: 7.426 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001907/0.4351, allocations: 1.203 MB / 0.5513 GB, free: 6.43 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009845/0.4361, allocations: 480.9 kB / 0.5518 GB, free: 5.984 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000475/0.4366, allocations: 309 kB / 0.5521 GB, free: 5.68 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00113/0.4378, allocations: 0.8471 MB / 0.5529 GB, free: 4.77 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007038/0.4385, allocations: 0.5268 MB / 0.5534 GB, free: 4.203 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 2.204e-06/0.4385, allocations: 4 kB / 0.5534 GB, free: 4.199 MB / 362.7 MB Notification: Performance of matching and sorting (n=41): time 0.003562/0.4421, allocations: 1.533 MB / 0.5549 GB, free: 2.602 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001388/0.4422, allocations: 251.3 kB / 0.5551 GB, free: 2.301 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009367/0.4432, allocations: 0.6748 MB / 0.5558 GB, free: 1.613 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.308e-05/0.4432, allocations: 37.7 kB / 0.5558 GB, free: 1.57 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002297/0.4435, allocations: 268.5 kB / 0.5561 GB, free: 1.305 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001193/0.4436, allocations: 122.3 kB / 0.5562 GB, free: 1.184 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.872e-05/0.4436, allocations: 12 kB / 0.5562 GB, free: 1.172 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001886/0.4438, allocations: 378.8 kB / 0.5566 GB, free: 0.793 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003636/0.4442, allocations: 224.3 kB / 0.5568 GB, free: 0.5742 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004137/0.4446, allocations: 290.7 kB / 0.5571 GB, free: 272 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003482/0.4481, allocations: 1.413 MB / 0.5585 GB, free: 14.78 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.4481, allocations: 0 / 0.5585 GB, free: 14.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.002067/0.4502, allocations: 0.9957 MB / 0.5594 GB, free: 13.76 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.101e-05/0.4503, allocations: 67.58 kB / 0.5595 GB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.4503, allocations: 8 kB / 0.5595 GB, free: 13.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001413/0.4517, allocations: 355.8 kB / 0.5598 GB, free: 13.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002057/0.452, allocations: 51.91 kB / 0.5599 GB, free: 13.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002212/0.4542, allocations: 2.146 MB / 0.562 GB, free: 10.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004922/0.4547, allocations: 83.77 kB / 0.5621 GB, free: 10.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.014e-05/0.4548, allocations: 31.98 kB / 0.5621 GB, free: 10.84 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.tap:DISCRETE(start = varTra.tapChanger.startTap fixed = true ) "Current tap position" type: Integer 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: 7 * Number of states: 0 () * Number of discrete variables: 20 ($PRE.varTra.tapChanger.furtherTapChangeTimeout,$PRE.varTra.tapChanger.tap,$PRE.varTra.tapChanger.abnormalUTime,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,voltage.a,voltage.b,voltage.last,$PRE.voltage.nextEvent,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: 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.0005373/0.4553, allocations: 309.7 kB / 0.5624 GB, free: 10.52 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001126/0.4555, allocations: 71.16 kB / 0.5625 GB, free: 10.45 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002566/0.458, allocations: 1.264 MB / 0.5637 GB, free: 9.164 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.458, allocations: 4 kB / 0.5637 GB, free: 9.16 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.4581, allocations: 0 / 0.5637 GB, free: 9.16 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.4581, allocations: 3.984 kB / 0.5637 GB, free: 9.156 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007192/0.4588, allocations: 0.5945 MB / 0.5643 GB, free: 8.512 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.4588, allocations: 0 / 0.5643 GB, free: 8.512 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001487/0.459, allocations: 43.91 kB / 0.5643 GB, free: 8.469 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001433/0.4604, allocations: 395.1 kB / 0.5647 GB, free: 8.07 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.944e-05/0.4605, allocations: 23.98 kB / 0.5647 GB, free: 8.047 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002286/0.4628, allocations: 2.27 MB / 0.5669 GB, free: 5.609 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.4628, allocations: 0 / 0.5669 GB, free: 5.609 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002353/0.4651, allocations: 1.261 MB / 0.5682 GB, free: 4.309 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003263/0.4655, allocations: 228 kB / 0.5684 GB, free: 4.066 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000115/0.4656, allocations: 28 kB / 0.5684 GB, free: 4.039 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004181/0.466, allocations: 67.92 kB / 0.5685 GB, free: 3.973 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001173/0.4662, allocations: 35.94 kB / 0.5685 GB, free: 3.938 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.319e-05/0.4662, allocations: 31.98 kB / 0.5685 GB, free: 3.906 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006216/0.4669, allocations: 0.4986 MB / 0.569 GB, free: 3.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4669, allocations: 0 / 0.569 GB, free: 3.41 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005318/0.4674, allocations: 139.9 kB / 0.5692 GB, free: 3.273 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.0003447/0.4678, allocations: 183.5 kB / 0.5693 GB, free: 3.086 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001481/0.4693, allocations: 0.8498 MB / 0.5702 GB, free: 2.199 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.4693, allocations: 0 / 0.5702 GB, free: 2.199 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001058/0.4703, allocations: 0.7173 MB / 0.5709 GB, free: 1.445 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003934/0.4707, allocations: 59.31 kB / 0.5709 GB, free: 1.387 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00181/0.4726, allocations: 1.196 MB / 0.5721 GB, free: 172 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005009/0.4731, allocations: 0.8757 MB / 0.5729 GB, free: 15.27 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000187/0.4733, allocations: 59.25 kB / 0.573 GB, free: 15.21 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.025e-05/0.4734, allocations: 35.42 kB / 0.573 GB, free: 15.17 MB / 394.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4734, allocations: 0 / 0.573 GB, free: 15.17 MB / 394.7 MB Notification: Performance of Templates: time 0.01356/0.4869, allocations: 7.326 MB / 0.5802 GB, free: 7.898 MB / 394.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 -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_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:26: ./PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1_functions.h:204: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:74:17: note: 'PowerSysPro_Types_myComplexCurrent' declared here typedef Complex PowerSysPro_Types_myComplexCurrent; ^ 1 error generated. make: *** [: PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1.o] Error 1