Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001228/0.001228, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.23/1.23, allocations: 227.2 MB / 245 MB, free: 7.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001167/0.001167, allocations: 101.8 kB / 297.3 MB, free: 6.191 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002299/0.0002298, allocations: 4 kB / 358 MB, free: 9.512 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2311/0.2313, allocations: 51.48 MB / 409.4 MB, free: 26.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3484/0.5797, allocations: 158.1 MB / 0.5543 GB, free: 35.1 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002439/0.58, allocations: 106.3 kB / 0.5544 GB, free: 35.08 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.137/1.717, allocations: 393.4 MB / 0.9385 GB, free: 46.14 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.324e-06/1.717, allocations: 0 / 0.9385 GB, free: 46.14 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0007573/1.718, allocations: 283.4 kB / 0.9388 GB, free: 46.1 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.03649/1.754, allocations: 11.42 MB / 0.9499 GB, free: 42.29 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/1.754, allocations: 13.56 kB / 0.95 GB, free: 42.28 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02387/1.778, allocations: 4.421 MB / 0.9543 GB, free: 41.62 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0226/1.801, allocations: 9.389 MB / 0.9634 GB, free: 40.13 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007827/1.802, allocations: 0.8759 MB / 0.9643 GB, free: 40.11 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004327/1.806, allocations: 1.152 MB / 0.9654 GB, free: 40.1 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04084/1.847, allocations: 18.42 MB / 0.9834 GB, free: 30.89 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004978/1.847, allocations: 19.81 kB / 0.9834 GB, free: 30.87 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004016/1.851, allocations: 0.4944 MB / 0.9839 GB, free: 30.39 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009826/1.852, allocations: 0.8128 MB / 0.9847 GB, free: 29.67 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04112/1.893, allocations: 15.52 MB / 0.9999 GB, free: 16.11 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3886/2.282, allocations: 59.81 MB / 1.058 GB, free: 31.74 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02547/2.308, allocations: 33.1 MB / 1.091 GB, free: 35.71 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01756/2.325, allocations: 8.828 MB / 1.099 GB, free: 34.82 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.127e-05/2.325, allocations: 74.48 kB / 1.099 GB, free: 34.77 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=361): time 5.65e-06/2.325, allocations: 0 / 1.099 GB, free: 34.77 MB / 0.5105 GB Notification: Performance of matching and sorting (n=401): time 0.03378/2.359, allocations: 17.66 MB / 1.117 GB, free: 32.23 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.255e-05/2.359, allocations: 94.3 kB / 1.117 GB, free: 32.17 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00617/2.365, allocations: 4.314 MB / 1.121 GB, free: 31.75 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006915/2.366, allocations: 93.33 kB / 1.121 GB, free: 31.72 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002807/2.369, allocations: 5.444 MB / 1.126 GB, free: 28.78 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001495/2.37, allocations: 1.394 MB / 1.128 GB, free: 27.91 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003221/2.371, allocations: 137.3 kB / 1.128 GB, free: 27.91 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004086/2.371, allocations: 0.5836 MB / 1.128 GB, free: 27.6 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003614/2.375, allocations: 2.876 MB / 1.131 GB, free: 27.58 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004566/2.379, allocations: 5.891 MB / 1.137 GB, free: 23.84 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005076/2.384, allocations: 4.218 MB / 1.141 GB, free: 23.74 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.059e-05/2.385, allocations: 28.97 kB / 1.141 GB, free: 23.74 MB / 0.5105 GB Notification: Performance of matching and sorting (n=879) (initialization): time 0.01479/2.399, allocations: 9.834 MB / 1.151 GB, free: 23.18 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.12e-05/2.399, allocations: 50.84 kB / 1.151 GB, free: 23.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001985/2.4, allocations: 101.3 kB / 1.151 GB, free: 23.18 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002386/2.402, allocations: 0.9459 MB / 1.152 GB, free: 23.12 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006089/2.408, allocations: 1.61 MB / 1.153 GB, free: 23.12 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01048/2.419, allocations: 9.636 MB / 1.163 GB, free: 19.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006449/2.425, allocations: 411.2 kB / 1.163 GB, free: 19.07 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001447/2.427, allocations: 358.1 kB / 1.163 GB, free: 19.07 MB / 0.5105 GB 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 (829): * Single equations (assignments): 823 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(8,59.4%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009785/2.436, allocations: 4.26 MB / 1.168 GB, free: 18.14 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001884/2.438, allocations: 0.5163 MB / 1.168 GB, free: 17.87 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01091/2.449, allocations: 6.5 MB / 1.174 GB, free: 15.2 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.481e-05/2.449, allocations: 42.62 kB / 1.174 GB, free: 15.2 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.579e-05/2.449, allocations: 7.344 kB / 1.174 GB, free: 15.2 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.492e-05/2.449, allocations: 18.47 kB / 1.174 GB, free: 15.2 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02858/2.478, allocations: 15.72 MB / 1.19 GB, free: 8.883 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.456e-05/2.478, allocations: 3.625 kB / 1.19 GB, free: 8.883 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003167/2.481, allocations: 0.7644 MB / 1.191 GB, free: 8.855 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001993/2.483, allocations: 0.7733 MB / 1.191 GB, free: 8.648 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003184/2.484, allocations: 90.5 kB / 1.191 GB, free: 8.594 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008868/2.492, allocations: 8.799 MB / 1.2 GB, free: 18.43 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/2.492, allocations: 4.25 kB / 1.2 GB, free: 18.43 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01203/2.505, allocations: 9.809 MB / 1.21 GB, free: 13.78 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003004/2.508, allocations: 1.061 MB / 1.211 GB, free: 13.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007763/2.508, allocations: 68.19 kB / 1.211 GB, free: 13.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002303/2.511, allocations: 237.4 kB / 1.211 GB, free: 13.02 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005032/2.511, allocations: 274 kB / 1.211 GB, free: 12.97 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002405/2.511, allocations: 111.8 kB / 1.211 GB, free: 12.95 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.004801/2.516, allocations: 3.212 MB / 1.214 GB, free: 11.77 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.5e-07/2.516, allocations: 0 / 1.214 GB, free: 11.77 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008978/2.525, allocations: 1.942 MB / 1.216 GB, free: 10.47 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (379): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001387/2.527, allocations: 0.6136 MB / 1.217 GB, free: 9.965 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01191/2.539, allocations: 7.656 MB / 1.224 GB, free: 3.117 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/2.539, allocations: 0 / 1.224 GB, free: 3.117 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.2535/2.792, allocations: 3.543 MB / 1.228 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006514/2.799, allocations: 1.169 MB / 1.229 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03542/2.834, allocations: 24.66 MB / 1.253 GB, free: 91.39 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007899/2.842, allocations: 7.527 MB / 1.26 GB, free: 90.31 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.006595/2.849, allocations: 2.154 MB / 1.263 GB, free: 90.12 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001082/2.85, allocations: 403.8 kB / 1.263 GB, free: 90.12 MB / 0.5261 GB Notification: Performance of SimCode: time 1.714e-06/2.85, allocations: 3.281 kB / 1.263 GB, free: 90.12 MB / 0.5261 GB Notification: Performance of Templates: time 0.1195/2.969, allocations: 74.54 MB / 1.336 GB, free: 83.63 MB / 0.5261 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.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_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=10 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.o Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.c In file included from Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.c:7: In file included from ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_model.h:24: ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_functions.h:1236:1: error: unknown type name '_omcQComplexOutput_24currentRMSSensorQS_24currentSensor_24i' _omcQComplexOutput_24currentRMSSensorQS_24currentSensor_24i omc__omcQComplexOutput_24currentRMSSensorQS_24currentSensor_24i (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_functions.h:1245:1: error: unknown type name '_omcQComplexOutput_24rotorAngleQS_24voltageSensor_24v' _omcQComplexOutput_24rotorAngleQS_24voltageSensor_24v omc__omcQComplexOutput_24rotorAngleQS_24voltageSensor_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_functions.h:1254:1: error: unknown type name '_omcQComplexOutput_24rotorAngleQS_24voltageSensor_24voltageSensor_24v' _omcQComplexOutput_24rotorAngleQS_24voltageSensor_24voltageSensor_24v omc__omcQComplexOutput_24rotorAngleQS_24voltageSensor_24voltageSensor_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_functions.h:1263:1: error: unknown type name '_omcQComplexOutput_24voltageQuasiRMSSensorQS_24voltageSensor_24v' _omcQComplexOutput_24voltageQuasiRMSSensorQS_24voltageSensor_24v omc__omcQComplexOutput_24voltageQuasiRMSSensorQS_24voltageSensor_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 4 errors generated. make: *** [: Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.o] Error 1