Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001766/0.001766, allocations: 203.3 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.281/1.281, allocations: 227.2 MB / 245 MB, free: 7.586 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008817/0.0008818, allocations: 98.92 kB / 297.3 MB, free: 6.184 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002767/0.0002767, allocations: 12 kB / 358 MB, free: 9.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.243/0.2433, allocations: 51.48 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.125/0.3684, allocations: 105.2 MB / 0.5027 GB, free: 1.32 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000321/0.3688, allocations: 87.95 kB / 0.5027 GB, free: 1.234 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.786/3.155, allocations: 0.8494 GB / 1.352 GB, free: 29.8 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.886e-06/3.155, allocations: 0 / 1.352 GB, free: 29.8 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.001514/3.156, allocations: 395.7 kB / 1.353 GB, free: 29.74 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4885 * Number of variables: 4885 Notification: Performance of Generate backend data structure: time 0.05733/3.213, allocations: 16.58 MB / 1.369 GB, free: 18.65 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/3.214, allocations: 8.031 kB / 1.369 GB, free: 18.64 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01232/3.226, allocations: 2.956 MB / 1.372 GB, free: 15.67 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0338/3.26, allocations: 6.102 MB / 1.378 GB, free: 9.543 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4152/3.675, allocations: 12.01 MB / 1.389 GB, free: 25.37 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00141/3.676, allocations: 1.254 MB / 1.391 GB, free: 25.33 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006882/3.683, allocations: 1.633 MB / 1.392 GB, free: 25.33 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07476/3.758, allocations: 28.41 MB / 1.42 GB, free: 23.29 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008472/3.759, allocations: 22.95 kB / 1.42 GB, free: 23.29 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006157/3.765, allocations: 0.71 MB / 1.421 GB, free: 23.29 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00167/3.767, allocations: 1.302 MB / 1.422 GB, free: 23.25 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04901/3.816, allocations: 22.58 MB / 1.444 GB, free: 23.09 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1393/3.955, allocations: 87.58 MB / 1.529 GB, free: 2.156 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0299/3.985, allocations: 35.39 MB / 1.564 GB, free: 3.418 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008696/3.986, allocations: 291.4 kB / 1.564 GB, free: 3.211 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.566e-05/3.986, allocations: 98.09 kB / 1.564 GB, free: 3.125 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=613): time 7.755e-06/3.986, allocations: 0 / 1.564 GB, free: 3.125 MB / 0.5417 GB Notification: Performance of matching and sorting (n=613): time 0.03978/4.026, allocations: 17.61 MB / 1.582 GB, free: 9.59 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.035e-05/4.026, allocations: 137.8 kB / 1.582 GB, free: 9.434 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01046/4.036, allocations: 5.732 MB / 1.587 GB, free: 4.656 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.001496/4.038, allocations: 117.7 kB / 1.587 GB, free: 4.535 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.3563/4.394, allocations: 7.56 MB / 1.595 GB, free: 89.68 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.003147/4.398, allocations: 2.128 MB / 1.597 GB, free: 88.62 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001022/4.399, allocations: 210 kB / 1.597 GB, free: 88.62 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0005937/4.399, allocations: 0.7489 MB / 1.598 GB, free: 88.3 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006566/4.406, allocations: 4.879 MB / 1.603 GB, free: 88.28 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01159/4.417, allocations: 9.575 MB / 1.612 GB, free: 82.46 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01103/4.428, allocations: 7.28 MB / 1.619 GB, free: 82.35 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002416/4.429, allocations: 46.61 kB / 1.619 GB, free: 82.35 MB / 0.5573 GB Notification: Performance of matching and sorting (n=1365) (initialization): time 0.03009/4.459, allocations: 15.76 MB / 1.634 GB, free: 81.65 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003274/4.459, allocations: 72 kB / 1.635 GB, free: 81.65 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000422/4.46, allocations: 158.6 kB / 1.635 GB, free: 81.65 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003842/4.463, allocations: 1.491 MB / 1.636 GB, free: 81.6 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008791/4.472, allocations: 2.324 MB / 1.638 GB, free: 81.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01731/4.49, allocations: 12.37 MB / 1.65 GB, free: 79.91 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009135/4.499, allocations: 1.366 MB / 1.652 GB, free: 79.26 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002414/4.501, allocations: 0.5415 MB / 1.652 GB, free: 79.26 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 725 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1248): * Single equations (assignments): 1227 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * 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: 1 {(6,75.0%) 92} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01636/4.518, allocations: 7.142 MB / 1.659 GB, free: 79.04 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002081/4.52, allocations: 0.6182 MB / 1.66 GB, free: 78.71 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01628/4.536, allocations: 10.61 MB / 1.67 GB, free: 78.2 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01077/4.547, allocations: 8.192 MB / 1.678 GB, free: 77.91 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.141e-05/4.547, allocations: 15.34 kB / 1.678 GB, free: 77.91 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.532e-05/4.547, allocations: 35.5 kB / 1.678 GB, free: 77.91 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04797/4.595, allocations: 26.1 MB / 1.704 GB, free: 71.93 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.286e-05/4.595, allocations: 5.688 kB / 1.704 GB, free: 71.93 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004006/4.599, allocations: 0.9867 MB / 1.705 GB, free: 71.9 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003191/4.602, allocations: 1.277 MB / 1.706 GB, free: 71.56 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000779/4.603, allocations: 126.7 kB / 1.706 GB, free: 71.49 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01347/4.616, allocations: 11.97 MB / 1.718 GB, free: 65.07 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.406e-06/4.617, allocations: 9.812 kB / 1.718 GB, free: 65.07 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02031/4.637, allocations: 15.71 MB / 1.733 GB, free: 57.45 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004564/4.641, allocations: 1.502 MB / 1.735 GB, free: 56.46 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0016/4.643, allocations: 104 kB / 1.735 GB, free: 56.36 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003906/4.647, allocations: 333.9 kB / 1.735 GB, free: 56.13 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009624/4.648, allocations: 405.5 kB / 1.735 GB, free: 55.88 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00054/4.649, allocations: 169.9 kB / 1.736 GB, free: 55.72 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.008558/4.657, allocations: 4.263 MB / 1.74 GB, free: 52.23 MB / 0.5573 GB Notification: Performance of sort global known variables: time 6.31e-07/4.657, allocations: 0 / 1.74 GB, free: 52.23 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01672/4.674, allocations: 4.094 MB / 1.744 GB, free: 48.12 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 1 (currentSensorL.plug_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (530): * Single equations (assignments): 509 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * 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: 1 {(6,77.8%) 92} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02719/4.701, allocations: 17.78 MB / 1.761 GB, free: 32.14 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01852/4.72, allocations: 11.84 MB / 1.773 GB, free: 21.89 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.711e-05/4.72, allocations: 4 kB / 1.773 GB, free: 21.88 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.009232/4.729, allocations: 4.98 MB / 1.778 GB, free: 17.57 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008563/4.738, allocations: 1.403 MB / 1.779 GB, free: 16.5 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5022/5.24, allocations: 194.7 MB / 1.969 GB, free: 6.219 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01967/5.26, allocations: 11.53 MB / 1.98 GB, free: 4.988 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.01148/5.271, allocations: 3.93 MB / 1.984 GB, free: 4.715 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01245/5.284, allocations: 5.875 MB / 1.99 GB, free: 4.707 MB / 0.6198 GB Notification: Performance of SimCode: time 1.453e-06/5.284, allocations: 0 / 1.99 GB, free: 4.707 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5863/5.87, allocations: 204.8 MB / 2.19 GB, free: 100.6 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001288/5.87, allocations: 228.5 kB / 2.19 GB, free: 100.3 MB / 0.6198 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench.o Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench.c In file included from Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench.c:7: In file included from ./Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench_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 Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench.c:7: In file included from ./Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench_model.h:24: ./Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench_functions.h:432:1: error: unknown type name '_omcQComplexOutput_24currentSensorL_24currentSensor_24i' _omcQComplexOutput_24currentSensorL_24currentSensor_24i omc__omcQComplexOutput_24currentSensorL_24currentSensor_24i (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench_functions.h:441:1: error: unknown type name '_omcQComplexOutput_24currentSensorL_24i' _omcQComplexOutput_24currentSensorL_24i omc__omcQComplexOutput_24currentSensorL_24i (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench_functions.h:450:1: error: unknown type name '_omcQComplexOutput_24currentSensorS_24currentSensor_24i' _omcQComplexOutput_24currentSensorS_24currentSensor_24i omc__omcQComplexOutput_24currentSensorS_24currentSensor_24i (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench_functions.h:459:1: error: unknown type name '_omcQComplexOutput_24currentSensorS_24i' _omcQComplexOutput_24currentSensorS_24i omc__omcQComplexOutput_24currentSensorS_24i (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench_functions.h:468:1: error: unknown type name '_omcQComplexOutput_24electricalPowerSensorL_24powerSensor_24apparentPower' _omcQComplexOutput_24electricalPowerSensorL_24powerSensor_24apparentPower omc__omcQComplexOutput_24electricalPowerSensorL_24powerSensor_24apparentPower (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench_functions.h:477:1: error: unknown type name '_omcQComplexOutput_24electricalPowerSensorS_24powerSensor_24apparentPower' _omcQComplexOutput_24electricalPowerSensorS_24powerSensor_24apparentPower omc__omcQComplexOutput_24electricalPowerSensorS_24powerSensor_24apparentPower (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench_functions.h:486:1: error: unknown type name '_omcQComplexOutput_24voltageSensorL_24v' _omcQComplexOutput_24voltageSensorL_24v omc__omcQComplexOutput_24voltageSensorL_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench_functions.h:495:1: error: unknown type name '_omcQComplexOutput_24voltageSensorL_24voltageSensor_24v' _omcQComplexOutput_24voltageSensorL_24voltageSensor_24v omc__omcQComplexOutput_24voltageSensorL_24voltageSensor_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench_functions.h:504:1: error: unknown type name '_omcQComplexOutput_24voltageSensorS_24v' _omcQComplexOutput_24voltageSensorS_24v omc__omcQComplexOutput_24voltageSensorS_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench_functions.h:513:1: error: unknown type name '_omcQComplexOutput_24voltageSensorS_24voltageSensor_24v' _omcQComplexOutput_24voltageSensorS_24voltageSensor_24v omc__omcQComplexOutput_24voltageSensorS_24voltageSensor_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 2 warnings and 10 errors generated. make: *** [: Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench.o] Error 1