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: 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_trunk_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_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001328/0.001328, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.187/1.187, allocations: 227.2 MB / 245 MB, free: 7.637 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009091/0.0009089, allocations: 105.5 kB / 297.3 MB, free: 6.184 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002032/0.0002032, allocations: 4 kB / 357.9 MB, free: 9.527 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1957/0.1959, allocations: 51.48 MB / 409.4 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1044/0.3003, allocations: 90.21 MB / 499.6 MB, free: 388 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002493/0.3006, allocations: 87.95 kB / 499.7 MB, free: 300 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2271/0.5277, allocations: 22.81 MB / 0.5103 GB, free: 87.25 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.5277, allocations: 1.375 kB / 0.5103 GB, free: 87.25 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.595e-05/0.5278, allocations: 27.12 kB / 0.5103 GB, free: 87.24 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.002613/0.5304, allocations: 1.222 MB / 0.5115 GB, free: 86.54 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.12e-05/0.5305, allocations: 7.844 kB / 0.5115 GB, free: 86.54 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001845/0.5323, allocations: 340.7 kB / 0.5118 GB, free: 86.48 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008687/0.5332, allocations: 0.5393 MB / 0.5124 GB, free: 86.2 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.352e-05/0.5333, allocations: 79.3 kB / 0.5124 GB, free: 86.2 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001428/0.5334, allocations: 102.1 kB / 0.5125 GB, free: 86.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001494/0.5349, allocations: 1.016 MB / 0.5135 GB, free: 86.08 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.957e-05/0.535, allocations: 0 / 0.5135 GB, free: 86.08 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.01e-05/0.535, allocations: 45.41 kB / 0.5136 GB, free: 86.08 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.367e-05/0.5351, allocations: 23.09 kB / 0.5136 GB, free: 86.08 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001374/0.5364, allocations: 0.8758 MB / 0.5144 GB, free: 86.06 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004163/0.5406, allocations: 3.665 MB / 0.518 GB, free: 84.14 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00162/0.5422, allocations: 1.907 MB / 0.5199 GB, free: 82.53 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000111/0.5424, allocations: 185.8 kB / 0.5201 GB, free: 82.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006553/0.543, allocations: 0.4919 MB / 0.5205 GB, free: 82.1 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 2.044e-06/0.543, allocations: 0 / 0.5205 GB, free: 82.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.003558/0.5466, allocations: 1.682 MB / 0.5222 GB, free: 81.41 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.59e-05/0.5467, allocations: 188.1 kB / 0.5224 GB, free: 81.19 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003829/0.5471, allocations: 416.2 kB / 0.5228 GB, free: 80.98 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.813e-05/0.5471, allocations: 45.45 kB / 0.5228 GB, free: 80.94 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001716/0.5473, allocations: 415.3 kB / 0.5232 GB, free: 80.62 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001439/0.5475, allocations: 282.9 kB / 0.5235 GB, free: 80.4 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.424e-05/0.5475, allocations: 19.78 kB / 0.5235 GB, free: 80.39 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.825e-05/0.5476, allocations: 376.6 kB / 0.5238 GB, free: 80.04 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004525/0.548, allocations: 277.8 kB / 0.5241 GB, free: 79.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005616/0.5486, allocations: 491.5 kB / 0.5246 GB, free: 79.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005461/0.5492, allocations: 341.9 kB / 0.5249 GB, free: 79.44 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.5492, allocations: 0 / 0.5249 GB, free: 79.44 MB / 378.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001601/0.5508, allocations: 1.042 MB / 0.5259 GB, free: 79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.5508, allocations: 10.05 kB / 0.5259 GB, free: 79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.5508, allocations: 3.781 kB / 0.5259 GB, free: 79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007279/0.5516, allocations: 275.1 kB / 0.5262 GB, free: 78.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005054/0.5521, allocations: 148.8 kB / 0.5263 GB, free: 78.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003894/0.556, allocations: 4.457 MB / 0.5307 GB, free: 75.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006075/0.5566, allocations: 110.7 kB / 0.5308 GB, free: 75.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.159e-05/0.5567, allocations: 33.41 kB / 0.5308 GB, free: 75.23 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.0003506/0.557, allocations: 245 kB / 0.5311 GB, free: 75.04 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001008/0.5571, allocations: 71.78 kB / 0.5311 GB, free: 75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001603/0.5588, allocations: 0.9864 MB / 0.5321 GB, free: 74.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.5588, allocations: 7.219 kB / 0.5321 GB, free: 74.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.5588, allocations: 7.312 kB / 0.5321 GB, free: 74.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.5588, allocations: 6.672 kB / 0.5321 GB, free: 74.56 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002373/0.5612, allocations: 1.953 MB / 0.534 GB, free: 72.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.5612, allocations: 0 / 0.534 GB, free: 72.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004169/0.5616, allocations: 106.4 kB / 0.5341 GB, free: 72.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006271/0.5622, allocations: 265.5 kB / 0.5344 GB, free: 72.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.747e-05/0.5623, allocations: 18.91 kB / 0.5344 GB, free: 72.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003459/0.5658, allocations: 4.436 MB / 0.5387 GB, free: 68.16 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.5658, allocations: 0 / 0.5387 GB, free: 68.16 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001859/0.5677, allocations: 1.406 MB / 0.5401 GB, free: 66.84 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002177/0.5679, allocations: 217.1 kB / 0.5403 GB, free: 66.63 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.34e-05/0.568, allocations: 20 kB / 0.5403 GB, free: 66.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004335/0.5684, allocations: 49.7 kB / 0.5404 GB, free: 66.57 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001207/0.5685, allocations: 69.89 kB / 0.5404 GB, free: 66.53 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.926e-05/0.5686, allocations: 23.7 kB / 0.5405 GB, free: 66.51 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000252/0.5688, allocations: 322.7 kB / 0.5408 GB, free: 66.23 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5689, allocations: 0 / 0.5408 GB, free: 66.23 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008363/0.5697, allocations: 318.4 kB / 0.5411 GB, free: 65.93 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.0002448/0.5699, allocations: 175 kB / 0.5412 GB, free: 65.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001466/0.5714, allocations: 1.116 MB / 0.5423 GB, free: 64.71 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.5714, allocations: 0 / 0.5423 GB, free: 64.71 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008744/0.5723, allocations: 0.7356 MB / 0.5431 GB, free: 64.02 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000425/0.5728, allocations: 107.5 kB / 0.5432 GB, free: 63.94 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002246/0.575, allocations: 2.008 MB / 0.5451 GB, free: 62.08 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003649/0.5754, allocations: 1.017 MB / 0.5461 GB, free: 61.16 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003143/0.5757, allocations: 78.55 kB / 0.5462 GB, free: 61.11 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001203/0.5758, allocations: 47.33 kB / 0.5462 GB, free: 61.07 MB / 378.7 MB Notification: Performance of SimCode: time 3.71e-07/0.5758, allocations: 4 kB / 0.5462 GB, free: 61.06 MB / 378.7 MB Notification: Performance of Templates: time 0.01512/0.591, allocations: 11.23 MB / 0.5572 GB, free: 50.2 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.makefile make -j1 -f Modelica_trunk_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_trunk_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_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: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); ^ 1 error generated. make: *** [: Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.o] Error 1