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: "" <> buildModelFMU(PowerSysPro.Examples.VariableTransformers.WithVariableLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_VariableTransformers_WithVariableLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.VariableTransformers.WithVariableLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_VariableTransformers_WithVariableLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009329/0.0009328, allocations: 179.2 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.501/1.501, allocations: 223.2 MB / 239.7 MB, free: 64 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.001012/0.001011, allocations: 96.91 kB / 290.9 MB, free: 4.516 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.06513/0.06513, allocations: 8.104 MB / 350.1 MB, free: 4.84 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000309/0.000309, allocations: 8 kB / 413.2 MB, free: 5.691 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2335/0.2338, allocations: 52.51 MB / 465.7 MB, free: 69.61 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1093/0.3433, allocations: 82.5 MB / 0.5354 GB, free: 3 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002961/0.3436, allocations: 79.95 kB / 0.5354 GB, free: 2.922 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03468/0.3783, allocations: 12.2 MB / 0.5473 GB, free: 6.578 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.719e-06/0.3784, allocations: 0 / 0.5473 GB, free: 6.578 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.008e-05/0.3785, allocations: 11.94 kB / 0.5474 GB, free: 6.566 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.003201/0.3817, allocations: 0.968 MB / 0.5483 GB, free: 5.543 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.738e-05/0.3818, allocations: 12.03 kB / 0.5483 GB, free: 5.531 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001268/0.3819, allocations: 58.55 kB / 0.5484 GB, free: 5.465 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001262/0.382, allocations: 55.42 kB / 0.5484 GB, free: 5.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006116/0.3826, allocations: 362.1 kB / 0.5488 GB, free: 5.02 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.123e-05/0.3827, allocations: 50.25 kB / 0.5488 GB, free: 4.965 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.101e-05/0.3828, allocations: 32 kB / 0.5488 GB, free: 4.934 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.3839, allocations: 488.7 kB / 0.5493 GB, free: 4.445 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/0.3839, allocations: 0 / 0.5493 GB, free: 4.445 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.604e-05/0.384, allocations: 15.95 kB / 0.5493 GB, free: 4.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/0.384, allocations: 4 kB / 0.5493 GB, free: 4.426 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009834/0.385, allocations: 485.9 kB / 0.5498 GB, free: 3.949 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003555/0.3885, allocations: 2.152 MB / 0.5519 GB, free: 1.617 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001248/0.3898, allocations: 0.5584 MB / 0.5524 GB, free: 1.043 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.745e-05/0.3899, allocations: 16.31 kB / 0.5525 GB, free: 1.027 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009914/0.3909, allocations: 0.5359 MB / 0.553 GB, free: 464 kB / 378.7 MB Notification: Performance of pre-optimization done (n=51): time 2.285e-06/0.3909, allocations: 0 / 0.553 GB, free: 464 kB / 378.7 MB Notification: Performance of matching and sorting (n=51): time 0.2977/0.6886, allocations: 2.061 MB / 0.555 GB, free: 87.27 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/0.6888, allocations: 198.3 kB / 0.5552 GB, free: 87.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004519/0.6892, allocations: 292.2 kB / 0.5555 GB, free: 86.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.219e-05/0.6893, allocations: 37.52 kB / 0.5555 GB, free: 86.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.6894, allocations: 178.2 kB / 0.5557 GB, free: 86.84 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001304/0.6895, allocations: 159.6 kB / 0.5558 GB, free: 86.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.211e-05/0.6896, allocations: 9.156 kB / 0.5558 GB, free: 86.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.684e-05/0.6897, allocations: 348.9 kB / 0.5562 GB, free: 86.45 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004647/0.6902, allocations: 263.1 kB / 0.5564 GB, free: 86.45 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004993/0.6907, allocations: 309.3 kB / 0.5567 GB, free: 86.42 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004773/0.6912, allocations: 305.6 kB / 0.557 GB, free: 86.38 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.6912, allocations: 2.734 kB / 0.557 GB, free: 86.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001623/0.6928, allocations: 0.9191 MB / 0.5579 GB, free: 86.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.354e-05/0.6929, allocations: 45.64 kB / 0.5579 GB, free: 86.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.6929, allocations: 0.6562 kB / 0.5579 GB, free: 86.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004331/0.6972, allocations: 0.8736 MB / 0.5588 GB, free: 86.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002831/0.6975, allocations: 59.53 kB / 0.5588 GB, free: 86.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001941/0.6995, allocations: 1.266 MB / 0.5601 GB, free: 85.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006456/0.7002, allocations: 87.12 kB / 0.5602 GB, free: 85.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.155e-05/0.7002, allocations: 22.3 kB / 0.5602 GB, free: 85.62 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: 3 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition5,$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,$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.0004672/0.7007, allocations: 213.7 kB / 0.5604 GB, free: 85.47 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001389/0.7008, allocations: 46.31 kB / 0.5604 GB, free: 85.45 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003378/0.7042, allocations: 1.343 MB / 0.5617 GB, free: 85.23 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/0.7043, allocations: 12.25 kB / 0.5618 GB, free: 85.23 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.7043, allocations: 0 / 0.5618 GB, free: 85.23 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.654e-06/0.7043, allocations: 1.094 kB / 0.5618 GB, free: 85.23 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007638/0.7051, allocations: 0.6907 MB / 0.5624 GB, free: 84.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.7051, allocations: 1.406 kB / 0.5624 GB, free: 84.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001971/0.7053, allocations: 52.59 kB / 0.5625 GB, free: 84.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003811/0.7091, allocations: 0.9142 MB / 0.5634 GB, free: 84.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.969e-05/0.7092, allocations: 22.05 kB / 0.5634 GB, free: 84.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001854/0.711, allocations: 1.393 MB / 0.5648 GB, free: 83.68 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.711, allocations: 3.281 kB / 0.5648 GB, free: 83.68 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00252/0.7136, allocations: 1.303 MB / 0.566 GB, free: 83.04 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002848/0.7139, allocations: 204.6 kB / 0.5662 GB, free: 82.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.94e-05/0.714, allocations: 23.53 kB / 0.5663 GB, free: 82.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005201/0.7145, allocations: 84.88 kB / 0.5663 GB, free: 82.85 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001361/0.7147, allocations: 49.05 kB / 0.5664 GB, free: 82.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.011e-05/0.7147, allocations: 26.23 kB / 0.5664 GB, free: 82.83 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002237/0.7149, allocations: 240.4 kB / 0.5666 GB, free: 82.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.715, allocations: 0 / 0.5666 GB, free: 82.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004517/0.7154, allocations: 145.9 kB / 0.5668 GB, free: 82.68 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.002617/0.718, allocations: 1.88 MB / 0.5686 GB, free: 81.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001768/0.7198, allocations: 0.8796 MB / 0.5695 GB, free: 81.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.565e-06/0.7198, allocations: 2.781 kB / 0.5695 GB, free: 81.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001237/0.7211, allocations: 0.6783 MB / 0.5701 GB, free: 80.78 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000305/0.7214, allocations: 35.22 kB / 0.5702 GB, free: 80.76 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004169/0.7256, allocations: 3.399 MB / 0.5735 GB, free: 78.81 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002343/0.7258, allocations: 0.8134 MB / 0.5743 GB, free: 78.11 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001771/0.726, allocations: 47.5 kB / 0.5743 GB, free: 78.09 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001747/0.7262, allocations: 136 kB / 0.5745 GB, free: 78 MB / 378.7 MB Notification: Performance of SimCode: time 9.52e-07/0.7262, allocations: 0.75 kB / 0.5745 GB, free: 78 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02556/0.7518, allocations: 12.78 MB / 0.5869 GB, free: 67.69 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001934/0.752, allocations: 218 kB / 0.5871 GB, free: 67.45 MB / 378.7 MB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -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:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from PowerSysPro_PowerSysPro_Examples_VariableTransformers_WithVariableLoad.c:7: In file included from ./PowerSysPro_PowerSysPro_Examples_VariableTransformers_WithVariableLoad_model.h:24: ./PowerSysPro_PowerSysPro_Examples_VariableTransformers_WithVariableLoad_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_WithVariableLoad_functions.h:78:17: note: 'PowerSysPro_Types_myComplexCurrent' declared here typedef Complex PowerSysPro_Types_myComplexCurrent; ^ 2 warnings and 1 error generated. make: *** [: PowerSysPro_PowerSysPro_Examples_VariableTransformers_WithVariableLoad.o] Error 1