Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad.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.WithVariableLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad") translateModel(PowerSysPro.Examples.VariableTransformers.WithVariableLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001344/0.001345, allocations: 167.5 kB / 16.8 MB, free: 5.027 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.412/1.412, allocations: 223.3 MB / 240.8 MB, free: 9.965 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.0008523/0.0008522, allocations: 99.28 kB / 292 MB, free: 10.56 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04108/0.04108, allocations: 8.098 MB / 351.2 MB, free: 15.34 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004968/0.0004968, allocations: 12 kB / 414.4 MB, free: 57.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1125, allocations: 52.52 MB / 466.9 MB, free: 4.703 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.342/0.4545, allocations: 82.54 MB / 0.5366 GB, free: 3.035 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001914/0.4548, allocations: 75.22 kB / 0.5366 GB, free: 2.996 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0306/0.4854, allocations: 12.21 MB / 0.5485 GB, free: 9.082 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4854, allocations: 0 / 0.5485 GB, free: 9.082 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.428e-05/0.4855, allocations: 4 kB / 0.5486 GB, free: 9.078 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.002818/0.4883, allocations: 0.9587 MB / 0.5495 GB, free: 8.133 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.4883, allocations: 8.031 kB / 0.5495 GB, free: 8.125 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002065/0.4885, allocations: 52.38 kB / 0.5495 GB, free: 8.074 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005876/0.4891, allocations: 374.1 kB / 0.5499 GB, free: 7.734 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001141/0.4893, allocations: 53.64 kB / 0.55 GB, free: 7.688 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.348e-05/0.4894, allocations: 31.69 kB / 0.55 GB, free: 7.664 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009509/0.4903, allocations: 492.5 kB / 0.5505 GB, free: 7.34 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.4904, allocations: 0 / 0.5505 GB, free: 7.34 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.172e-05/0.4904, allocations: 11.94 kB / 0.5505 GB, free: 7.336 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.4904, allocations: 8 kB / 0.5505 GB, free: 7.328 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008822/0.4913, allocations: 480.8 kB / 0.5509 GB, free: 6.891 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003249/0.4946, allocations: 2.156 MB / 0.553 GB, free: 4.555 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001095/0.4957, allocations: 0.5508 MB / 0.5536 GB, free: 3.988 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005455/0.4963, allocations: 349.4 kB / 0.5539 GB, free: 3.645 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.88e-05/0.4964, allocations: 24.23 kB / 0.5539 GB, free: 3.621 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009525/0.4973, allocations: 0.5437 MB / 0.5545 GB, free: 3.039 MB / 362.7 MB Notification: Performance of pre-optimization done (n=51): time 4.368e-06/0.4973, allocations: 0 / 0.5545 GB, free: 3.039 MB / 362.7 MB Notification: Performance of matching and sorting (n=51): time 0.006842/0.5042, allocations: 2.075 MB / 0.5565 GB, free: 0.9297 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/0.5043, allocations: 191.9 kB / 0.5567 GB, free: 0.6992 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004608/0.5048, allocations: 324.5 kB / 0.557 GB, free: 384 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.988e-05/0.5049, allocations: 37.7 kB / 0.557 GB, free: 340 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001282/0.505, allocations: 180.8 kB / 0.5572 GB, free: 156 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001583/0.5052, allocations: 157.8 kB / 0.5573 GB, free: 15.99 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.219e-05/0.5052, allocations: 8 kB / 0.5573 GB, free: 15.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.5054, allocations: 354.7 kB / 0.5577 GB, free: 15.63 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004386/0.5058, allocations: 260.9 kB / 0.5579 GB, free: 15.38 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004611/0.5063, allocations: 308.9 kB / 0.5582 GB, free: 15.06 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006071/0.5124, allocations: 1.831 MB / 0.56 GB, free: 13.19 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.5124, allocations: 0 / 0.56 GB, free: 13.19 MB / 378.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.002313/0.5147, allocations: 1.066 MB / 0.5611 GB, free: 12.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.068e-05/0.5148, allocations: 37.69 kB / 0.5611 GB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.5148, allocations: 0 / 0.5611 GB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003541/0.5183, allocations: 0.8706 MB / 0.5619 GB, free: 11.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002375/0.5186, allocations: 59.89 kB / 0.562 GB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00163/0.5202, allocations: 1.264 MB / 0.5632 GB, free: 9.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005582/0.5208, allocations: 87.7 kB / 0.5633 GB, free: 9.754 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.118e-05/0.5209, allocations: 19.97 kB / 0.5633 GB, free: 9.734 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: 3 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.varTra.tapChanger.furtherTapChangeTimeout,$PRE.varTra.tapChanger.tap,$PRE.varTra.tapChanger.abnormalUTime,$whenCondition5,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,varTra.tapChanger.tap,varTra.tapChanger.abnormalUTime,varTra.tapChanger.normalU,varTra.tapChanger.decreaseEvent,varTra.tapChanger.increaseEvent,varTra.tapChanger.furtherTapChangeTimeout,$PRE.varLoad.degradedMode,varLoad.degradedMode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 14} Notification: Performance of prepare postOptimizeDAE: time 0.0003691/0.5212, allocations: 223 kB / 0.5636 GB, free: 9.504 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001247/0.5214, allocations: 43.53 kB / 0.5636 GB, free: 9.461 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002667/0.5241, allocations: 1.349 MB / 0.5649 GB, free: 8.094 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.5241, allocations: 7.984 kB / 0.5649 GB, free: 8.086 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.5241, allocations: 0 / 0.5649 GB, free: 8.086 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.5241, allocations: 4.062 kB / 0.5649 GB, free: 8.082 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007383/0.5248, allocations: 0.7008 MB / 0.5656 GB, free: 7.332 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.177e-06/0.5249, allocations: 4 kB / 0.5656 GB, free: 7.328 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001937/0.5251, allocations: 47.97 kB / 0.5657 GB, free: 7.281 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00359/0.5286, allocations: 0.9161 MB / 0.5666 GB, free: 6.355 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.378e-05/0.5287, allocations: 16 kB / 0.5666 GB, free: 6.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00197/0.5307, allocations: 1.401 MB / 0.5679 GB, free: 4.906 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.5307, allocations: 0 / 0.5679 GB, free: 4.906 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002497/0.5332, allocations: 1.303 MB / 0.5692 GB, free: 3.574 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00031/0.5335, allocations: 212.2 kB / 0.5694 GB, free: 3.348 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001071/0.5337, allocations: 20 kB / 0.5694 GB, free: 3.328 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005411/0.5342, allocations: 79.92 kB / 0.5695 GB, free: 3.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001451/0.5344, allocations: 52.3 kB / 0.5696 GB, free: 3.199 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.096e-05/0.5344, allocations: 23.98 kB / 0.5696 GB, free: 3.176 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002854/0.5347, allocations: 239.1 kB / 0.5698 GB, free: 2.945 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5347, allocations: 0 / 0.5698 GB, free: 2.945 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000491/0.5352, allocations: 139.9 kB / 0.5699 GB, free: 2.809 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: 12 ($whenCondition5,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,varTra.tapChanger.tap,varTra.tapChanger.abnormalUTime,varTra.tapChanger.normalU,varTra.tapChanger.decreaseEvent,varTra.tapChanger.increaseEvent,varTra.tapChanger.furtherTapChangeTimeout,varLoad.degradedMode) * Number of discrete states: 11 (varTra.tapChanger.tap,varTra.tapChanger.furtherTapChangeTimeout,$whenCondition4,$whenCondition3,varTra.tapChanger.abnormalUTime,$whenCondition2,$whenCondition1,varTra.tapChanger.decreaseEvent,varTra.tapChanger.increaseEvent,varTra.tapChanger.normalU,varLoad.degradedMode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 25 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002789/0.5355, allocations: 144.1 kB / 0.5701 GB, free: 2.66 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001976/0.5375, allocations: 0.8773 MB / 0.5709 GB, free: 1.773 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.5375, allocations: 7.938 kB / 0.5709 GB, free: 1.766 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001336/0.5389, allocations: 0.6685 MB / 0.5716 GB, free: 1.078 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004148/0.5393, allocations: 56.39 kB / 0.5716 GB, free: 1.027 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001686/0.541, allocations: 0.9393 MB / 0.5726 GB, free: 68 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003805/0.5414, allocations: 0.8049 MB / 0.5733 GB, free: 15.23 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001935/0.5416, allocations: 51.25 kB / 0.5734 GB, free: 15.18 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.096e-05/0.5417, allocations: 31.36 kB / 0.5734 GB, free: 15.16 MB / 394.7 MB Notification: Performance of SimCode: time 4.01e-07/0.5417, allocations: 0 / 0.5734 GB, free: 15.16 MB / 394.7 MB Notification: Performance of Templates: time 0.01444/0.5561, allocations: 9.119 MB / 0.5823 GB, free: 6.102 MB / 394.7 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad.makefile make -j1 -f PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad.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_WithVariableLoad -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad.o PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad.c In file included from PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad.c:7: In file included from ./PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad_model.h:26: ./PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad_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.WithVariableLoad_functions.h:74:17: note: 'PowerSysPro_Types_myComplexCurrent' declared here typedef Complex PowerSysPro_Types_myComplexCurrent; ^ 1 error generated. make: *** [: PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad.o] Error 1