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: translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|voltageQS.pin_p.reference.gamma|iAC.mean1.y|iAC.mean2.y|iDC2.mean.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier") translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|voltageQS.pin_p.reference.gamma|iAC.mean1.y|iAC.mean2.y|iDC2.mean.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001466/0.001466, allocations: 180.2 kB / 16.38 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.411/1.411, allocations: 223.2 MB / 240.3 MB, free: 11.86 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.000921/0.000921, allocations: 98.8 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002322/0.0002323, allocations: 11.94 kB / 351.1 MB, free: 15.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2373/0.2375, allocations: 50.39 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1042/0.3418, allocations: 89.32 MB / 490.8 MB, free: 7.137 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002165/0.342, allocations: 93.45 kB / 490.9 MB, free: 7.047 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05309/0.3951, allocations: 22.06 MB / 0.5009 GB, free: 0.7969 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3951, allocations: 0 / 0.5009 GB, free: 0.7969 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.949e-05/0.3952, allocations: 28 kB / 0.501 GB, free: 0.7695 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.1816/0.5768, allocations: 1.203 MB / 0.5021 GB, free: 88.85 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.5769, allocations: 10.69 kB / 0.5022 GB, free: 88.85 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002054/0.579, allocations: 295.5 kB / 0.5024 GB, free: 88.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001247/0.5802, allocations: 0.5224 MB / 0.5029 GB, free: 88.57 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001002/0.5803, allocations: 79.5 kB / 0.503 GB, free: 88.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000318/0.5807, allocations: 104.3 kB / 0.5031 GB, free: 88.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002843/0.5835, allocations: 1.013 MB / 0.5041 GB, free: 88.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.67e-05/0.5836, allocations: 6.875 kB / 0.5041 GB, free: 88.46 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001204/0.5837, allocations: 45.64 kB / 0.5042 GB, free: 88.45 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.416e-05/0.5837, allocations: 27.75 kB / 0.5042 GB, free: 88.45 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00202/0.5858, allocations: 0.8723 MB / 0.505 GB, free: 88.44 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005223/0.591, allocations: 3.588 MB / 0.5085 GB, free: 87.14 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001826/0.5928, allocations: 1.902 MB / 0.5104 GB, free: 85.87 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.714e-05/0.5929, allocations: 92.31 kB / 0.5105 GB, free: 85.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007513/0.5937, allocations: 0.4994 MB / 0.511 GB, free: 85.66 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 4.048e-06/0.5937, allocations: 0 / 0.511 GB, free: 85.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.003815/0.5975, allocations: 1.676 MB / 0.5126 GB, free: 85.36 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.586e-05/0.5976, allocations: 194.1 kB / 0.5128 GB, free: 85.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004242/0.598, allocations: 403.2 kB / 0.5132 GB, free: 85.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.724e-05/0.5981, allocations: 43.27 kB / 0.5132 GB, free: 84.99 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001969/0.5983, allocations: 415.5 kB / 0.5136 GB, free: 84.77 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000174/0.5985, allocations: 269.6 kB / 0.5139 GB, free: 84.6 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.664e-05/0.5985, allocations: 18.38 kB / 0.5139 GB, free: 84.6 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.182e-05/0.5986, allocations: 368.1 kB / 0.5142 GB, free: 84.29 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004752/0.5991, allocations: 283.2 kB / 0.5145 GB, free: 84.29 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005574/0.5997, allocations: 496.1 kB / 0.515 GB, free: 84.04 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005371/0.6002, allocations: 334.1 kB / 0.5153 GB, free: 83.99 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.6002, allocations: 0 / 0.5153 GB, free: 83.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001672/0.6019, allocations: 1.04 MB / 0.5163 GB, free: 83.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.6019, allocations: 7.656 kB / 0.5163 GB, free: 83.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.602, allocations: 4.156 kB / 0.5163 GB, free: 83.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007449/0.6027, allocations: 274.1 kB / 0.5166 GB, free: 83.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005245/0.6033, allocations: 145.2 kB / 0.5167 GB, free: 83.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003958/0.6072, allocations: 4.465 MB / 0.5211 GB, free: 79.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000593/0.6078, allocations: 111.1 kB / 0.5212 GB, free: 79.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.009e-05/0.6079, allocations: 33.47 kB / 0.5212 GB, free: 79.85 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.0003432/0.6082, allocations: 241.9 kB / 0.5215 GB, free: 79.67 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.576e-05/0.6083, allocations: 76.09 kB / 0.5215 GB, free: 79.63 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001673/0.61, allocations: 0.984 MB / 0.5225 GB, free: 79.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.61, allocations: 7.031 kB / 0.5225 GB, free: 79.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.61, allocations: 2.188 kB / 0.5225 GB, free: 79.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/0.6101, allocations: 3.703 kB / 0.5225 GB, free: 79.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002468/0.6125, allocations: 1.949 MB / 0.5244 GB, free: 78.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.6125, allocations: 0 / 0.5244 GB, free: 78.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004264/0.613, allocations: 102.1 kB / 0.5245 GB, free: 78.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006622/0.6136, allocations: 263 kB / 0.5248 GB, free: 78.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.675e-05/0.6137, allocations: 21.38 kB / 0.5248 GB, free: 78.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00365/0.6174, allocations: 4.437 MB / 0.5291 GB, free: 74.51 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.6174, allocations: 0 / 0.5291 GB, free: 74.51 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002029/0.6194, allocations: 1.413 MB / 0.5305 GB, free: 73.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000224/0.6197, allocations: 217.8 kB / 0.5307 GB, free: 73.64 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.386e-05/0.6197, allocations: 21.31 kB / 0.5307 GB, free: 73.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004279/0.6202, allocations: 43.56 kB / 0.5308 GB, free: 73.62 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001306/0.6203, allocations: 76.92 kB / 0.5308 GB, free: 73.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.186e-05/0.6204, allocations: 24.62 kB / 0.5309 GB, free: 73.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000255/0.6206, allocations: 307.4 kB / 0.5312 GB, free: 73.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6206, allocations: 1.156 kB / 0.5312 GB, free: 73.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009489/0.6216, allocations: 322.8 kB / 0.5315 GB, free: 73.36 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.0002665/0.6219, allocations: 163.5 kB / 0.5316 GB, free: 73.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001535/0.6234, allocations: 1.097 MB / 0.5327 GB, free: 72.58 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.6234, allocations: 8.375 kB / 0.5327 GB, free: 72.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008604/0.6243, allocations: 0.7454 MB / 0.5334 GB, free: 71.87 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004326/0.6247, allocations: 106.8 kB / 0.5335 GB, free: 71.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00224/0.627, allocations: 1.983 MB / 0.5355 GB, free: 69.95 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003328/0.6273, allocations: 1.01 MB / 0.5365 GB, free: 69.04 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003069/0.6276, allocations: 82.97 kB / 0.5365 GB, free: 68.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001164/0.6278, allocations: 47 kB / 0.5366 GB, free: 68.94 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.6278, allocations: 4 kB / 0.5366 GB, free: 68.94 MB / 378.7 MB Notification: Performance of Templates: time 0.01468/0.6425, allocations: 11.08 MB / 0.5474 GB, free: 61 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.makefile make -j1 -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.makefile clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=4 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -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: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); ^ 1 error generated. make: *** [: Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.o] Error 1