Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors.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) 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(Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_TestSensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_TestSensors",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.001539/0.001539, allocations: 181.2 kB / 16.39 MB, free: 5.762 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.45/1.45, allocations: 223.2 MB / 240.3 MB, free: 10.16 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.00112/0.00112, allocations: 97.03 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003329/0.0003329, allocations: 4 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.262/0.2624, allocations: 50.4 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1268/0.3893, allocations: 96.11 MB / 497.7 MB, free: 300 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002539/0.3896, allocations: 89.14 kB / 497.8 MB, free: 212 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.105/1.495, allocations: 301.7 MB / 0.7808 GB, free: 37.58 MB / 442.7 MB Notification: Performance of FrontEnd: time 4.399e-06/1.495, allocations: 0 / 0.7808 GB, free: 37.58 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006156/1.495, allocations: 195.8 kB / 0.781 GB, free: 37.39 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2457 * Number of variables: 2457 Notification: Performance of Generate backend data structure: time 0.03159/1.527, allocations: 8.071 MB / 0.7888 GB, free: 29.24 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.705e-05/1.527, allocations: 8.031 kB / 0.7889 GB, free: 29.23 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006102/1.533, allocations: 1.279 MB / 0.7901 GB, free: 27.94 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01469/1.548, allocations: 2.616 MB / 0.7927 GB, free: 25.31 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01193/1.56, allocations: 5.522 MB / 0.798 GB, free: 19.72 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005262/1.56, allocations: 0.6343 MB / 0.7987 GB, free: 19.09 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003543/1.564, allocations: 0.8397 MB / 0.7995 GB, free: 18.25 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03251/1.596, allocations: 13.6 MB / 0.8128 GB, free: 4.348 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002257/1.597, allocations: 15.89 kB / 0.8128 GB, free: 4.332 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001272/1.598, allocations: 372 kB / 0.8131 GB, free: 3.969 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007367/1.599, allocations: 0.6122 MB / 0.8137 GB, free: 3.355 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02607/1.625, allocations: 10.3 MB / 0.8238 GB, free: 9.051 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3847/2.01, allocations: 43.66 MB / 0.8664 GB, free: 54.77 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008708/2.018, allocations: 10.55 MB / 0.8767 GB, free: 47.11 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002921/2.019, allocations: 127.6 kB / 0.8769 GB, free: 47.02 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.109e-05/2.019, allocations: 57.16 kB / 0.8769 GB, free: 46.98 MB / 458.7 MB Notification: Performance of pre-optimization done (n=234): time 5.38e-06/2.019, allocations: 2.5 kB / 0.8769 GB, free: 46.98 MB / 458.7 MB Notification: Performance of matching and sorting (n=234): time 0.008281/2.027, allocations: 5.156 MB / 0.8819 GB, free: 46.26 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.323e-05/2.027, allocations: 74.56 kB / 0.882 GB, free: 46.19 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004268/2.031, allocations: 2.619 MB / 0.8846 GB, free: 45.94 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002522/2.032, allocations: 63.28 kB / 0.8846 GB, free: 45.91 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002082/2.034, allocations: 3.82 MB / 0.8884 GB, free: 44.09 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007439/2.035, allocations: 0.8295 MB / 0.8892 GB, free: 43.59 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002046/2.035, allocations: 96.69 kB / 0.8893 GB, free: 43.59 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002414/2.035, allocations: 0.501 MB / 0.8898 GB, free: 43.28 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002541/2.038, allocations: 2.017 MB / 0.8917 GB, free: 43.26 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003351/2.041, allocations: 4.179 MB / 0.8958 GB, free: 40.48 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003449/2.044, allocations: 3.068 MB / 0.8988 GB, free: 40.34 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.803e-05/2.044, allocations: 20.5 kB / 0.8988 GB, free: 40.34 MB / 458.7 MB Notification: Performance of matching and sorting (n=603) (initialization): time 0.009203/2.054, allocations: 6.598 MB / 0.9053 GB, free: 40.01 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.254e-05/2.054, allocations: 46.14 kB / 0.9053 GB, free: 40 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001304/2.054, allocations: 72.41 kB / 0.9054 GB, free: 40 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000843/2.055, allocations: 421.8 kB / 0.9058 GB, free: 39.98 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003061/2.058, allocations: 1.066 MB / 0.9068 GB, free: 39.98 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004264/2.062, allocations: 4.166 MB / 0.9109 GB, free: 38.56 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003491/2.066, allocations: 0.6343 MB / 0.9115 GB, free: 38.27 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004655/2.066, allocations: 244.9 kB / 0.9117 GB, free: 38.27 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 338 * 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 (574): * Single equations (assignments): 569 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {(3,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006084/2.072, allocations: 3.371 MB / 0.915 GB, free: 38.11 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007361/2.073, allocations: 279.3 kB / 0.9153 GB, free: 37.96 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005381/2.078, allocations: 3.718 MB / 0.9189 GB, free: 37.77 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003611/2.082, allocations: 2.915 MB / 0.9218 GB, free: 37.66 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-05/2.082, allocations: 6.5 kB / 0.9218 GB, free: 37.66 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.127e-05/2.082, allocations: 14.69 kB / 0.9218 GB, free: 37.66 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01666/2.099, allocations: 10.33 MB / 0.9319 GB, free: 34.06 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/2.099, allocations: 0 / 0.9319 GB, free: 34.06 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001518/2.1, allocations: 417.9 kB / 0.9323 GB, free: 34.04 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006373/2.101, allocations: 319.6 kB / 0.9326 GB, free: 33.96 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001279/2.101, allocations: 54.73 kB / 0.9326 GB, free: 33.92 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003751/2.105, allocations: 3.976 MB / 0.9365 GB, free: 31.41 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/2.105, allocations: 7.344 kB / 0.9365 GB, free: 31.41 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007299/2.112, allocations: 5.298 MB / 0.9417 GB, free: 29.22 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001752/2.114, allocations: 0.6389 MB / 0.9423 GB, free: 28.83 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003261/2.114, allocations: 35.62 kB / 0.9424 GB, free: 28.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/2.115, allocations: 132.9 kB / 0.9425 GB, free: 28.77 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002515/2.116, allocations: 156.1 kB / 0.9426 GB, free: 28.74 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001238/2.116, allocations: 64.7 kB / 0.9427 GB, free: 28.73 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003212/2.119, allocations: 1.937 MB / 0.9446 GB, free: 28 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.31e-07/2.119, allocations: 0 / 0.9446 GB, free: 28 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006376/2.125, allocations: 1.99 MB / 0.9465 GB, free: 27.34 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (currentQuasiRMSSensor.currentSensor[1].pin_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 (221): * Single equations (assignments): 216 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {(3,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00729/2.133, allocations: 6.059 MB / 0.9525 GB, free: 23 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006538/2.139, allocations: 4.731 MB / 0.9571 GB, free: 18.9 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/2.139, allocations: 0 / 0.9571 GB, free: 18.9 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002037/2.141, allocations: 1.795 MB / 0.9588 GB, free: 17.33 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002776/2.144, allocations: 0.6155 MB / 0.9594 GB, free: 16.86 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3751/2.519, allocations: 84.76 MB / 1.042 GB, free: 73.05 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01575/2.535, allocations: 5.795 MB / 1.048 GB, free: 72.18 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.008327/2.543, allocations: 1.688 MB / 1.05 GB, free: 72.15 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007826/2.551, allocations: 2.687 MB / 1.052 GB, free: 72.14 MB / 490.7 MB Notification: Performance of SimCode: time 1.914e-06/2.551, allocations: 0 / 1.052 GB, free: 72.14 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1874/2.739, allocations: 88.05 MB / 1.138 GB, free: 39.98 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000156/2.739, allocations: 219.6 kB / 1.138 GB, free: 39.74 MB / 490.7 MB 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_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_TestSensors.o Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_TestSensors.c In file included from Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_TestSensors.c:7: In file included from ./Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_TestSensors_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_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_TestSensors.c:7: In file included from ./Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_TestSensors_model.h:24: ./Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_TestSensors_functions.h:283:1: error: unknown type name '_omcQComplexOutput_24aronSensor_24powerSensor1_24apparentPower' _omcQComplexOutput_24aronSensor_24powerSensor1_24apparentPower omc__omcQComplexOutput_24aronSensor_24powerSensor1_24apparentPower (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_TestSensors_functions.h:292:1: error: unknown type name '_omcQComplexOutput_24aronSensor_24powerSensor3_24apparentPower' _omcQComplexOutput_24aronSensor_24powerSensor3_24apparentPower omc__omcQComplexOutput_24aronSensor_24powerSensor3_24apparentPower (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_TestSensors_functions.h:301:1: error: unknown type name '_omcQComplexOutput_24currentQuasiRMSSensor_24currentSensor_24i' _omcQComplexOutput_24currentQuasiRMSSensor_24currentSensor_24i omc__omcQComplexOutput_24currentQuasiRMSSensor_24currentSensor_24i (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_TestSensors_functions.h:310:1: error: unknown type name '_omcQComplexOutput_24powerSensor_24powerSensor_24apparentPower' _omcQComplexOutput_24powerSensor_24powerSensor_24apparentPower omc__omcQComplexOutput_24powerSensor_24powerSensor_24apparentPower (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_TestSensors_functions.h:319:1: error: unknown type name '_omcQComplexOutput_24reactivePowerSensor_24powerSensor1_24apparentPower' _omcQComplexOutput_24reactivePowerSensor_24powerSensor1_24apparentPower omc__omcQComplexOutput_24reactivePowerSensor_24powerSensor1_24apparentPower (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_TestSensors_functions.h:328:1: error: unknown type name '_omcQComplexOutput_24reactivePowerSensor_24powerSensor2_24apparentPower' _omcQComplexOutput_24reactivePowerSensor_24powerSensor2_24apparentPower omc__omcQComplexOutput_24reactivePowerSensor_24powerSensor2_24apparentPower (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_TestSensors_functions.h:337:1: error: unknown type name '_omcQComplexOutput_24reactivePowerSensor_24powerSensor3_24apparentPower' _omcQComplexOutput_24reactivePowerSensor_24powerSensor3_24apparentPower omc__omcQComplexOutput_24reactivePowerSensor_24powerSensor3_24apparentPower (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_TestSensors_functions.h:346:1: error: unknown type name '_omcQComplexOutput_24voltageQuasiRMSSensor_24voltageSensor_24v' _omcQComplexOutput_24voltageQuasiRMSSensor_24voltageSensor_24v omc__omcQComplexOutput_24voltageQuasiRMSSensor_24voltageSensor_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 2 warnings and 8 errors generated. make: *** [: Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_TestSensors.o] Error 1