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.0008656/0.0008655, allocations: 176.4 kB / 17.4 MB, free: 4.422 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.308/1.308, allocations: 223.3 MB / 241.4 MB, free: 11.7 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.0007639/0.0007639, allocations: 100.2 kB / 292.6 MB, free: 10.78 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002941/0.0002942, allocations: 15.94 kB / 352.4 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2108/0.2111, allocations: 50.4 MB / 402.8 MB, free: 32.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1012/0.3124, allocations: 89.41 MB / 492.2 MB, free: 6.922 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002106/0.3126, allocations: 83.95 kB / 492.2 MB, free: 6.84 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05265/0.3653, allocations: 22.05 MB / 0.5022 GB, free: 0.6016 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3653, allocations: 4 kB / 0.5022 GB, free: 0.5977 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.888e-05/0.3654, allocations: 20 kB / 0.5023 GB, free: 0.5781 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.1611/0.5264, allocations: 1.19 MB / 0.5034 GB, free: 88.92 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.414e-05/0.5265, allocations: 10.27 kB / 0.5034 GB, free: 88.92 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001773/0.5283, allocations: 299.5 kB / 0.5037 GB, free: 88.87 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007697/0.5291, allocations: 0.5427 MB / 0.5043 GB, free: 88.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.262e-05/0.5291, allocations: 78.12 kB / 0.5043 GB, free: 88.62 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001448/0.5293, allocations: 99.69 kB / 0.5044 GB, free: 88.62 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001667/0.531, allocations: 1.025 MB / 0.5054 GB, free: 88.52 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.127e-05/0.531, allocations: 5.281 kB / 0.5054 GB, free: 88.51 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.278e-05/0.5311, allocations: 47.72 kB / 0.5055 GB, free: 88.51 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.423e-05/0.5311, allocations: 25.34 kB / 0.5055 GB, free: 88.51 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00168/0.5328, allocations: 0.8719 MB / 0.5064 GB, free: 88.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004336/0.5372, allocations: 3.588 MB / 0.5099 GB, free: 87.18 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00163/0.5388, allocations: 1.903 MB / 0.5117 GB, free: 85.91 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007234/0.5395, allocations: 460 kB / 0.5122 GB, free: 85.89 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.772e-05/0.5396, allocations: 98.77 kB / 0.5122 GB, free: 85.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006674/0.5403, allocations: 0.4948 MB / 0.5127 GB, free: 85.69 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 2.515e-06/0.5403, allocations: 0 / 0.5127 GB, free: 85.69 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.00364/0.544, allocations: 1.706 MB / 0.5144 GB, free: 85.36 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.136e-05/0.544, allocations: 197.2 kB / 0.5146 GB, free: 85.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003737/0.5444, allocations: 452.8 kB / 0.515 GB, free: 85.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.512e-05/0.5445, allocations: 45.48 kB / 0.5151 GB, free: 84.99 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001625/0.5446, allocations: 410.6 kB / 0.5155 GB, free: 84.76 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001312/0.5448, allocations: 276.2 kB / 0.5157 GB, free: 84.59 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.39e-05/0.5448, allocations: 14.78 kB / 0.5157 GB, free: 84.59 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.332e-05/0.5449, allocations: 379.2 kB / 0.5161 GB, free: 84.27 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000455/0.5453, allocations: 279.9 kB / 0.5164 GB, free: 84.27 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005189/0.5459, allocations: 493.7 kB / 0.5168 GB, free: 83.95 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009648/0.5468, allocations: 0.7571 MB / 0.5176 GB, free: 83.49 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.5469, allocations: 0 / 0.5176 GB, free: 83.49 MB / 378.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001567/0.5484, allocations: 1.05 MB / 0.5186 GB, free: 83.08 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.5485, allocations: 11.91 kB / 0.5186 GB, free: 83.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.5485, allocations: 7.203 kB / 0.5186 GB, free: 83.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006978/0.5492, allocations: 260.1 kB / 0.5189 GB, free: 83 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004993/0.5497, allocations: 150.3 kB / 0.519 GB, free: 82.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003745/0.5535, allocations: 4.395 MB / 0.5233 GB, free: 79.44 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005424/0.554, allocations: 108 kB / 0.5234 GB, free: 79.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.755e-05/0.5541, allocations: 30.75 kB / 0.5234 GB, free: 79.38 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.0003304/0.5544, allocations: 247.7 kB / 0.5237 GB, free: 79.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.855e-05/0.5545, allocations: 66.09 kB / 0.5237 GB, free: 79.14 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00164/0.5561, allocations: 0.9892 MB / 0.5247 GB, free: 78.72 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.022e-06/0.5562, allocations: 6.875 kB / 0.5247 GB, free: 78.72 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-06/0.5562, allocations: 7.938 kB / 0.5247 GB, free: 78.71 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.5562, allocations: 3.891 kB / 0.5247 GB, free: 78.71 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002429/0.5586, allocations: 1.957 MB / 0.5266 GB, free: 77.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.5586, allocations: 0 / 0.5266 GB, free: 77.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003954/0.559, allocations: 103.8 kB / 0.5267 GB, free: 77.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006901/0.5597, allocations: 260.1 kB / 0.527 GB, free: 77.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.575e-05/0.5598, allocations: 19.73 kB / 0.527 GB, free: 77.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003796/0.5636, allocations: 4.371 MB / 0.5313 GB, free: 74.04 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.5636, allocations: 0 / 0.5313 GB, free: 74.04 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002002/0.5656, allocations: 1.4 MB / 0.5326 GB, free: 73.36 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002265/0.5659, allocations: 222.2 kB / 0.5328 GB, free: 73.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.319e-05/0.566, allocations: 15.38 kB / 0.5329 GB, free: 73.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004085/0.5664, allocations: 47.66 kB / 0.5329 GB, free: 73.15 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001313/0.5665, allocations: 71.64 kB / 0.533 GB, free: 73.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-05/0.5666, allocations: 24.59 kB / 0.533 GB, free: 73.14 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002654/0.5668, allocations: 313.5 kB / 0.5333 GB, free: 72.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 2e-07/0.5668, allocations: 0 / 0.5333 GB, free: 72.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009173/0.5678, allocations: 317.2 kB / 0.5336 GB, free: 72.79 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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.0002431/0.568, allocations: 174.3 kB / 0.5338 GB, free: 72.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00157/0.5696, allocations: 1.102 MB / 0.5348 GB, free: 71.62 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.5696, allocations: 2.156 kB / 0.5348 GB, free: 71.62 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008858/0.5705, allocations: 0.748 MB / 0.5356 GB, free: 70.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006158/0.5711, allocations: 106.6 kB / 0.5357 GB, free: 70.82 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002284/0.5734, allocations: 2.002 MB / 0.5376 GB, free: 68.96 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000326/0.5738, allocations: 0.9903 MB / 0.5386 GB, free: 68.05 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003205/0.5741, allocations: 83.3 kB / 0.5387 GB, free: 67.99 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/0.5742, allocations: 50.53 kB / 0.5387 GB, free: 67.95 MB / 378.7 MB Notification: Performance of SimCode: time 3.91e-07/0.5742, allocations: 0 / 0.5387 GB, free: 67.95 MB / 378.7 MB Notification: Performance of Templates: time 0.01497/0.5892, allocations: 11.19 MB / 0.5496 GB, free: 59.8 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 -Wno-parentheses-equality -Os -march=native -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -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:26: ./Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_functions.h:225: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