Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.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.Rectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002459/0.002459, allocations: 199 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.327/1.327, allocations: 227.2 MB / 245 MB, free: 7.617 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009142/0.0009139, allocations: 93.34 kB / 297.2 MB, free: 6.184 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002428/0.0002428, allocations: 7.984 kB / 358 MB, free: 9.426 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2183/0.2186, allocations: 51.47 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1335/0.3522, allocations: 90.21 MB / 499.7 MB, free: 376 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002469/0.3525, allocations: 81.7 kB / 499.8 MB, free: 296 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2744/0.6269, allocations: 22.82 MB / 0.5104 GB, free: 87.23 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.6269, allocations: 3.688 kB / 0.5104 GB, free: 87.23 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.896e-05/0.627, allocations: 18.88 kB / 0.5104 GB, free: 87.23 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: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.002853/0.6299, allocations: 1.23 MB / 0.5116 GB, free: 86.53 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/0.6299, allocations: 7.312 kB / 0.5116 GB, free: 86.53 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002413/0.6302, allocations: 155.6 kB / 0.5117 GB, free: 86.48 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001805/0.632, allocations: 348 kB / 0.5121 GB, free: 86.42 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008062/0.6328, allocations: 0.5351 MB / 0.5126 GB, free: 86.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.317e-05/0.6329, allocations: 81.33 kB / 0.5127 GB, free: 86.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001182/0.633, allocations: 99.94 kB / 0.5128 GB, free: 86.14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001519/0.6345, allocations: 1.012 MB / 0.5138 GB, free: 86.03 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.028e-05/0.6346, allocations: 19.34 kB / 0.5138 GB, free: 86.02 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.986e-05/0.6347, allocations: 40.06 kB / 0.5138 GB, free: 86.02 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.811e-05/0.6347, allocations: 23.5 kB / 0.5138 GB, free: 86.02 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001395/0.6361, allocations: 0.8797 MB / 0.5147 GB, free: 85.99 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00467/0.6408, allocations: 3.688 MB / 0.5183 GB, free: 84.01 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001861/0.6427, allocations: 1.896 MB / 0.5201 GB, free: 82.41 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001316/0.6428, allocations: 179.4 kB / 0.5203 GB, free: 82.22 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007573/0.6436, allocations: 0.4938 MB / 0.5208 GB, free: 81.98 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 2.354e-06/0.6436, allocations: 0 / 0.5208 GB, free: 81.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.003913/0.6475, allocations: 1.686 MB / 0.5224 GB, free: 81.29 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.135e-05/0.6476, allocations: 187.9 kB / 0.5226 GB, free: 81.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004515/0.6481, allocations: 412.2 kB / 0.523 GB, free: 80.87 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.842e-05/0.6481, allocations: 45.67 kB / 0.5231 GB, free: 80.82 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000226/0.6483, allocations: 420.2 kB / 0.5235 GB, free: 80.49 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001656/0.6485, allocations: 277.8 kB / 0.5237 GB, free: 80.28 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.663e-05/0.6486, allocations: 14.62 kB / 0.5237 GB, free: 80.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.951e-05/0.6487, allocations: 380.6 kB / 0.5241 GB, free: 79.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004742/0.6491, allocations: 279.3 kB / 0.5244 GB, free: 79.83 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005724/0.6497, allocations: 490.9 kB / 0.5248 GB, free: 79.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005384/0.6503, allocations: 342.2 kB / 0.5252 GB, free: 79.32 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/0.6503, allocations: 3.219 kB / 0.5252 GB, free: 79.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.00168/0.652, allocations: 1.034 MB / 0.5262 GB, free: 78.88 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.24e-05/0.652, allocations: 7.844 kB / 0.5262 GB, free: 78.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.789e-06/0.652, allocations: 3.844 kB / 0.5262 GB, free: 78.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008064/0.6528, allocations: 272.8 kB / 0.5264 GB, free: 78.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005446/0.6534, allocations: 156.3 kB / 0.5266 GB, free: 78.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004302/0.6577, allocations: 4.476 MB / 0.531 GB, free: 75.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006837/0.6584, allocations: 112.4 kB / 0.5311 GB, free: 75.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.233e-05/0.6585, allocations: 34.62 kB / 0.5311 GB, free: 75.11 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.iDC2.mean.y_last,iDC2.mean.y_last,$PRE.iAC.mean1.y_last,iAC.mean1.y_last,$PRE.iAC.mean2.y_last,iAC.mean2.y_last,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 80 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 17,2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0004428/0.6589, allocations: 241.5 kB / 0.5313 GB, free: 74.91 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.216e-05/0.659, allocations: 69.16 kB / 0.5314 GB, free: 74.88 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001738/0.6608, allocations: 0.9842 MB / 0.5324 GB, free: 74.45 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.6608, allocations: 11.19 kB / 0.5324 GB, free: 74.45 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.6608, allocations: 3.953 kB / 0.5324 GB, free: 74.44 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.707e-06/0.6608, allocations: 2.438 kB / 0.5324 GB, free: 74.44 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002676/0.6635, allocations: 1.956 MB / 0.5343 GB, free: 72.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.6635, allocations: 3.938 kB / 0.5343 GB, free: 72.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004276/0.6639, allocations: 105.1 kB / 0.5344 GB, free: 72.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007052/0.6647, allocations: 254.2 kB / 0.5346 GB, free: 72.47 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.177e-05/0.6647, allocations: 23.47 kB / 0.5347 GB, free: 72.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003852/0.6686, allocations: 4.438 MB / 0.539 GB, free: 68 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.6686, allocations: 0 / 0.539 GB, free: 68 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002137/0.6707, allocations: 1.423 MB / 0.5404 GB, free: 66.67 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002767/0.671, allocations: 207.2 kB / 0.5406 GB, free: 66.47 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.598e-05/0.6711, allocations: 20 kB / 0.5406 GB, free: 66.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004416/0.6716, allocations: 47.55 kB / 0.5406 GB, free: 66.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001441/0.6717, allocations: 68.47 kB / 0.5407 GB, free: 66.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.221e-05/0.6718, allocations: 27.66 kB / 0.5407 GB, free: 66.35 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003084/0.6721, allocations: 315.6 kB / 0.541 GB, free: 66.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6721, allocations: 4 kB / 0.541 GB, free: 66.08 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001037/0.6731, allocations: 322.1 kB / 0.5413 GB, free: 65.77 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (currentSensorQS.pin_p.reference.gamma,iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,iAC.mean1.y_last,iAC.mean2.y_last,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y_last) * Number of discrete states: 3 (iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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: 0 * Non-linear torn systems: 2 {2 8,4 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.002381/0.6755, allocations: 2.101 MB / 0.5434 GB, free: 63.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001732/0.6773, allocations: 1.107 MB / 0.5445 GB, free: 62.73 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.6773, allocations: 0 / 0.5445 GB, free: 62.73 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009427/0.6782, allocations: 0.7313 MB / 0.5452 GB, free: 62.04 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005111/0.6788, allocations: 104.8 kB / 0.5453 GB, free: 61.95 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003608/0.6824, allocations: 6.016 MB / 0.5512 GB, free: 56.02 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003795/0.6828, allocations: 1.025 MB / 0.5522 GB, free: 55.09 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003366/0.6831, allocations: 79.17 kB / 0.5522 GB, free: 55.03 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003058/0.6834, allocations: 319.3 kB / 0.5526 GB, free: 54.72 MB / 378.7 MB Notification: Performance of SimCode: time 8.02e-07/0.6835, allocations: 0 / 0.5526 GB, free: 54.72 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03015/0.7136, allocations: 17.35 MB / 0.5695 GB, free: 37.66 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001373/0.7138, allocations: 227.4 kB / 0.5697 GB, free: 37.42 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_Rectifier.o Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier.c In file included from Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier.c:7: In file included from ./Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier_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_Rectifier.c:7: In file included from ./Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier_model.h:24: ./Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier_functions.h:239:1: error: unknown type name '_omcQComplexOutput_24currentSensorQS_24i' _omcQComplexOutput_24currentSensorQS_24i omc__omcQComplexOutput_24currentSensorQS_24i (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 2 warnings and 1 error generated. make: *** [: Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier.o] Error 1