Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_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.001252/0.001252, allocations: 197.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.347/1.347, allocations: 227.2 MB / 245 MB, free: 7.621 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009431/0.0009431, allocations: 102.4 kB / 297.2 MB, free: 6.176 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002428/0.0002429, allocations: 8 kB / 358 MB, free: 9.398 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2532/0.2535, allocations: 51.49 MB / 409.5 MB, free: 26.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4556/0.7091, allocations: 164.9 MB / 0.561 GB, free: 30.79 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003272/0.7095, allocations: 115.1 kB / 0.5611 GB, free: 30.72 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.256/1.966, allocations: 404.9 MB / 0.9565 GB, free: 41.29 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.875e-06/1.966, allocations: 3.562 kB / 0.9565 GB, free: 41.29 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001043/1.967, allocations: 288.5 kB / 0.9568 GB, free: 41.26 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: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.03908/2.006, allocations: 11.75 MB / 0.9683 GB, free: 37.31 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/2.006, allocations: 7.625 kB / 0.9683 GB, free: 37.31 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0073/2.014, allocations: 1.755 MB / 0.97 GB, free: 37.19 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02416/2.038, allocations: 4.511 MB / 0.9744 GB, free: 36.5 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02718/2.065, allocations: 9.608 MB / 0.9838 GB, free: 31.9 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00116/2.066, allocations: 0.8937 MB / 0.9847 GB, free: 31.49 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005337/2.071, allocations: 1.182 MB / 0.9858 GB, free: 31.1 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04982/2.121, allocations: 18.78 MB / 1.004 GB, free: 15.09 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006324/2.122, allocations: 26.19 kB / 1.004 GB, free: 15.07 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004182/2.126, allocations: 0.5048 MB / 1.005 GB, free: 14.57 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001078/2.127, allocations: 0.8255 MB / 1.005 GB, free: 13.85 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04148/2.169, allocations: 15.8 MB / 1.021 GB, free: 15.33 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4726/2.641, allocations: 61.85 MB / 1.081 GB, free: 36.26 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02983/2.671, allocations: 33.41 MB / 1.114 GB, free: 24.02 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02374/2.695, allocations: 9.094 MB / 1.123 GB, free: 23 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.554e-05/2.695, allocations: 75.72 kB / 1.123 GB, free: 22.95 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=373): time 6.251e-06/2.695, allocations: 0 / 1.123 GB, free: 22.95 MB / 0.4948 GB Notification: Performance of matching and sorting (n=415): time 0.03824/2.734, allocations: 18.2 MB / 1.141 GB, free: 36.35 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.36e-05/2.734, allocations: 100.1 kB / 1.141 GB, free: 36.28 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007709/2.741, allocations: 4.53 MB / 1.145 GB, free: 35.89 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008476/2.742, allocations: 93.83 kB / 1.145 GB, free: 35.86 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003195/2.745, allocations: 5.609 MB / 1.151 GB, free: 32.86 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0016/2.747, allocations: 1.443 MB / 1.152 GB, free: 31.96 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003594/2.747, allocations: 140.2 kB / 1.152 GB, free: 31.96 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003633/2.748, allocations: 0.5832 MB / 1.153 GB, free: 31.64 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003906/2.752, allocations: 2.951 MB / 1.156 GB, free: 30.85 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005844/2.758, allocations: 6.028 MB / 1.162 GB, free: 25.64 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007807/2.765, allocations: 4.295 MB / 1.166 GB, free: 23.77 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001356/2.766, allocations: 29.81 kB / 1.166 GB, free: 23.77 MB / 0.5105 GB Notification: Performance of matching and sorting (n=903) (initialization): time 0.02089/2.787, allocations: 10.07 MB / 1.176 GB, free: 20.25 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001035/2.787, allocations: 49.22 kB / 1.176 GB, free: 20.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001975/2.787, allocations: 109.8 kB / 1.176 GB, free: 20.25 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002626/2.79, allocations: 0.9467 MB / 1.177 GB, free: 20.03 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0064/2.796, allocations: 1.656 MB / 1.178 GB, free: 19.86 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01167/2.808, allocations: 9.646 MB / 1.188 GB, free: 13.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007704/2.815, allocations: 430.1 kB / 1.188 GB, free: 13.14 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001698/2.817, allocations: 367.7 kB / 1.189 GB, free: 13.09 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 476 * 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 (853): * Single equations (assignments): 847 * 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 prepare postOptimizeDAE: time 0.0107/2.828, allocations: 4.308 MB / 1.193 GB, free: 10.95 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001945/2.83, allocations: 0.5417 MB / 1.193 GB, free: 10.67 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01457/2.844, allocations: 6.682 MB / 1.2 GB, free: 7.887 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.042e-05/2.844, allocations: 44.94 kB / 1.2 GB, free: 7.887 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.664e-05/2.845, allocations: 11.38 kB / 1.2 GB, free: 7.887 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.278e-05/2.845, allocations: 20.11 kB / 1.2 GB, free: 7.887 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04909/2.894, allocations: 16.85 MB / 1.216 GB, free: 15.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.725e-05/2.894, allocations: 4 kB / 1.216 GB, free: 15.32 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004209/2.898, allocations: 0.7969 MB / 1.217 GB, free: 14.67 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002402/2.9, allocations: 0.7809 MB / 1.218 GB, free: 14.06 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008236/2.901, allocations: 95 kB / 1.218 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0105/2.912, allocations: 8.791 MB / 1.227 GB, free: 5.637 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.364e-06/2.912, allocations: 4 kB / 1.227 GB, free: 5.633 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3685/3.28, allocations: 10.23 MB / 1.237 GB, free: 98.11 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004205/3.285, allocations: 1.101 MB / 1.238 GB, free: 98.01 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001646/3.286, allocations: 78.02 kB / 1.238 GB, free: 98.01 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003461/3.29, allocations: 245.2 kB / 1.238 GB, free: 98.01 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006124/3.29, allocations: 279.4 kB / 1.238 GB, free: 98.01 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002642/3.291, allocations: 121.3 kB / 1.238 GB, free: 98.01 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.006201/3.297, allocations: 3.373 MB / 1.242 GB, free: 97.83 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.01e-07/3.297, allocations: 2.344 kB / 1.242 GB, free: 97.83 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008595/3.305, allocations: 2.006 MB / 1.244 GB, free: 97.83 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 (395): * Single equations (assignments): 389 * 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,62.5%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01443/3.32, allocations: 12.15 MB / 1.255 GB, free: 95.45 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0109/3.331, allocations: 7.814 MB / 1.263 GB, free: 94.78 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/3.331, allocations: 2 kB / 1.263 GB, free: 94.78 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004584/3.335, allocations: 3.607 MB / 1.267 GB, free: 94.18 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005255/3.341, allocations: 1.266 MB / 1.268 GB, free: 94.16 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1248/3.466, allocations: 133.8 MB / 1.398 GB, free: 11.29 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01444/3.48, allocations: 7.636 MB / 1.406 GB, free: 10.23 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.008807/3.489, allocations: 2.195 MB / 1.408 GB, free: 10.02 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007285/3.496, allocations: 4.457 MB / 1.412 GB, free: 6.453 MB / 0.5417 GB Notification: Performance of SimCode: time 7.62e-07/3.496, allocations: 4 kB / 1.412 GB, free: 6.449 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4968/3.993, allocations: 155.6 MB / 1.564 GB, free: 68.57 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001841/3.993, allocations: 271.9 kB / 1.565 GB, free: 68.2 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_SMPM_CurrentSource.o Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.c In file included from Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.c:7: In file included from ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_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_SMPM_CurrentSource.c:7: In file included from ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_model.h:24: ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_functions.h:1392: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_SMPM_CurrentSource_functions.h:1401: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_SMPM_CurrentSource_functions.h:1410: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_SMPM_CurrentSource_functions.h:1419: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_SMPM_CurrentSource.o] Error 1