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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001274/0.001274, allocations: 198.5 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.311/1.311, allocations: 227.2 MB / 245 MB, free: 5.887 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001029/0.001028, allocations: 107.9 kB / 297.3 MB, free: 5.965 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002632/0.0002633, allocations: 4 kB / 358 MB, free: 9.191 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2684, allocations: 51.49 MB / 409.5 MB, free: 26.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.382/0.6505, allocations: 158.1 MB / 0.5543 GB, free: 35.16 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002582/0.6508, allocations: 107.3 kB / 0.5544 GB, free: 35.14 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.259/1.91, allocations: 393.4 MB / 0.9386 GB, free: 45.8 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.156e-06/1.91, allocations: 0 / 0.9386 GB, free: 45.8 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0009081/1.911, allocations: 293.5 kB / 0.9389 GB, free: 45.75 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.04652/1.958, allocations: 11.43 MB / 0.95 GB, free: 41.93 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.17e-05/1.958, allocations: 6.938 kB / 0.95 GB, free: 41.93 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007954/1.966, allocations: 1.717 MB / 0.9517 GB, free: 41.81 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02482/1.99, allocations: 4.428 MB / 0.956 GB, free: 41.15 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0292/2.02, allocations: 9.382 MB / 0.9652 GB, free: 39.67 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001044/2.021, allocations: 0.8759 MB / 0.9661 GB, free: 39.51 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005532/2.026, allocations: 1.15 MB / 0.9672 GB, free: 39.13 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04958/2.076, allocations: 18.43 MB / 0.9852 GB, free: 29.4 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005826/2.077, allocations: 19.75 kB / 0.9852 GB, free: 29.39 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003912/2.08, allocations: 0.4949 MB / 0.9857 GB, free: 28.9 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007792/2.081, allocations: 0.8129 MB / 0.9865 GB, free: 28.18 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0343/2.116, allocations: 15.53 MB / 1.002 GB, free: 14.61 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4396/2.555, allocations: 59.8 MB / 1.06 GB, free: 31.04 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02496/2.58, allocations: 33.1 MB / 1.092 GB, free: 35 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01553/2.596, allocations: 8.831 MB / 1.101 GB, free: 34.11 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.836e-05/2.596, allocations: 76.77 kB / 1.101 GB, free: 34.07 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=361): time 4.619e-06/2.596, allocations: 0 / 1.101 GB, free: 34.07 MB / 0.5105 GB Notification: Performance of matching and sorting (n=401): time 0.03347/2.629, allocations: 17.66 MB / 1.118 GB, free: 31.53 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.412e-05/2.629, allocations: 94.14 kB / 1.118 GB, free: 31.46 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007228/2.637, allocations: 4.316 MB / 1.123 GB, free: 31.05 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007469/2.637, allocations: 94.08 kB / 1.123 GB, free: 31.02 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002493/2.64, allocations: 5.434 MB / 1.128 GB, free: 28.07 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001218/2.641, allocations: 1.405 MB / 1.129 GB, free: 27.21 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003023/2.641, allocations: 134.3 kB / 1.13 GB, free: 27.21 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003752/2.642, allocations: 0.5763 MB / 1.13 GB, free: 26.89 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003982/2.646, allocations: 2.879 MB / 1.133 GB, free: 26.88 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005577/2.651, allocations: 5.897 MB / 1.139 GB, free: 23.14 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005034/2.656, allocations: 4.21 MB / 1.143 GB, free: 23.04 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.249e-05/2.657, allocations: 28.78 kB / 1.143 GB, free: 23.04 MB / 0.5105 GB Notification: Performance of matching and sorting (n=879) (initialization): time 0.01439/2.671, allocations: 9.838 MB / 1.152 GB, free: 22.48 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.364e-05/2.671, allocations: 47.5 kB / 1.152 GB, free: 22.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002184/2.671, allocations: 103.6 kB / 1.153 GB, free: 22.48 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002181/2.673, allocations: 0.943 MB / 1.153 GB, free: 22.42 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005287/2.679, allocations: 1.608 MB / 1.155 GB, free: 22.42 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01001/2.689, allocations: 9.638 MB / 1.164 GB, free: 18.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00683/2.696, allocations: 417.1 kB / 1.165 GB, free: 18.38 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001294/2.697, allocations: 355 kB / 1.165 GB, free: 18.38 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.008582/2.706, allocations: 4.256 MB / 1.169 GB, free: 17.01 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001557/2.707, allocations: 0.5178 MB / 1.17 GB, free: 16.73 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01012/2.717, allocations: 6.494 MB / 1.176 GB, free: 14.07 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.689e-05/2.717, allocations: 39.31 kB / 1.176 GB, free: 14.07 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.351e-05/2.717, allocations: 11.25 kB / 1.176 GB, free: 14.07 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.141e-05/2.717, allocations: 20.72 kB / 1.176 GB, free: 14.07 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02565/2.743, allocations: 15.71 MB / 1.192 GB, free: 7.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.656e-05/2.743, allocations: 10.09 kB / 1.192 GB, free: 7.75 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00322/2.746, allocations: 0.7599 MB / 1.192 GB, free: 7.727 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001984/2.748, allocations: 0.7858 MB / 1.193 GB, free: 7.512 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003997/2.749, allocations: 82.69 kB / 1.193 GB, free: 7.461 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008841/2.758, allocations: 8.801 MB / 1.202 GB, free: 17.29 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/2.758, allocations: 3.969 kB / 1.202 GB, free: 17.29 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01312/2.771, allocations: 9.805 MB / 1.211 GB, free: 12.64 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003255/2.774, allocations: 1.065 MB / 1.212 GB, free: 11.99 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009667/2.775, allocations: 76.53 kB / 1.212 GB, free: 11.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002553/2.778, allocations: 232.3 kB / 1.213 GB, free: 11.88 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005277/2.778, allocations: 268.5 kB / 1.213 GB, free: 11.84 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002414/2.778, allocations: 116.1 kB / 1.213 GB, free: 11.81 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.005654/2.784, allocations: 3.216 MB / 1.216 GB, free: 10.34 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.41e-07/2.784, allocations: 0 / 1.216 GB, free: 10.34 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008724/2.793, allocations: 1.935 MB / 1.218 GB, free: 8.418 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.3005/3.093, allocations: 12.04 MB / 1.23 GB, free: 96.66 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01704/3.11, allocations: 7.648 MB / 1.237 GB, free: 96 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.272e-05/3.111, allocations: 2.094 kB / 1.237 GB, free: 96 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006061/3.117, allocations: 3.554 MB / 1.241 GB, free: 95.39 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005953/3.123, allocations: 1.167 MB / 1.242 GB, free: 95.37 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1317/3.254, allocations: 129.7 MB / 1.369 GB, free: 15.69 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01602/3.27, allocations: 7.524 MB / 1.376 GB, free: 14.62 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.00904/3.279, allocations: 2.149 MB / 1.378 GB, free: 14.43 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008841/3.288, allocations: 4.326 MB / 1.382 GB, free: 14.42 MB / 0.5417 GB Notification: Performance of SimCode: time 1.352e-06/3.288, allocations: 0 / 1.382 GB, free: 14.42 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5363/3.825, allocations: 147.8 MB / 1.527 GB, free: 111.1 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001994/3.825, allocations: 265.7 kB / 1.527 GB, free: 110.8 MB / 0.5417 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -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:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 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); ^ 2 warnings and 4 errors generated. make: *** [: Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.o] Error 1