Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|Ptr|Pqs|smee.excitation.electroMagneticConverter.Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.strayReluctance.port_p.Phi.im|smee.stator.strayReluctance.port_p.Phi.re|smeeQS.short.port_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|Ptr|Pqs|smee.excitation.electroMagneticConverter.Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.strayReluctance.port_p.Phi.im|smee.stator.strayReluctance.port_p.Phi.re|smeeQS.short.port_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002896/0.002902, allocations: 183.2 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.796/3.796, allocations: 205.4 MB / 222.5 MB, free: 9.105 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001781/0.001781, allocations: 82.98 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006821/0.0006822, allocations: 8 kB / 327 MB, free: 180 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5205/0.5212, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.07181/0.5931, allocations: 33.01 MB / 407.6 MB, free: 15.76 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.04128/0.6345, allocations: 10.72 MB / 418.3 MB, free: 5.004 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01384/0.6484, allocations: 239.2 kB / 418.5 MB, free: 4.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01457/0.6631, allocations: 2.118 MB / 420.6 MB, free: 2.641 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02789/0.691, allocations: 3.761 MB / 424.4 MB, free: 14.88 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0141/0.7052, allocations: 1.72 MB / 426.1 MB, free: 13.18 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.03754/0.7428, allocations: 9.886 MB / 436 MB, free: 3.277 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07351/0.8163, allocations: 18.11 MB / 454.1 MB, free: 1.059 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01526/0.8317, allocations: 4.341 MB / 458.5 MB, free: 12.7 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01739/0.8492, allocations: 4.953 MB / 463.4 MB, free: 7.73 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005818/0.855, allocations: 0.7148 MB / 464.1 MB, free: 7.016 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01047/0.8656, allocations: 1.042 MB / 465.2 MB, free: 5.973 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007682/0.8733, allocations: 2.25 MB / 467.4 MB, free: 3.715 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008685/0.8821, allocations: 2.41 MB / 469.8 MB, free: 1.293 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.04727/0.9294, allocations: 20.13 MB / 490 MB, free: 13.1 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.9295, allocations: 4 kB / 490 MB, free: 13.1 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.858e-06/0.9295, allocations: 0 / 490 MB, free: 13.1 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0008211/0.9304, allocations: 0 / 490 MB, free: 13.1 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: 3112 * Number of variables: 3112 Notification: Performance of Generate backend data structure: time 0.0746/1.005, allocations: 12.13 MB / 0.4903 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.121e-05/1.005, allocations: 12.03 kB / 0.4903 GB, free: 0.8477 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.9177/1.923, allocations: 6.068 MB / 0.4963 GB, free: 91.53 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03516/1.958, allocations: 6.879 MB / 0.503 GB, free: 87.1 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002237/1.96, allocations: 0.8509 MB / 0.5038 GB, free: 86.71 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007977/1.968, allocations: 1.108 MB / 0.5049 GB, free: 86.35 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08538/2.054, allocations: 17.03 MB / 0.5215 GB, free: 72.88 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001026/2.055, allocations: 19.73 kB / 0.5215 GB, free: 72.86 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006544/2.061, allocations: 472.1 kB / 0.522 GB, free: 72.41 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001337/2.063, allocations: 0.6118 MB / 0.5226 GB, free: 71.8 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07359/2.137, allocations: 15.53 MB / 0.5378 GB, free: 56.25 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2123/2.349, allocations: 58.73 MB / 0.5951 GB, free: 12.02 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05548/2.405, allocations: 20.9 MB / 0.6155 GB, free: 4.535 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05011/2.455, allocations: 9.846 MB / 0.6251 GB, free: 10.64 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001333/2.455, allocations: 65.56 kB / 0.6252 GB, free: 10.57 MB / 426.8 MB Notification: Performance of pre-optimization done (n=333): time 1.11e-05/2.455, allocations: 0 / 0.6252 GB, free: 10.57 MB / 426.8 MB Notification: Performance of matching and sorting (n=360): time 0.1067/2.562, allocations: 17.64 MB / 0.6424 GB, free: 8.641 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001797/2.562, allocations: 116.4 kB / 0.6425 GB, free: 8.508 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03322/2.595, allocations: 5.341 MB / 0.6478 GB, free: 3.184 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001168/2.597, allocations: 89.7 kB / 0.6478 GB, free: 3.09 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.008191/2.605, allocations: 5.096 MB / 0.6528 GB, free: 13.97 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00334/2.608, allocations: 1.267 MB / 0.6541 GB, free: 12.71 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00176/2.61, allocations: 140 kB / 0.6542 GB, free: 12.58 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.001141/2.611, allocations: 0.5881 MB / 0.6548 GB, free: 11.98 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01433/2.626, allocations: 2.84 MB / 0.6575 GB, free: 9.137 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01953/2.645, allocations: 5.843 MB / 0.6632 GB, free: 1.859 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.5093/3.155, allocations: 4.094 MB / 0.6672 GB, free: 150.1 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001597/3.155, allocations: 27.28 kB / 0.6673 GB, free: 150.1 MB / 458.8 MB Notification: Performance of matching and sorting (n=883) (initialization): time 0.04614/3.201, allocations: 9.611 MB / 0.6766 GB, free: 146.3 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001767/3.201, allocations: 48 kB / 0.6767 GB, free: 146.3 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003623/3.202, allocations: 104.6 kB / 0.6768 GB, free: 146.3 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008779/3.211, allocations: 0.9402 MB / 0.6777 GB, free: 146.1 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01709/3.228, allocations: 1.613 MB / 0.6793 GB, free: 146 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03002/3.258, allocations: 9.963 MB / 0.689 GB, free: 139.2 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01453/3.272, allocations: 443.4 kB / 0.6894 GB, free: 139 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002503/3.275, allocations: 366.3 kB / 0.6898 GB, free: 139 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (831): * Single equations (assignments): 823 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(8,67.2%) 26,(2,100.0%) 8,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01679/3.292, allocations: 3.835 MB / 0.6935 GB, free: 137.1 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002896/3.295, allocations: 0.5164 MB / 0.694 GB, free: 137.1 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03059/3.325, allocations: 6.165 MB / 0.7001 GB, free: 134.4 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01474/3.34, allocations: 3.218 MB / 0.7032 GB, free: 133.2 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000101/3.34, allocations: 8.031 kB / 0.7032 GB, free: 133.2 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000144/3.341, allocations: 22.19 kB / 0.7032 GB, free: 133.2 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0694/3.41, allocations: 15.13 MB / 0.718 GB, free: 120.4 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.316e-05/3.41, allocations: 8.625 kB / 0.718 GB, free: 120.4 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008085/3.418, allocations: 0.632 MB / 0.7186 GB, free: 119.7 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006856/3.425, allocations: 0.9112 MB / 0.7195 GB, free: 118.8 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001164/3.426, allocations: 83.91 kB / 0.7196 GB, free: 118.7 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03382/3.46, allocations: 13.07 MB / 0.7324 GB, free: 105.1 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.47e-05/3.46, allocations: 11.94 kB / 0.7324 GB, free: 105.1 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03729/3.498, allocations: 9.717 MB / 0.7419 GB, free: 95.31 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005933/3.504, allocations: 1.045 MB / 0.7429 GB, free: 94.24 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00309/3.507, allocations: 76.83 kB / 0.743 GB, free: 94.17 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008526/3.515, allocations: 215.8 kB / 0.7432 GB, free: 93.96 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002043/3.518, allocations: 258.5 kB / 0.7434 GB, free: 93.71 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001152/3.519, allocations: 108 kB / 0.7435 GB, free: 93.6 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.01409/3.533, allocations: 3.512 MB / 0.7469 GB, free: 90.11 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.192e-06/3.533, allocations: 0 / 0.7469 GB, free: 90.11 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01695/3.55, allocations: 1.846 MB / 0.7487 GB, free: 88.27 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smee.phiMechanical,smee.stator.zeroInductor.i0,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smeeQS.short.port_p.reference.gamma,mechanicalPowerSensorQS.relSpeedSensor.phi_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (315): * Single equations (assignments): 306 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8,(3,77.8%) 4,(8,65.6%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00181/3.552, allocations: 274 kB / 0.749 GB, free: 88.01 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.03012/3.582, allocations: 7.321 MB / 0.7562 GB, free: 80.62 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 2.13e-05/3.582, allocations: 9.031 kB / 0.7562 GB, free: 80.62 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01529/3.597, allocations: 3.536 MB / 0.7596 GB, free: 77.02 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01314/3.611, allocations: 1.076 MB / 0.7607 GB, free: 75.96 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08061/3.691, allocations: 21.96 MB / 0.7821 GB, free: 53.91 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02126/3.713, allocations: 6.659 MB / 0.7886 GB, free: 47.21 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004682/3.717, allocations: 451.3 kB / 0.789 GB, free: 46.77 MB / 458.8 MB Notification: Performance of SimCode: time 2.995e-06/3.718, allocations: 0 / 0.789 GB, free: 46.77 MB / 458.8 MB Notification: Performance of Templates: time 1.879/5.596, allocations: 374.4 MB / 1.155 GB, free: 39.41 MB / 490.8 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile b'clang++ -fopenmp=libomp -Winvalid-pch -O0 -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/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorFunctions.cpp:220:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp114 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorFunctions.cpp:220:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp114 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\n2 errors generated.\n: recipe for target \'OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.o] Error 1\n'