Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009096/0.0009096, 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.389/1.389, allocations: 223.3 MB / 241.4 MB, free: 9.973 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.0007601/0.00076, allocations: 100.9 kB / 292.6 MB, free: 10.55 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003247/0.0003251, allocations: 19.92 kB / 352.4 MB, free: 14.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.2439, allocations: 50.4 MB / 402.8 MB, free: 32.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3603/0.6042, allocations: 159.4 MB / 0.549 GB, free: 43.49 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003478/0.6046, allocations: 105.9 kB / 0.5491 GB, free: 43.47 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.198/1.803, allocations: 385.3 MB / 0.9253 GB, free: 45.01 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.874e-06/1.803, allocations: 0 / 0.9253 GB, free: 45.01 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0008882/1.804, allocations: 285.1 kB / 0.9256 GB, free: 44.96 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.04532/1.849, allocations: 11.74 MB / 0.9371 GB, free: 41.03 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.579e-05/1.849, allocations: 7.344 kB / 0.9371 GB, free: 41.03 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03982/1.889, allocations: 4.584 MB / 0.9416 GB, free: 40.36 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02932/1.919, allocations: 9.17 MB / 0.9505 GB, free: 36.18 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001327/1.92, allocations: 0.8817 MB / 0.9514 GB, free: 35.79 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005016/1.925, allocations: 1.162 MB / 0.9525 GB, free: 34.79 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04576/1.971, allocations: 18.65 MB / 0.9707 GB, free: 18.64 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005365/1.971, allocations: 26.98 kB / 0.9707 GB, free: 18.62 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003536/1.975, allocations: 0.4953 MB / 0.9712 GB, free: 18.14 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007863/1.976, allocations: 0.8004 MB / 0.972 GB, free: 17.43 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03411/2.01, allocations: 15.89 MB / 0.9875 GB, free: 3.516 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3806/2.391, allocations: 61.27 MB / 1.047 GB, free: 38.74 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02752/2.418, allocations: 29.76 MB / 1.076 GB, free: 31.76 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006799/2.425, allocations: 4.092 MB / 1.08 GB, free: 31.71 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01906/2.444, allocations: 9.969 MB / 1.09 GB, free: 30.71 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.779e-05/2.444, allocations: 78.03 kB / 1.09 GB, free: 30.67 MB / 490.7 MB Notification: Performance of pre-optimization done (n=412): time 6.642e-06/2.444, allocations: 0 / 1.09 GB, free: 30.67 MB / 490.7 MB Notification: Performance of matching and sorting (n=422): time 0.04811/2.492, allocations: 20.46 MB / 1.11 GB, free: 24.5 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001286/2.492, allocations: 124.4 kB / 1.11 GB, free: 24.41 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01189/2.504, allocations: 5.115 MB / 1.115 GB, free: 22.5 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009612/2.505, allocations: 93.2 kB / 1.115 GB, free: 22.42 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003642/2.509, allocations: 5.341 MB / 1.121 GB, free: 18.4 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001951/2.511, allocations: 1.465 MB / 1.122 GB, free: 17.28 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001065/2.512, allocations: 128.1 kB / 1.122 GB, free: 17.18 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0007757/2.513, allocations: 0.5669 MB / 1.123 GB, free: 16.75 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005846/2.519, allocations: 2.903 MB / 1.126 GB, free: 15.63 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005938/2.525, allocations: 5.402 MB / 1.131 GB, free: 11.28 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01036/2.535, allocations: 8.85 MB / 1.139 GB, free: 5.305 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.611e-05/2.535, allocations: 22.41 kB / 1.14 GB, free: 5.305 MB / 490.7 MB Notification: Performance of matching and sorting (n=837) (initialization): time 0.01661/2.552, allocations: 9.802 MB / 1.149 GB, free: 1.426 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.356e-05/2.552, allocations: 40.38 kB / 1.149 GB, free: 1.426 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001598/2.552, allocations: 80.56 kB / 1.149 GB, free: 1.426 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003332/2.555, allocations: 1.126 MB / 1.15 GB, free: 1.152 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006559/2.562, allocations: 1.464 MB / 1.152 GB, free: 0.9961 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01582/2.578, allocations: 12.57 MB / 1.164 GB, free: 8.441 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006057/2.584, allocations: 364.2 kB / 1.164 GB, free: 8.316 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001292/2.585, allocations: 337.1 kB / 1.165 GB, free: 8.254 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 372 * 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 (770): * Single equations (assignments): 761 * 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: 4 * 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: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1,(10,50.0%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01024/2.596, allocations: 4.219 MB / 1.169 GB, free: 5.488 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001608/2.597, allocations: 0.5382 MB / 1.169 GB, free: 4.949 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01586/2.613, allocations: 7.42 MB / 1.177 GB, free: 15.37 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007205/2.62, allocations: 4.278 MB / 1.181 GB, free: 11.65 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.193e-05/2.62, allocations: 16 kB / 1.181 GB, free: 11.64 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.461e-05/2.62, allocations: 21.75 kB / 1.181 GB, free: 11.64 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3405/2.961, allocations: 17.57 MB / 1.198 GB, free: 99.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.753e-05/2.961, allocations: 7.094 kB / 1.198 GB, free: 99.72 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003344/2.964, allocations: 0.6884 MB / 1.199 GB, free: 99.72 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003182/2.968, allocations: 1.198 MB / 1.2 GB, free: 99.67 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000516/2.968, allocations: 101.1 kB / 1.2 GB, free: 99.67 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0157/2.984, allocations: 16.09 MB / 1.216 GB, free: 91.86 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/2.984, allocations: 7 kB / 1.216 GB, free: 91.86 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01594/3, allocations: 10.44 MB / 1.226 GB, free: 90.99 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003084/3.003, allocations: 1.143 MB / 1.227 GB, free: 90.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009656/3.004, allocations: 83.62 kB / 1.227 GB, free: 90.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002471/3.006, allocations: 225.5 kB / 1.227 GB, free: 90.89 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007727/3.007, allocations: 306.6 kB / 1.228 GB, free: 90.88 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002687/3.008, allocations: 121.2 kB / 1.228 GB, free: 90.88 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005614/3.013, allocations: 3.417 MB / 1.231 GB, free: 90.7 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.31e-07/3.013, allocations: 0 / 1.231 GB, free: 90.7 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008073/3.021, allocations: 2.04 MB / 1.233 GB, free: 90.7 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.permanentMagnet.port_p.reference.gamma,loadInertiaMQS.phi,smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi) * 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 (359): * Single equations (assignments): 349 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(10,50.0%) 46,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001252/3.022, allocations: 0.7207 MB / 1.234 GB, free: 90.58 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0112/3.034, allocations: 7.803 MB / 1.241 GB, free: 89.85 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/3.034, allocations: 2.156 kB / 1.241 GB, free: 89.85 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005949/3.04, allocations: 4.159 MB / 1.245 GB, free: 89.08 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009948/3.05, allocations: 1.35 MB / 1.247 GB, free: 89.05 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04152/3.091, allocations: 24.65 MB / 1.271 GB, free: 78.74 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01349/3.105, allocations: 7.381 MB / 1.278 GB, free: 77.68 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.009167/3.114, allocations: 2.002 MB / 1.28 GB, free: 77.48 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002115/3.116, allocations: 398.8 kB / 1.28 GB, free: 77.47 MB / 0.5105 GB Notification: Performance of SimCode: time 2.074e-06/3.116, allocations: 2.906 kB / 1.28 GB, free: 77.47 MB / 0.5105 GB Notification: Performance of Templates: time 0.1404/3.257, allocations: 85.49 MB / 1.364 GB, free: 30.44 MB / 0.5105 GB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.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_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=11 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.o Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.c In file included from Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.c:7: In file included from ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_model.h:26: ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_functions.h:1475:1: error: unknown type name '_omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24i' _omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24i omc__omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24i (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_functions.h:1484:1: error: unknown type name '_omcQComplexOutput_24powerSensorQS_24powerSensor_24apparentPower' _omcQComplexOutput_24powerSensorQS_24powerSensor_24apparentPower omc__omcQComplexOutput_24powerSensorQS_24powerSensor_24apparentPower (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 2 errors generated. make: *** [: Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.o] Error 1