Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesBode.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.SinglePhase.Examples.SeriesBode,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesBode",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesBode,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesBode",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001294/0.001294, allocations: 198.4 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 227.2 MB / 245 MB, free: 5.762 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008975/0.0008975, allocations: 98.92 kB / 297.2 MB, free: 5.945 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002324/0.0002324, allocations: 7.984 kB / 358 MB, free: 9.184 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2451/0.2453, allocations: 51.49 MB / 409.5 MB, free: 26.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1018/0.3472, allocations: 85.3 MB / 494.8 MB, free: 5.238 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002096/0.3474, allocations: 79.95 kB / 494.9 MB, free: 5.16 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0391/0.3865, allocations: 17.21 MB / 0.5001 GB, free: 3.789 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.3865, allocations: 0 / 0.5001 GB, free: 3.789 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.169e-05/0.3866, allocations: 8 kB / 0.5001 GB, free: 3.781 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.002052/0.3886, allocations: 0.8192 MB / 0.5009 GB, free: 2.914 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.3887, allocations: 12.03 kB / 0.5009 GB, free: 2.902 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002373/0.3889, allocations: 103.8 kB / 0.501 GB, free: 2.789 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002026/0.391, allocations: 307 kB / 0.5013 GB, free: 2.488 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005223/0.3915, allocations: 347.2 kB / 0.5016 GB, free: 2.109 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.188e-05/0.3916, allocations: 49.3 kB / 0.5017 GB, free: 2.062 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.813e-05/0.3917, allocations: 63.94 kB / 0.5017 GB, free: 2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001263/0.3929, allocations: 0.7291 MB / 0.5025 GB, free: 1.258 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.418e-05/0.393, allocations: 0 / 0.5025 GB, free: 1.258 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.896e-05/0.393, allocations: 24 kB / 0.5025 GB, free: 1.234 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.862e-05/0.3931, allocations: 19.98 kB / 0.5025 GB, free: 1.215 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001387/0.3945, allocations: 0.743 MB / 0.5032 GB, free: 480 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.184/0.5785, allocations: 2.501 MB / 0.5057 GB, free: 87.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001415/0.58, allocations: 1.264 MB / 0.5069 GB, free: 86.33 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001121/0.5801, allocations: 180.4 kB / 0.5071 GB, free: 86.14 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.942e-05/0.5801, allocations: 42.22 kB / 0.5071 GB, free: 86.1 MB / 378.7 MB Notification: Performance of pre-optimization done (n=48): time 2.665e-06/0.5801, allocations: 0 / 0.5071 GB, free: 86.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.00184/0.582, allocations: 1.05 MB / 0.5081 GB, free: 85.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.345e-05/0.582, allocations: 92.06 kB / 0.5082 GB, free: 85.65 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002141/0.5822, allocations: 235.9 kB / 0.5085 GB, free: 85.55 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.501e-05/0.5823, allocations: 34.61 kB / 0.5085 GB, free: 85.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001114/0.5824, allocations: 246 kB / 0.5087 GB, free: 85.38 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001114/0.5825, allocations: 163.1 kB / 0.5089 GB, free: 85.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.684e-05/0.5825, allocations: 9.281 kB / 0.5089 GB, free: 85.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.42e-05/0.5826, allocations: 345.7 kB / 0.5092 GB, free: 84.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000406/0.583, allocations: 218.3 kB / 0.5094 GB, free: 84.98 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004716/0.5835, allocations: 342.8 kB / 0.5097 GB, free: 84.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004237/0.5839, allocations: 246.2 kB / 0.51 GB, free: 84.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.584, allocations: 0 / 0.51 GB, free: 84.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001265/0.5852, allocations: 0.6749 MB / 0.5106 GB, free: 84.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002201/0.5855, allocations: 1.402 MB / 0.512 GB, free: 83.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.5855, allocations: 3.375 kB / 0.512 GB, free: 83.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002349/0.5857, allocations: 57.56 kB / 0.5121 GB, free: 83.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005073/0.5862, allocations: 112.4 kB / 0.5122 GB, free: 83.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001242/0.5875, allocations: 1.608 MB / 0.5137 GB, free: 81.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003521/0.5878, allocations: 67.02 kB / 0.5138 GB, free: 81.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.107e-05/0.5879, allocations: 25.7 kB / 0.5138 GB, free: 81.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.113e-06/0.5879, allocations: 4.469 kB / 0.5138 GB, free: 81.95 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001012/0.5889, allocations: 0.5874 MB / 0.5144 GB, free: 81.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.5889, allocations: 3.656 kB / 0.5144 GB, free: 81.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001286/0.5891, allocations: 52.25 kB / 0.5145 GB, free: 81.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003826/0.5895, allocations: 111.3 kB / 0.5146 GB, free: 81.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008284/0.5903, allocations: 1.517 MB / 0.5161 GB, free: 80.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003011/0.5906, allocations: 52.8 kB / 0.5161 GB, free: 80.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.604e-05/0.5907, allocations: 28.55 kB / 0.5161 GB, free: 80.64 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (55): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000251/0.5909, allocations: 253.8 kB / 0.5164 GB, free: 80.45 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.213e-05/0.591, allocations: 38.42 kB / 0.5164 GB, free: 80.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001126/0.5921, allocations: 0.6519 MB / 0.517 GB, free: 80.36 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.724e-06/0.5922, allocations: 6.719 kB / 0.5171 GB, free: 80.36 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.5922, allocations: 2.438 kB / 0.5171 GB, free: 80.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.5922, allocations: 7.469 kB / 0.5171 GB, free: 80.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001675/0.5939, allocations: 1.319 MB / 0.5184 GB, free: 79.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.5939, allocations: 3.75 kB / 0.5184 GB, free: 79.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003653/0.5942, allocations: 91.95 kB / 0.5184 GB, free: 79.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00015/0.5944, allocations: 50.67 kB / 0.5185 GB, free: 79.93 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.491e-05/0.5944, allocations: 15.83 kB / 0.5185 GB, free: 79.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009422/0.5954, allocations: 1.601 MB / 0.5201 GB, free: 78.42 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.5954, allocations: 0 / 0.5201 GB, free: 78.42 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001434/0.5969, allocations: 0.9865 MB / 0.521 GB, free: 77.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001528/0.597, allocations: 162.2 kB / 0.5212 GB, free: 77.78 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.648e-05/0.5971, allocations: 8.062 kB / 0.5212 GB, free: 77.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00029/0.5974, allocations: 31.38 kB / 0.5212 GB, free: 77.77 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.022e-05/0.5975, allocations: 38.23 kB / 0.5213 GB, free: 77.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.171e-05/0.5975, allocations: 17.92 kB / 0.5213 GB, free: 77.76 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001452/0.5976, allocations: 191.1 kB / 0.5215 GB, free: 77.64 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5977, allocations: 0 / 0.5215 GB, free: 77.64 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008702/0.5985, allocations: 269.4 kB / 0.5217 GB, free: 77.57 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSensor.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 (44): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001714/0.6003, allocations: 1.592 MB / 0.5233 GB, free: 76.52 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00174/0.602, allocations: 1.109 MB / 0.5244 GB, free: 75.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.602, allocations: 0 / 0.5244 GB, free: 75.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005233/0.6026, allocations: 413.4 kB / 0.5248 GB, free: 75.74 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002867/0.6028, allocations: 47.44 kB / 0.5248 GB, free: 75.71 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003868/0.6067, allocations: 5.017 MB / 0.5297 GB, free: 71.89 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000235/0.607, allocations: 0.8424 MB / 0.5305 GB, free: 71.18 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001053/0.608, allocations: 1.07 MB / 0.5316 GB, free: 71.15 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002203/0.6083, allocations: 154.6 kB / 0.5317 GB, free: 71.04 MB / 378.7 MB Notification: Performance of SimCode: time 7.01e-07/0.6083, allocations: 0 / 0.5317 GB, free: 71.04 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02143/0.6297, allocations: 9.157 MB / 0.5407 GB, free: 66.69 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001335/0.6299, allocations: 215.8 kB / 0.5409 GB, free: 66.45 MB / 378.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_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesBode.o Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesBode.c In file included from Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesBode.c:7: In file included from ./Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesBode_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_SinglePhase_Examples_SeriesBode.c:7: In file included from ./Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesBode_model.h:24: ./Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesBode_functions.h:253:1: error: unknown type name '_omcQComplexOutput_24currentSensor_24i' _omcQComplexOutput_24currentSensor_24i omc__omcQComplexOutput_24currentSensor_24i (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesBode_functions.h:262:1: error: unknown type name '_omcQComplexOutput_24voltageSensor_24v' _omcQComplexOutput_24voltageSensor_24v omc__omcQComplexOutput_24voltageSensor_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 2 warnings and 2 errors generated. make: *** [: Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesBode.o] Error 1