Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.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.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001589/0.001589, allocations: 180.2 kB / 16.39 MB, free: 5.766 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.437/1.437, allocations: 223.2 MB / 240.3 MB, free: 10.15 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.0009431/0.0009431, allocations: 98.28 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003103/0.0003104, allocations: 8 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2821/0.2824, allocations: 50.41 MB / 401.6 MB, free: 32.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1384/0.4209, allocations: 89.32 MB / 490.9 MB, free: 7.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002903/0.4212, allocations: 90.56 kB / 491 MB, free: 7.004 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0575/0.4787, allocations: 22.06 MB / 0.501 GB, free: 0.7539 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4788, allocations: 0 / 0.501 GB, free: 0.7539 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.848e-05/0.4788, allocations: 28 kB / 0.5011 GB, free: 0.7266 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.2162/0.6951, allocations: 1.207 MB / 0.5022 GB, free: 88.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.632e-05/0.6951, allocations: 10.31 kB / 0.5022 GB, free: 88.84 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006959/0.6958, allocations: 163.1 kB / 0.5024 GB, free: 88.8 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002018/0.6979, allocations: 296.4 kB / 0.5027 GB, free: 88.74 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001325/0.6992, allocations: 0.5278 MB / 0.5032 GB, free: 88.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.182e-05/0.6993, allocations: 82.14 kB / 0.5033 GB, free: 88.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002005/0.6995, allocations: 100.5 kB / 0.5034 GB, free: 88.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001985/0.7015, allocations: 1.019 MB / 0.5044 GB, free: 88.41 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.012e-05/0.7016, allocations: 2.75 kB / 0.5044 GB, free: 88.41 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.459e-05/0.7017, allocations: 49.42 kB / 0.5044 GB, free: 88.4 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.553e-05/0.7017, allocations: 24.19 kB / 0.5044 GB, free: 88.4 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002296/0.704, allocations: 0.8763 MB / 0.5053 GB, free: 88.39 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005925/0.7099, allocations: 3.592 MB / 0.5088 GB, free: 87.08 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002098/0.7121, allocations: 1.908 MB / 0.5107 GB, free: 85.81 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.842e-05/0.7122, allocations: 89.02 kB / 0.5108 GB, free: 85.72 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008019/0.713, allocations: 0.4979 MB / 0.5112 GB, free: 85.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 2.805e-06/0.713, allocations: 0 / 0.5112 GB, free: 85.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.00396/0.717, allocations: 1.668 MB / 0.5129 GB, free: 85.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.172e-05/0.7171, allocations: 193.2 kB / 0.5131 GB, free: 85.08 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000416/0.7175, allocations: 401.3 kB / 0.5134 GB, free: 84.97 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.999e-05/0.7176, allocations: 42.23 kB / 0.5135 GB, free: 84.94 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002445/0.7178, allocations: 422.7 kB / 0.5139 GB, free: 84.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001917/0.718, allocations: 270.6 kB / 0.5141 GB, free: 84.54 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.683e-05/0.718, allocations: 17.95 kB / 0.5142 GB, free: 84.54 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.481e-05/0.7182, allocations: 375.6 kB / 0.5145 GB, free: 84.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000529/0.7187, allocations: 272 kB / 0.5148 GB, free: 84.22 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005746/0.7193, allocations: 0.4928 MB / 0.5153 GB, free: 83.95 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005433/0.7198, allocations: 332.4 kB / 0.5156 GB, free: 83.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.7198, allocations: 0 / 0.5156 GB, free: 83.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001665/0.7215, allocations: 1.036 MB / 0.5166 GB, free: 83.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.7215, allocations: 10.66 kB / 0.5166 GB, free: 83.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.363e-05/0.7216, allocations: 7.844 kB / 0.5166 GB, free: 83.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008268/0.7224, allocations: 268.9 kB / 0.5169 GB, free: 83.33 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005474/0.723, allocations: 155.3 kB / 0.517 GB, free: 83.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004331/0.7273, allocations: 4.464 MB / 0.5214 GB, free: 79.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006665/0.728, allocations: 108.1 kB / 0.5215 GB, free: 79.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.193e-05/0.7281, allocations: 33.72 kB / 0.5215 GB, free: 79.68 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.0004539/0.7285, allocations: 241.3 kB / 0.5217 GB, free: 79.49 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001304/0.7287, allocations: 77 kB / 0.5218 GB, free: 79.45 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001774/0.7304, allocations: 0.9881 MB / 0.5228 GB, free: 79.03 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/0.7305, allocations: 6.781 kB / 0.5228 GB, free: 79.03 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.7305, allocations: 3.781 kB / 0.5228 GB, free: 79.03 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.7305, allocations: 3.703 kB / 0.5228 GB, free: 79.03 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002819/0.7333, allocations: 1.951 MB / 0.5247 GB, free: 78.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.7333, allocations: 3.75 kB / 0.5247 GB, free: 78.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004378/0.7338, allocations: 105.7 kB / 0.5248 GB, free: 78.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007427/0.7345, allocations: 265.2 kB / 0.525 GB, free: 77.94 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.698e-05/0.7346, allocations: 15.66 kB / 0.5251 GB, free: 77.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003969/0.7386, allocations: 4.42 MB / 0.5294 GB, free: 74.35 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.7386, allocations: 96 / 0.5294 GB, free: 74.35 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002227/0.7408, allocations: 1.419 MB / 0.5308 GB, free: 73.65 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003462/0.7412, allocations: 217 kB / 0.531 GB, free: 73.48 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000121/0.7413, allocations: 15.91 kB / 0.531 GB, free: 73.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004706/0.7418, allocations: 58.77 kB / 0.531 GB, free: 73.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001648/0.742, allocations: 62.66 kB / 0.5311 GB, free: 73.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.751e-05/0.742, allocations: 33.67 kB / 0.5311 GB, free: 73.43 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003818/0.7424, allocations: 304.3 kB / 0.5314 GB, free: 73.28 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.7424, allocations: 0 / 0.5314 GB, free: 73.28 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001185/0.7436, allocations: 323.1 kB / 0.5317 GB, free: 73.2 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.002619/0.7462, allocations: 2.093 MB / 0.5338 GB, free: 71.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001757/0.748, allocations: 1.095 MB / 0.5348 GB, free: 70.52 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.748, allocations: 0 / 0.5348 GB, free: 70.52 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000985/0.749, allocations: 0.7475 MB / 0.5356 GB, free: 69.81 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005395/0.7496, allocations: 105.5 kB / 0.5357 GB, free: 69.73 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004263/0.7538, allocations: 5.991 MB / 0.5415 GB, free: 63.83 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005167/0.7544, allocations: 1.014 MB / 0.5425 GB, free: 62.91 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004016/0.7548, allocations: 82.59 kB / 0.5426 GB, free: 62.86 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003513/0.7552, allocations: 312.6 kB / 0.5429 GB, free: 62.58 MB / 378.7 MB Notification: Performance of SimCode: time 1.433e-06/0.7552, allocations: 0 / 0.5429 GB, free: 62.58 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03471/0.7899, allocations: 17.07 MB / 0.5596 GB, free: 48.61 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002231/0.7902, allocations: 223.9 kB / 0.5598 GB, free: 48.37 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_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier.o Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier.c In file included from Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier.c:7: In file included from ./Modelica_4_0_0_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_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier.c:7: In file included from ./Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier_model.h:24: ./Modelica_4_0_0_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_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier.o] Error 1