Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009888/0.0009938, allocations: 194.4 kB / 18.06 MB, free: 3.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.258/1.258, allocations: 226.5 MB / 245.4 MB, free: 8.262 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007523/0.0007522, allocations: 112.5 kB / 297.4 MB, free: 6.922 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002004/0.0002005, allocations: 8 kB / 357.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.19/0.1902, allocations: 51.29 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1189/0.3092, allocations: 90.19 MB / 498.9 MB, free: 1.418 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002464/0.3094, allocations: 79.97 kB / 498.9 MB, free: 1.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2032/0.5127, allocations: 22.79 MB / 0.5095 GB, free: 87.64 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.5127, allocations: 0 / 0.5095 GB, free: 87.64 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.276e-05/0.5128, allocations: 23.75 kB / 0.5095 GB, free: 87.64 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.002248/0.5151, allocations: 1.216 MB / 0.5107 GB, free: 86.94 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.5151, allocations: 9.906 kB / 0.5107 GB, free: 86.94 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001709/0.5168, allocations: 345.1 kB / 0.511 GB, free: 86.88 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006858/0.5175, allocations: 0.5541 MB / 0.5116 GB, free: 86.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.908e-05/0.5176, allocations: 78.84 kB / 0.5117 GB, free: 86.58 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001138/0.5177, allocations: 99.16 kB / 0.5118 GB, free: 86.58 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001504/0.5192, allocations: 1.023 MB / 0.5128 GB, free: 86.47 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.884e-05/0.5192, allocations: 192 / 0.5128 GB, free: 86.47 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.606e-05/0.5193, allocations: 46.25 kB / 0.5128 GB, free: 86.47 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.483e-05/0.5194, allocations: 22.62 kB / 0.5128 GB, free: 86.47 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001396/0.5208, allocations: 0.8766 MB / 0.5137 GB, free: 86.45 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004353/0.5251, allocations: 3.674 MB / 0.5173 GB, free: 84.9 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001679/0.5268, allocations: 1.9 MB / 0.5191 GB, free: 83.29 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007127/0.5276, allocations: 459 kB / 0.5196 GB, free: 83.13 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000129/0.5277, allocations: 180.2 kB / 0.5197 GB, free: 82.94 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007024/0.5284, allocations: 0.4991 MB / 0.5202 GB, free: 82.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 2.855e-06/0.5284, allocations: 0 / 0.5202 GB, free: 82.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.003777/0.5322, allocations: 1.706 MB / 0.5219 GB, free: 82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.231e-05/0.5323, allocations: 199.5 kB / 0.5221 GB, free: 81.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004345/0.5327, allocations: 471.9 kB / 0.5225 GB, free: 81.54 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.844e-05/0.5328, allocations: 45.45 kB / 0.5226 GB, free: 81.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001887/0.533, allocations: 414.2 kB / 0.523 GB, free: 81.17 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001433/0.5331, allocations: 271.9 kB / 0.5232 GB, free: 80.97 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.964e-05/0.5332, allocations: 19.66 kB / 0.5232 GB, free: 80.95 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.683e-05/0.5332, allocations: 381.2 kB / 0.5236 GB, free: 80.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004751/0.5337, allocations: 274.7 kB / 0.5239 GB, free: 80.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005501/0.5343, allocations: 0.4897 MB / 0.5243 GB, free: 80.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001015/0.5353, allocations: 0.7617 MB / 0.5251 GB, free: 79.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.5353, allocations: 4 kB / 0.5251 GB, free: 79.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001645/0.537, allocations: 1.045 MB / 0.5261 GB, free: 79.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.181e-05/0.537, allocations: 13.28 kB / 0.5261 GB, free: 79.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.233e-05/0.537, allocations: 6.938 kB / 0.5261 GB, free: 79.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007926/0.5378, allocations: 268 kB / 0.5264 GB, free: 79.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004996/0.5383, allocations: 149 kB / 0.5265 GB, free: 79.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003996/0.5423, allocations: 4.388 MB / 0.5308 GB, free: 75.56 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006322/0.543, allocations: 119.1 kB / 0.5309 GB, free: 75.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.064e-05/0.5431, allocations: 34.78 kB / 0.531 GB, free: 75.49 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.0003999/0.5435, allocations: 241.4 kB / 0.5312 GB, free: 75.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.577e-05/0.5436, allocations: 65.31 kB / 0.5313 GB, free: 75.27 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001707/0.5453, allocations: 1.004 MB / 0.5322 GB, free: 74.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.293e-06/0.5453, allocations: 9.031 kB / 0.5322 GB, free: 74.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.5453, allocations: 0 / 0.5322 GB, free: 74.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/0.5453, allocations: 3.844 kB / 0.5322 GB, free: 74.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002572/0.5479, allocations: 1.953 MB / 0.5342 GB, free: 73.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.96e-06/0.5479, allocations: 0 / 0.5342 GB, free: 73.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004023/0.5483, allocations: 110.8 kB / 0.5343 GB, free: 73.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006737/0.549, allocations: 262.9 kB / 0.5345 GB, free: 72.89 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.785e-05/0.5491, allocations: 23.19 kB / 0.5345 GB, free: 72.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003682/0.5528, allocations: 4.361 MB / 0.5388 GB, free: 68.49 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.5528, allocations: 0 / 0.5388 GB, free: 68.49 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002185/0.555, allocations: 1.398 MB / 0.5402 GB, free: 67.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002395/0.5552, allocations: 216.3 kB / 0.5404 GB, free: 66.97 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.428e-05/0.5553, allocations: 16 kB / 0.5404 GB, free: 66.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004208/0.5557, allocations: 58.83 kB / 0.5404 GB, free: 66.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001339/0.5559, allocations: 68.84 kB / 0.5405 GB, free: 66.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.293e-05/0.5559, allocations: 22.95 kB / 0.5405 GB, free: 66.85 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003012/0.5562, allocations: 320.6 kB / 0.5408 GB, free: 66.58 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5562, allocations: 0 / 0.5408 GB, free: 66.58 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009628/0.5572, allocations: 330.3 kB / 0.5411 GB, free: 66.26 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.0002847/0.5575, allocations: 168.4 kB / 0.5413 GB, free: 66.09 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001635/0.5592, allocations: 1.116 MB / 0.5424 GB, free: 65.06 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/0.5592, allocations: 0 / 0.5424 GB, free: 65.06 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009555/0.5601, allocations: 0.7528 MB / 0.5431 GB, free: 64.35 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006374/0.5608, allocations: 123.2 kB / 0.5432 GB, free: 64.25 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002427/0.5632, allocations: 2.052 MB / 0.5452 GB, free: 62.34 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003561/0.5636, allocations: 0.9944 MB / 0.5462 GB, free: 61.43 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001651/0.5638, allocations: 58.94 kB / 0.5463 GB, free: 61.38 MB / 378.7 MB Notification: Performance of SimCode: time 4.61e-07/0.5638, allocations: 0 / 0.5463 GB, free: 61.38 MB / 378.7 MB Notification: Performance of Templates: time 0.01558/0.5793, allocations: 17.38 MB / 0.5632 GB, free: 44.7 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.makefile make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.makefile clang++ -std=c++14 -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.RectifierCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.RectifierCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.RectifierCalcHelperMain.cpp:15: ./OMCppModelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.RectifierTypes.h:25:9: error: unknown type name '_omcQComplexOutput_24currentSensorQS_24iType' typedef _omcQComplexOutput_24currentSensorQS_24iType _omcQComplexOutput_24currentSensorQS_24iRetType /* functionHeaderRegularFunction1 */; ^ In file included from OMCppModelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.RectifierCalcHelperMain.cpp:16: ./OMCppModelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.RectifierFunctions.h:17:91: error: unknown type name '_omcQComplexOutput_24currentSensorQS_24iType' void /*RecordTypetest*/ _omcQComplexOutput_24currentSensorQS_24i(double re_, double im_,_omcQComplexOutput_24currentSensorQS_24iType &output ); ^ In file included from OMCppModelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.RectifierCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.RectifierFunctions.cpp:46:82: error: unknown type name '_omcQComplexOutput_24currentSensorQS_24iType' void Functions::_omcQComplexOutput_24currentSensorQS_24i(double re_, double im_, _omcQComplexOutput_24currentSensorQS_24iType& output) ^ 3 errors generated. make: *** [: OMCppModelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.RectifierCalcHelperMain.o] Error 1