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: "" <> buildModelFMU(PowerSysPro.Examples.VariableTransformers.VariableTransformer1,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_VariableTransformers_VariableTransformer1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.VariableTransformers.VariableTransformer1,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_VariableTransformers_VariableTransformer1",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.001139/0.001139, allocations: 179.4 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.413/1.413, allocations: 223.2 MB / 239.7 MB, free: 1.797 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009398/0.0009399, allocations: 94.92 kB / 290.9 MB, free: 13.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05761/0.05761, allocations: 8.114 MB / 350.1 MB, free: 2.715 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003325/0.0003326, allocations: 13.11 kB / 413.2 MB, free: 89.68 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1104, allocations: 52.53 MB / 465.7 MB, free: 41.96 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.395/0.5055, allocations: 81.63 MB / 0.5345 GB, free: 16.77 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002039/0.5058, allocations: 75 kB / 0.5346 GB, free: 16.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03042/0.5362, allocations: 12.21 MB / 0.5465 GB, free: 31.43 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.877e-06/0.5363, allocations: 0.5625 kB / 0.5465 GB, free: 31.43 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.025e-05/0.5364, allocations: 11.75 kB / 0.5465 GB, free: 31.43 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.003224/0.5396, allocations: 1.065 MB / 0.5476 GB, free: 30.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.331e-05/0.5397, allocations: 8.375 kB / 0.5476 GB, free: 30.75 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002048/0.5399, allocations: 57.75 kB / 0.5476 GB, free: 30.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001889/0.5401, allocations: 62.5 kB / 0.5477 GB, free: 30.68 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009284/0.541, allocations: 481.2 kB / 0.5481 GB, free: 30.42 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.518e-05/0.5411, allocations: 15.06 kB / 0.5481 GB, free: 30.42 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.735e-05/0.5411, allocations: 23.12 kB / 0.5482 GB, free: 30.42 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008663/0.542, allocations: 461.6 kB / 0.5486 GB, free: 30.35 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/0.542, allocations: 0.5156 kB / 0.5486 GB, free: 30.35 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.112e-05/0.5421, allocations: 6.875 kB / 0.5486 GB, free: 30.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.399e-05/0.5421, allocations: 4.125 kB / 0.5486 GB, free: 30.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006827/0.5428, allocations: 379.5 kB / 0.549 GB, free: 30.35 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002009/0.5448, allocations: 1.209 MB / 0.5502 GB, free: 29.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008857/0.5457, allocations: 480.2 kB / 0.5506 GB, free: 29.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001256/0.547, allocations: 0.8405 MB / 0.5514 GB, free: 29.42 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006402/0.5477, allocations: 0.5314 MB / 0.552 GB, free: 29.2 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 2.685e-06/0.5477, allocations: 0 / 0.552 GB, free: 29.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=41): time 0.00363/0.5513, allocations: 1.609 MB / 0.5535 GB, free: 28.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.994e-05/0.5514, allocations: 252.9 kB / 0.5538 GB, free: 28.47 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008938/0.5523, allocations: 0.6039 MB / 0.5544 GB, free: 28.36 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.945e-05/0.5524, allocations: 39.27 kB / 0.5544 GB, free: 28.33 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001799/0.5526, allocations: 266.4 kB / 0.5547 GB, free: 28.22 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.944e-05/0.5527, allocations: 111.2 kB / 0.5548 GB, free: 28.16 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.573e-05/0.5527, allocations: 7.312 kB / 0.5548 GB, free: 28.16 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.5529, allocations: 381.4 kB / 0.5551 GB, free: 27.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003266/0.5532, allocations: 222 kB / 0.5553 GB, free: 27.84 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003708/0.5536, allocations: 294.2 kB / 0.5556 GB, free: 27.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003937/0.554, allocations: 302.4 kB / 0.5559 GB, free: 27.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.554, allocations: 1.031 kB / 0.5559 GB, free: 27.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.002087/0.5561, allocations: 0.9827 MB / 0.5569 GB, free: 27.52 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.382e-05/0.5562, allocations: 71.98 kB / 0.5569 GB, free: 27.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.116e-06/0.5562, allocations: 2.5 kB / 0.5569 GB, free: 27.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001494/0.5577, allocations: 353.3 kB / 0.5573 GB, free: 27.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001988/0.5579, allocations: 49.06 kB / 0.5573 GB, free: 27.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001999/0.5599, allocations: 2.17 MB / 0.5594 GB, free: 25.56 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005031/0.5604, allocations: 75.69 kB / 0.5595 GB, free: 25.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.419e-05/0.5605, allocations: 26.25 kB / 0.5595 GB, free: 25.54 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: 7 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,voltage.a,voltage.b,voltage.last,$PRE.voltage.nextEvent,voltage.nextEvent,voltage.nextEventScaled,$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 (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.0005008/0.561, allocations: 330.8 kB / 0.5599 GB, free: 25.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001248/0.5612, allocations: 66.97 kB / 0.5599 GB, free: 25.31 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002535/0.5637, allocations: 1.256 MB / 0.5611 GB, free: 25.16 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.775e-06/0.5637, allocations: 10.67 kB / 0.5612 GB, free: 25.15 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.5637, allocations: 7.547 kB / 0.5612 GB, free: 25.15 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.5637, allocations: 0 / 0.5612 GB, free: 25.15 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00068/0.5644, allocations: 0.5915 MB / 0.5617 GB, free: 24.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.5644, allocations: 0 / 0.5617 GB, free: 24.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001547/0.5646, allocations: 28.44 kB / 0.5618 GB, free: 24.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001542/0.5662, allocations: 402 kB / 0.5622 GB, free: 24.89 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.195e-05/0.5662, allocations: 21.52 kB / 0.5622 GB, free: 24.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002206/0.5684, allocations: 2.284 MB / 0.5644 GB, free: 23.05 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.5685, allocations: 0 / 0.5644 GB, free: 23.05 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002428/0.5709, allocations: 1.26 MB / 0.5656 GB, free: 22.86 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004605/0.5714, allocations: 227.2 kB / 0.5659 GB, free: 22.72 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001453/0.5715, allocations: 24.03 kB / 0.5659 GB, free: 22.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004853/0.572, allocations: 69.23 kB / 0.5659 GB, free: 22.71 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/0.5721, allocations: 47.41 kB / 0.566 GB, free: 22.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.028e-05/0.5722, allocations: 27.38 kB / 0.566 GB, free: 22.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007559/0.573, allocations: 0.4927 MB / 0.5665 GB, free: 22.62 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.573, allocations: 0 / 0.5665 GB, free: 22.62 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006642/0.5736, allocations: 135.3 kB / 0.5666 GB, free: 22.61 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.00254/0.5762, allocations: 1.759 MB / 0.5683 GB, free: 21.87 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0015/0.5777, allocations: 0.849 MB / 0.5692 GB, free: 21.62 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.5777, allocations: 3.938 kB / 0.5692 GB, free: 21.61 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001004/0.5787, allocations: 0.7228 MB / 0.5699 GB, free: 21.37 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000382/0.5791, allocations: 40.47 kB / 0.5699 GB, free: 21.37 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008068/0.5872, allocations: 5.171 MB / 0.575 GB, free: 19.38 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000672/0.5879, allocations: 0.8903 MB / 0.5758 GB, free: 18.67 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002515/0.5882, allocations: 62.33 kB / 0.5759 GB, free: 18.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002629/0.5885, allocations: 185.8 kB / 0.5761 GB, free: 18.65 MB / 378.7 MB Notification: Performance of SimCode: time 1.232e-06/0.5885, allocations: 0 / 0.5761 GB, free: 18.65 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02661/0.6151, allocations: 12.95 MB / 0.5887 GB, free: 13.54 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001587/0.6153, allocations: 220.3 kB / 0.5889 GB, free: 13.31 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_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: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_VariableTransformer1.c:7: In file included from ./PowerSysPro_PowerSysPro_Examples_VariableTransformers_VariableTransformer1_model.h:24: ./PowerSysPro_PowerSysPro_Examples_VariableTransformers_VariableTransformer1_functions.h:213: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:78:17: note: 'PowerSysPro_Types_myComplexCurrent' declared here typedef Complex PowerSysPro_Types_myComplexCurrent; ^ 2 warnings and 1 error generated. make: *** [: PowerSysPro_PowerSysPro_Examples_VariableTransformers_VariableTransformer1.o] Error 1