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.001188/0.001188, allocations: 179.9 kB / 16.38 MB, free: 5.766 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.445/1.445, allocations: 223.2 MB / 240.3 MB, free: 10.17 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.001025/0.001025, allocations: 99.08 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002711/0.0002711, allocations: 4 kB / 351.1 MB, free: 15.11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2371/0.2374, allocations: 50.41 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4261/0.6635, allocations: 159 MB / 0.5474 GB, free: 43.81 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002632/0.6638, allocations: 105.4 kB / 0.5475 GB, free: 43.79 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.315/1.979, allocations: 387.8 MB / 0.9262 GB, free: 45.05 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.046e-06/1.979, allocations: 0 / 0.9262 GB, free: 45.05 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001728/1.98, allocations: 279.3 kB / 0.9264 GB, free: 45.01 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.04527/2.026, allocations: 11.87 MB / 0.938 GB, free: 41.08 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/2.026, allocations: 11.03 kB / 0.938 GB, free: 41.08 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02644/2.052, allocations: 4.591 MB / 0.9425 GB, free: 40.41 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02561/2.078, allocations: 9.775 MB / 0.9521 GB, free: 35.41 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009576/2.079, allocations: 0.8826 MB / 0.9529 GB, free: 34.54 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005009/2.084, allocations: 1.16 MB / 0.9541 GB, free: 33.39 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04619/2.13, allocations: 18.56 MB / 0.9722 GB, free: 17.34 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006138/2.131, allocations: 19.38 kB / 0.9722 GB, free: 17.32 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004437/2.135, allocations: 0.4938 MB / 0.9727 GB, free: 16.84 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001011/2.136, allocations: 0.8033 MB / 0.9735 GB, free: 16.12 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03993/2.176, allocations: 15.89 MB / 0.989 GB, free: 1.906 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3873/2.564, allocations: 61.23 MB / 1.049 GB, free: 38.46 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02539/2.589, allocations: 29.77 MB / 1.078 GB, free: 31.45 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0239/2.613, allocations: 10.07 MB / 1.088 GB, free: 30.48 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.888e-05/2.613, allocations: 79.92 kB / 1.088 GB, free: 30.43 MB / 490.7 MB Notification: Performance of pre-optimization done (n=420): time 6.051e-06/2.613, allocations: 0.6562 kB / 1.088 GB, free: 30.43 MB / 490.7 MB Notification: Performance of matching and sorting (n=430): time 0.04996/2.663, allocations: 20.98 MB / 1.108 GB, free: 24.77 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.185e-05/2.663, allocations: 125.6 kB / 1.108 GB, free: 24.66 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01128/2.675, allocations: 4.549 MB / 1.113 GB, free: 22.96 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000989/2.676, allocations: 96.55 kB / 1.113 GB, free: 22.88 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004132/2.68, allocations: 5.337 MB / 1.118 GB, free: 18.87 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002169/2.682, allocations: 1.482 MB / 1.12 GB, free: 17.73 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0012/2.683, allocations: 135.3 kB / 1.12 GB, free: 17.62 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000785/2.684, allocations: 0.5629 MB / 1.12 GB, free: 17.2 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005249/2.689, allocations: 2.936 MB / 1.123 GB, free: 16.07 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006331/2.696, allocations: 5.396 MB / 1.128 GB, free: 11.72 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006708/2.702, allocations: 4.115 MB / 1.132 GB, free: 9.898 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001025/2.702, allocations: 22.78 kB / 1.132 GB, free: 9.898 MB / 490.7 MB Notification: Performance of matching and sorting (n=843) (initialization): time 0.02138/2.724, allocations: 9.867 MB / 1.142 GB, free: 6.277 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001588/2.724, allocations: 45.02 kB / 1.142 GB, free: 6.273 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002026/2.724, allocations: 78.91 kB / 1.142 GB, free: 6.273 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003586/2.728, allocations: 1.133 MB / 1.143 GB, free: 6.012 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006519/2.734, allocations: 1.48 MB / 1.145 GB, free: 5.871 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01679/2.751, allocations: 12.8 MB / 1.157 GB, free: 12.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007425/2.759, allocations: 361.5 kB / 1.158 GB, free: 12.86 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001831/2.761, allocations: 325.9 kB / 1.158 GB, free: 12.8 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 370 * 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 (776): * Single equations (assignments): 767 * 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,48.0%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0122/2.773, allocations: 4.231 MB / 1.162 GB, free: 10.68 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002462/2.775, allocations: 0.5375 MB / 1.163 GB, free: 10.39 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01789/2.793, allocations: 7.314 MB / 1.17 GB, free: 5.523 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008522/2.802, allocations: 4.309 MB / 1.174 GB, free: 1.785 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.177e-05/2.802, allocations: 23.94 kB / 1.174 GB, free: 1.762 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.408e-05/2.802, allocations: 22.59 kB / 1.174 GB, free: 1.762 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05687/2.859, allocations: 17.91 MB / 1.191 GB, free: 4.891 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.15e-05/2.859, allocations: 4.594 kB / 1.191 GB, free: 4.887 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003799/2.863, allocations: 0.717 MB / 1.192 GB, free: 4.289 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003934/2.867, allocations: 1.196 MB / 1.193 GB, free: 3.348 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001095/2.868, allocations: 97.14 kB / 1.193 GB, free: 3.262 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3619/3.23, allocations: 16.42 MB / 1.209 GB, free: 95.63 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.113e-06/3.23, allocations: 10.75 kB / 1.209 GB, free: 95.63 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01698/3.247, allocations: 11.22 MB / 1.22 GB, free: 94.05 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00371/3.251, allocations: 1.148 MB / 1.222 GB, free: 93.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001591/3.252, allocations: 85.16 kB / 1.222 GB, free: 93.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003298/3.255, allocations: 231.7 kB / 1.222 GB, free: 93.95 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007461/3.256, allocations: 316.5 kB / 1.222 GB, free: 93.95 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002926/3.257, allocations: 125.6 kB / 1.222 GB, free: 93.95 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00614/3.263, allocations: 3.407 MB / 1.226 GB, free: 93.77 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.5e-07/3.263, allocations: 0 / 1.226 GB, free: 93.77 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009488/3.272, allocations: 2.047 MB / 1.228 GB, free: 93.77 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 (367): * Single equations (assignments): 357 * 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,51.0%) 46,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001691/3.274, allocations: 0.7254 MB / 1.228 GB, free: 93.65 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01316/3.287, allocations: 7.891 MB / 1.236 GB, free: 92.91 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.082e-05/3.287, allocations: 1.688 kB / 1.236 GB, free: 92.91 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007011/3.294, allocations: 4.184 MB / 1.24 GB, free: 92.14 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008131/3.302, allocations: 1.307 MB / 1.241 GB, free: 92.12 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04926/3.352, allocations: 25.24 MB / 1.266 GB, free: 81.82 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01353/3.365, allocations: 7.576 MB / 1.273 GB, free: 80.77 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.008466/3.374, allocations: 2.014 MB / 1.275 GB, free: 80.57 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001861/3.376, allocations: 404.5 kB / 1.276 GB, free: 80.56 MB / 0.5105 GB Notification: Performance of SimCode: time 1.093e-06/3.376, allocations: 0 / 1.276 GB, free: 80.56 MB / 0.5105 GB Notification: Performance of Templates: time 0.1465/3.522, allocations: 84.87 MB / 1.359 GB, free: 35.39 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 -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_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:24: ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_functions.h:1577: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:1586: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